1--TEST--
2Method calls on non-objects raise recoverable errors
3--FILE--
4<?php
5
6$x= null;
7$x->method();
8echo "Should not get here!\n";
9?>
10--EXPECTF--
11
12Fatal error: Uncaught Error: Call to a member function method() on null in %s:%d
13Stack trace:
14#0 {main}
15  thrown in %s on line %d
16