diff --git a/Zend/tests/bug46381.phpt b/Zend/tests/bug46381.phpt new file mode 100644 index 00000000000..4d58e9fdf31 --- /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