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