mirror of
https://github.com/php/php-src.git
synced 2024-12-25 01:40:50 +08:00
16 lines
280 B
PHP
16 lines
280 B
PHP
--TEST--
|
|
Method calls on non-objects raise recoverable errors
|
|
--FILE--
|
|
<?php
|
|
|
|
$x= null;
|
|
$x->method();
|
|
echo "Should not get here!\n";
|
|
?>
|
|
--EXPECTF--
|
|
|
|
Fatal error: Uncaught Error: Call to a member function method() on null in %s:%d
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %s on line %d
|