mirror of
https://github.com/php/php-src.git
synced 2024-12-18 14:30:35 +08:00
9b6062071e
Now also includes "on [TYPE]" after merge from master
13 lines
233 B
PHP
13 lines
233 B
PHP
--TEST--
|
|
Method calls on non-objects raise recoverable errors
|
|
--FILE--
|
|
<?php
|
|
|
|
$x= null;
|
|
$x->method();
|
|
echo "Should not get here!\n";
|
|
?>
|
|
--EXPECTF--
|
|
|
|
Catchable fatal error: Call to a member function method() on null in %s on line %d
|