File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
Zend /
tests /
bug35437.phpt
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Feb 21 23:47:52 2012 UTC (13 years, 1 month ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
v5_3_10,
HEAD
php
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>