iliaa Tue Jan 20 18:03:33 2009 UTC Modified files: /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.108&r2=1.109&diff_format=u Index: php-src/ext/standard/formatted_print.c diff -u php-src/ext/standard/formatted_print.c:1.108 php-src/ext/standard/formatted_print.c:1.109 --- php-src/ext/standard/formatted_print.c:1.108 Wed Dec 31 11:12:36 2008 +++ php-src/ext/standard/formatted_print.c Tue Jan 20 18:03:33 2009 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: formatted_print.c,v 1.108 2008/12/31 11:12:36 sebastian Exp $ */ +/* $Id: formatted_print.c,v 1.109 2009/01/20 18:03:33 iliaa Exp $ */ #include <math.h> /* modf() */ #include "php.h" @@ -358,6 +358,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