We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6dae6c7 commit c032912Copy full SHA for c032912
1 file changed
ext/pgsql/tests/gh21162.phpt
@@ -2,20 +2,14 @@
2
GH-21162 (pg_connect() on error memory leak)
3
--EXTENSIONS--
4
pgsql
5
---SKIPIF--
6
-<?php
7
-if(substr(PHP_OS, 0, 3) == 'WIN' ) {
8
- die('skip not for windows');
9
-}
10
-?>
11
--FILE--
12
<?php
13
14
set_error_handler(function (int $errno, string $errstr) {
15
echo "Warning caught\n";
16
});
17
18
-pg_connect('');
+pg_connect('host=blablahost.');
19
20
echo "Done\n";
21
?>
0 commit comments