From: Ilia Alshanetsky Date: Tue, 29 Jul 2003 17:54:15 +0000 (+0000) Subject: Test case & news for bug #22836. X-Git-Tag: php-4.3.3RC2~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c65fd57a2409d9ef293ae536fcf692194bf86b0d;p=php Test case & news for bug #22836. --- diff --git a/NEWS b/NEWS index c441030a72..d6ec46cc4f 100644 --- a/NEWS +++ b/NEWS @@ -57,10 +57,11 @@ PHP 4 NEWS - Fixed bug #23792 (imagerotate() problems with limited platte, the function will always return true color image from now on). (Pierre-Alain Joye) - Fixed bug #23664 (FastCGI socket listenting). (Shane) -- Fixed bug #22690 (ob_start() did not work with create_function() callbacks). - (Marcus) - Fixed bug #23685 (fake values returned when OID value is an empty string). (Jani) +- Fixed bug #22836 (memory corruption with references to NULL). (Ilia) +- Fixed bug #22690 (ob_start() did not work with create_function() callbacks). + (Marcus) - Fixed bug #21855 (Threading issue on HP-UX). (Roshan Naik, Andi, Moriyoshi) - Fixed bug #21074 (Apache2: "ErrorDocument xxx /error.php" broken). (Jani) - Fixed bug #19613 (putenv("VAR=") does not empty VAR on win32). (Zeev) diff --git a/tests/lang/bug22836.phpt b/tests/lang/bug22836.phpt new file mode 100644 index 0000000000..2fe95cddff --- /dev/null +++ b/tests/lang/bug22836.phpt @@ -0,0 +1,22 @@ +--TEST-- +Bug #22836 (returning references to NULL) +--FILE-- + +--EXPECTF-- +string(3) "foo" +'foo' + +Notice: Undefined variable: a in %s on line %d + +Fatal error: Cannot return NULL by reference in %s on line %d