From: Ilia Alshanetsky Date: Mon, 16 Feb 2004 17:09:52 +0000 (+0000) Subject: MFH: Fixed bug #27278 (*printf() functions treat arguments as if passed by X-Git-Tag: php-4.3.5RC4~96 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bd6b53c1d805fe47e08ef93321866913afadad9c;p=php MFH: Fixed bug #27278 (*printf() functions treat arguments as if passed by reference). --- diff --git a/NEWS b/NEWS index ad2424515e..abf5d59edf 100644 --- 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) diff --git a/ext/standard/formatted_print.c b/ext/standard/formatted_print.c index 7cd3077a70..d3ad906122 100644 --- a/ext/standard/formatted_print.c +++ b/ext/standard/formatted_print.c @@ -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]); }