xref: /PHP-5.6/Zend/tests/bug35437.phpt (revision 610c7fbe)
1--TEST--
2Bug #35437 (Segfault or Invalid Opcode 137/1/4)
3--FILE--
4<?php
5function err2exception($errno, $errstr)
6{
7	throw new Exception("Error occuried: " . $errstr);
8}
9
10set_error_handler('err2exception');
11
12class TestClass
13{
14	function testMethod()
15	{
16		$GLOBALS['t'] = new stdClass;
17	}
18}
19
20try {
21	TestClass::testMethod();
22} catch (Exception $e) {
23	echo "Catched: ".$e->getMessage()."\n";
24}
25?>
26--EXPECT--
27Catched: Error occuried: Non-static method TestClass::testMethod() should not be called statically
28