cvs: /php4/ext/standard math.c

From: Date: Sat, 31 Jul 1999 16:20:06 +0000
Subject: cvs: /php4/ext/standard math.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-3016@lists.php.net to get a copy of this message
zeev Sat Jul 31 12:20:06 1999 EDT Modified files: /php4/ext/standard math.c Log: Fix bug #1914 Index: php4/ext/standard/math.c diff -u php4/ext/standard/math.c:1.4 php4/ext/standard/math.c:1.5 --- php4/ext/standard/math.c:1.4 Sun May 16 07:19:26 1999 +++ php4/ext/standard/math.c Sat Jul 31 12:20:06 1999 @@ -25,6 +25,7 @@ +----------------------------------------------------------------------+ | Authors: Jim Winstead (jimw@php.net) | | Stig Sæther Bakken <ssb@guardian.no> | + | Zeev Suraski <zeev@zend.com> | +----------------------------------------------------------------------+ */ @@ -602,6 +603,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=='.') {

« previous php.version4 (#3016) next »