]> granicus.if.org Git - php/commitdiff
MFH: Fixed bug #27278 (*printf() functions treat arguments as if passed by
authorIlia Alshanetsky <iliaa@php.net>
Mon, 16 Feb 2004 17:09:52 +0000 (17:09 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 16 Feb 2004 17:09:52 +0000 (17:09 +0000)
reference).

NEWS
ext/standard/formatted_print.c

diff --git a/NEWS b/NEWS
index ad2424515e00fe4b200c36247858ab08689b178e..abf5d59edf2037407a45ac94b1e4349aa16d06d7 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,9 @@
 PHP 4                                                                      NEWS
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+?? Feb 2004, Version 4.3.5
+- Fixed bug #27278 (*printf() functions treat arguments as if passed by
+  reference). (ilia)
+
 16 Feb 2004, Version 4.3.5RC3
 - Fixed zero bytes memory allocation when no extra ini files are found in the
   --with-config-file-scan-dir specified directory. (Eric Colinet, Derick)
index 7cd3077a70fe862ced302952d969f9eab5b39796..d3ad906122f10868cec72e4484a81f422bb49003 100644 (file)
@@ -613,6 +613,7 @@ php_formatted_print(int ht, int *len, int use_array TSRMLS_DC)
                                *tmp = **(args[argnum]);
                                zval_copy_ctor(tmp);
                        } else {
+                               SEPARATE_ZVAL(args[argnum]);
                                tmp = *(args[argnum]);
                        }