From 7b18132dbab996cd4a7962907e45a2925ca3544d Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Tue, 29 Jul 2003 17:56:50 +0000 Subject: [PATCH] Test case for bug #22836. --- Zend/tests/bug22836.phpt | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Zend/tests/bug22836.phpt 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 -- 2.40.0