mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
19 lines
265 B
PHP
19 lines
265 B
PHP
--TEST--
|
|
GH-21162 (pg_connect() on error memory leak)
|
|
--EXTENSIONS--
|
|
pgsql
|
|
--FILE--
|
|
<?php
|
|
|
|
set_error_handler(function (int $errno, string $errstr) {
|
|
echo "Warning caught\n";
|
|
});
|
|
|
|
pg_connect('host=blablahost.');
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECT--
|
|
Warning caught
|
|
Done
|