mirror of
https://github.com/php/php-src.git
synced 2024-10-01 23:06:11 +00:00
18 lines
249 B
PHP
Executable File
18 lines
249 B
PHP
Executable File
--TEST--
|
|
Catch method calls on non-objects without using return value
|
|
--INI--
|
|
report_memleaks=1
|
|
--FILE--
|
|
<?php
|
|
set_error_handler(function($code, $message) {
|
|
echo "Caught\n";
|
|
});
|
|
|
|
$x= null;
|
|
$x->method();
|
|
echo "Alive\n";
|
|
?>
|
|
--EXPECTF--
|
|
Caught
|
|
Alive
|