summaryrefslogtreecommitdiff
path: root/Zend/tests/methods-on-non-objects.phpt
blob: 803de1cffa205e58720065d398c54674ea9190e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--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 exception 'EngineException' with message 'Call to a member function method() on null' in %s:%d
Stack trace:
#0 {main}
  thrown in %s on line %d