php-src/Zend/tests/methods-on-non-objects.phpt

13 lines
223 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: Call to a member function method() on null in %s on line %d