mirror of
https://github.com/php/php-src.git
synced 2024-10-01 23:06:11 +00:00
9b6062071e
Now also includes "on [TYPE]" after merge from master
23 lines
478 B
PHP
23 lines
478 B
PHP
--TEST--
|
|
Catch chained method calls on non-objects raise recoverable errors
|
|
--FILE--
|
|
<?php
|
|
set_error_handler(function($code, $message) {
|
|
var_dump($code, $message);
|
|
});
|
|
|
|
$x= null;
|
|
var_dump($x->method()->chained()->invocations());
|
|
echo "Alive\n";
|
|
?>
|
|
--EXPECTF--
|
|
|
|
int(4096)
|
|
string(%d) "Call to a member function method() on null"
|
|
int(4096)
|
|
string(%d) "Call to a member function chained() on null"
|
|
int(4096)
|
|
string(%d) "Call to a member function invocations() on null"
|
|
NULL
|
|
Alive
|