From: Antony Dovgal Date: Fri, 24 Oct 2008 20:17:50 +0000 (+0000) Subject: add test X-Git-Tag: BEFORE_HEAD_NS_CHANGE~167 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5e8f3f5b6ff1b092db509dd0abdd30662af0511d;p=php add test --- diff --git a/Zend/tests/bug46381.phpt b/Zend/tests/bug46381.phpt new file mode 100644 index 0000000000..4d58e9fdf3 --- /dev/null +++ b/Zend/tests/bug46381.phpt @@ -0,0 +1,19 @@ +--TEST-- +Bug #46381 (wrong $this passed to internal methods causes segfault) +--SKIPIF-- + +--FILE-- +test(); + +echo "Done\n"; +?> +--EXPECTF-- +Fatal error: Non-static method ArrayIterator::current() cannot be called statically, assuming $this from incompatible context in %s on line %d