From: Ilia Alshanetsky Date: Tue, 29 Jul 2003 17:56:50 +0000 (+0000) Subject: Test case for bug #22836. X-Git-Tag: BEFORE_ARG_INFO~52 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7b18132dbab996cd4a7962907e45a2925ca3544d;p=php Test case for bug #22836. --- diff --git a/Zend/tests/bug22836.phpt b/Zend/tests/bug22836.phpt new file mode 100644 index 0000000000..14c9e9f3ed --- /dev/null +++ b/Zend/tests/bug22836.phpt @@ -0,0 +1,24 @@ +--TEST-- +Bug #22836 (returning references to NULL) +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +string(3) "foo" +'foo' + +Notice: Undefined variable: a in %s on line %d + +Fatal error: Only variables or references can be returned by reference in %s on line %d