Date: 07/31/99
- Next message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #1784 Updated: Child gives SIG 11 after a GET"
- Previous message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #1789 Updated: Bug 1765"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
zeev Sat Jul 31 13:17:35 1999 EDT
Modified files:
/php3 ChangeLog
/php3/functions math.c
Log:
Index: php3/ChangeLog
diff -u php3/ChangeLog:1.734 php3/ChangeLog:1.735
--- php3/ChangeLog:1.734 Wed Jul 28 12:54:53 1999
+++ php3/ChangeLog Sat Jul 31 13:17:34 1999
@@ -1,6 +1,9 @@
PHP 3.0 CHANGE LOG ChangeLog
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+???? ??, 1999, Version 3.0.13
+- Fix a crash bug in number_format(), in case of very large numbers (Zeev)
+
July 28, 1999, Version 3.0.12
- gmktime/mktime DST fix (RL and Jim)
- Add imap_search (Chuck Hagenbuch)
Index: php3/functions/math.c
diff -u php3/functions/math.c:1.46 php3/functions/math.c:1.47
--- php3/functions/math.c:1.46 Thu Apr 22 09:19:50 1999
+++ php3/functions/math.c Sat Jul 31 13:17:35 1999
@@ -28,7 +28,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: math.c,v 1.46 1999/04/22 13:19:50 ssb Exp $ */
+/* $Id: math.c,v 1.47 1999/07/31 17:17:35 zeev Exp $ */
#ifdef THREAD_SAFE
#include "tls.h"
@@ -618,6 +618,10 @@
tmpbuf = (char *) emalloc(32+dec);
tmplen=_php3_sprintf(tmpbuf,"%.*f",dec,d);
+
+ if (!isdigit(tmpbuf[0])) {
+ return tmpbuf;
+ }
for (t=tmpbuf; *t; t++) {
if (*t=='.') {
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #1784 Updated: Child gives SIG 11 after a GET"
- Previous message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #1789 Updated: Bug 1765"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

