cvs: php-src(PHP_5_3) /ext/standard formatted_print.c

From: Date: Tue, 20 Jan 2009 18:02:36 +0000
Subject: cvs: php-src(PHP_5_3) /ext/standard formatted_print.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-55797@lists.php.net to get a copy of this message
iliaa Tue Jan 20 18:02:36 2009 UTC Modified files: (Branch: PHP_5_3) /php-src/ext/standard formatted_print.c Log: Added an E_NOTICE when precision value is truncated http://cvs.php.net/viewvc.cgi/php-src/ext/standard/formatted_print.c?r1=1.82.2.1.2.16.2.9&r2=1.82.2.1.2.16.2.10&diff_format=u Index: php-src/ext/standard/formatted_print.c diff -u php-src/ext/standard/formatted_print.c:1.82.2.1.2.16.2.9 php-src/ext/standard/formatted_print.c:1.82.2.1.2.16.2.10 --- php-src/ext/standard/formatted_print.c:1.82.2.1.2.16.2.9 Wed Dec 31 11:15:45 2008 +++ php-src/ext/standard/formatted_print.c Tue Jan 20 18:02:35 2009 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: formatted_print.c,v 1.82.2.1.2.16.2.9 2008/12/31 11:15:45 sebastian Exp $ */ +/* $Id: formatted_print.c,v 1.82.2.1.2.16.2.10 2009/01/20 18:02:35 iliaa Exp $ */ #include <math.h> /* modf() */ #include "php.h" @@ -225,6 +225,7 @@ if ((adjust & ADJ_PRECISION) == 0) { precision = FLOAT_PRECISION; } else if (precision > MAX_FLOAT_PRECISION) { + php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Requested precision of %d digits was truncated to PHP maximum of %d digits", precision, MAX_FLOAT_PRECISION); precision = MAX_FLOAT_PRECISION; }

« previous php.cvs (#55797) next »