From: Bob Weinand Date: Tue, 22 Dec 2015 16:39:36 +0000 (+0100) Subject: Added test for (long-ago fixed) bug #70083 X-Git-Tag: php-7.0.3RC1~111 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3e3d0290ff245393c0f0eda9146a685c8a9fad3d;p=php Added test for (long-ago fixed) bug #70083 --- diff --git a/Zend/tests/bug70083.phpt b/Zend/tests/bug70083.phpt new file mode 100644 index 0000000000..0391ea2327 --- /dev/null +++ b/Zend/tests/bug70083.phpt @@ -0,0 +1,26 @@ +--TEST-- +Bug #70083 (Use after free with assign by ref to overloaded objects) +--FILE-- +i = &noref(); +var_dump($foo); + +?> +--EXPECTF-- + +Fatal error: Uncaught Error: Cannot assign by reference to overloaded object in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d +