]> granicus.if.org Git - php/commitdiff
Bug fixing news & test for bug #27819.
authorIlia Alshanetsky <iliaa@php.net>
Thu, 1 Apr 2004 17:49:21 +0000 (17:49 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 1 Apr 2004 17:49:21 +0000 (17:49 +0000)
NEWS
tests/lang/bug27819.phpt [new file with mode: 0644]

diff --git a/NEWS b/NEWS
index 6c8f2ffbba54cbc8ea4acfb69bc08f642b869722..b93857c01e7c9faf271f75930fa3735707042f08 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -3,8 +3,8 @@ PHP 4                                                                      NEWS
 ?? ??? 2004, Version 4.3.6
 - Synchronized bundled GD library with GD 2.0.22. (Ilia)
 - Fixed bug #27822 (is_resource() returns TRUE for closed resources). (Derick)
-- Fixed bug #25547 (error_handler and array index with function call). 
-  (cschneid at cschneid dot com)
+- Fixed bug #27819 (problems returning reference to a reference parameter).
+  (Ilia)
 - Fixed bug #27809 (ftp_systype returns null on some ftp servers). (Ilia)
 - Fixed bug #27802 (default number of children to 8 when PHP_FCGI_CHILDREN is
   not defined). (Ilia)
@@ -26,6 +26,8 @@ PHP 4                                                                      NEWS
 - Fixed bug #27646 (Cannot serialize/unserialize non-finite numeric values).
   (Marcus)
 - Fixed bug #26757 (session.save_path default is bogus for win32). (Wez)
+- Fixed bug #25547 (error_handler and array index with function call). 
+  (cschneid at cschneid dot com)
 
 26 Mar 2004, Version 4.3.5
 - Fixed possible crash using an invalid color index with a palette image in
diff --git a/tests/lang/bug27819.phpt b/tests/lang/bug27819.phpt
new file mode 100644 (file)
index 0000000..b30c8ab
--- /dev/null
@@ -0,0 +1,19 @@
+--TEST--
+Bug #27819 (problems returning reference to a reference parameter)
+--FILE--
+<?php
+function &test(&$thing)
+{
+       $thing += 1 ;
+       return $thing ;
+}
+
+$a = 6 ;
+echo $a . "\n" ;
+$a =& test($a);
+echo $a. "\n" ;
+$a =& test($a);
+?>
+--EXPECT--
+6
+7