cvs: php4 /ext/standard formatted_print.c
| From: | Ilia Alshanetsky | Date: | Mon, 14 Oct 2002 16:03:17 +0000 |
| Subject: | cvs: php4 /ext/standard formatted_print.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-14917@lists.php.net to get a copy of this message | ||
iliaa Mon Oct 14 12:03:17 2002 EDT
Modified files:
/php4/ext/standard formatted_print.c
Log:
Fixed a bug (introduced in previous patch) that caused non-double values to
be converted to 0 by printf/sprint functions when %f format is specified.
Index: php4/ext/standard/formatted_print.c
diff -u php4/ext/standard/formatted_print.c:1.55 php4/ext/standard/formatted_print.c:1.56
--- php4/ext/standard/formatted_print.c:1.55 Fri Oct 11 00:44:14 2002
+++ php4/ext/standard/formatted_print.c Mon Oct 14 12:03:16 2002
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: formatted_print.c,v 1.55 2002/10/11 04:44:14 sebastian Exp $ */
+/* $Id: formatted_print.c,v 1.56 2002/10/14 16:03:16 iliaa Exp $ */
#include <math.h> /* modf() */
#include "php.h"
@@ -605,6 +605,7 @@
case 'e':
case 'f':
/* XXX not done */
+ convert_to_double_ex(args[argnum]);
php_sprintf_appenddouble(&result, &outpos, &size,
Z_DVAL_PP(args[argnum]),
width, padding, alignment,