--TEST-- Bug #37811 (define not using toString on objects) --FILE-- getMessage(), "\n"; } ?> --EXPECT-- object(TestClass)#1 (0) { } string(3) "Foo" object(stdClass)#2 (0) { } Object of class stdClass could not be converted to string