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--
11Fatal error: Uncaught Error: Call to a member function method() on null in %s:%d
12Stack trace:
13#0 {main}
14  thrown in %s on line %d
15