From bd6b53c1d805fe47e08ef93321866913afadad9c Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Mon, 16 Feb 2004 17:09:52 +0000 Subject: [PATCH] MFH: Fixed bug #27278 (*printf() functions treat arguments as if passed by reference). --- NEWS | 4 ++++ ext/standard/formatted_print.c | 1 + 2 files changed, 5 insertions(+) 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]); } -- 2.50.1