File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
Zend /
tests /
bug46381.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 #46381 (wrong $this passed to internal methods causes segfault)
3: --SKIPIF--
4: <?php if (!extension_loaded("spl")) die("skip SPL is no available"); ?>
5: --FILE--
6: <?php
7:
8: class test {
9: public function test() {
10: return ArrayIterator::current();
11: }
12: }
13: $test = new test();
14: $test->test();
15:
16: echo "Done\n";
17: ?>
18: --EXPECTF--
19: Fatal error: Non-static method ArrayIterator::current() cannot be called statically, assuming $this from incompatible context in %s on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>