iliaa Tue Jan 20 18:03:19 2009 UTC Modified files: (Branch: PHP_5_2) /php-src/ext/standard formatted_print.c Log: MFB: 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.20&r2=1.82.2.1.2.21&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.20 php-src/ext/standard/formatted_print.c:1.82.2.1.2.21 --- php-src/ext/standard/formatted_print.c:1.82.2.1.2.20 Wed Dec 31 11:17:45 2008 +++ php-src/ext/standard/formatted_print.c Tue Jan 20 18:03:19 2009 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: formatted_print.c,v 1.82.2.1.2.20 2008/12/31 11:17:45 sebastian Exp $ */ +/* $Id: formatted_print.c,v 1.82.2.1.2.21 2009/01/20 18:03:19 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; }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php