php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30948 error: parse error before "one"
Submitted: 2004-11-30 23:55 UTC Modified: 2005-02-17 05:46 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: pauls at sellingsource dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.3.10RC1 OS: Mac OS X 10.3.6
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: pauls at sellingsource dot com
New email:
PHP Version: OS:

 

 [2004-11-30 23:55 UTC] pauls at sellingsource dot com
Description:
------------
It appears there is an uncommented comment at line 228 and 229 of /php-5.0.3RC1/Zend/zend_strtod.c.  This error occurs for me in both php-5.0.3RC1 and php-4.3.10RC1.

The fix is to comment those two lines of code.

Reproduce code:
---------------
./configure --with-xml --with-zlib --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache2/bin/apxs --enable-wddx --enable-soap

make

gcc  -IZend/ -I/php-5.0.3RC1/Zend/ -DPHP_ATOM_INC -I/php-5.0.3RC1/include -I/php-5.0.3RC1/main -I/php-5.0.3RC1 -I/php-5.0.3RC1/Zend -I/usr/include/libxml2 -I/usr/local/include -I/usr/local/mysql/include  -no-cpp-precomp -I/php-5.0.3RC1/TSRM  -g -O2  -c /php-5.0.3RC1/Zend/zend_strtod.c -o Zend/zend_strtod.o  && echo > Zend/zend_strtod.lo
/php-5.0.3RC1/Zend/zend_strtod.c:228: error: parse error before "one"
/php-5.0.3RC1/Zend/zend_strtod.c:229: error: parse error before "IBM"
/php-5.0.3RC1/Zend/zend_strtod.c:235: error: parse error before '}' token
/php-5.0.3RC1/Zend/zend_strtod.c:235: warning: data definition has no type or storage class
/php-5.0.3RC1/Zend/zend_strtod.c: In function `ulp':
/php-5.0.3RC1/Zend/zend_strtod.c:923: error: parse error before "x"
/php-5.0.3RC1/Zend/zend_strtod.c:925: error: parse error before "a"
/php-5.0.3RC1/Zend/zend_strtod.c:927: error: `x' undeclared (first use in this function)
/php-5.0.3RC1/Zend/zend_strtod.c:927: error: (Each undeclared identifier is reported only once
/php-5.0.3RC1/Zend/zend_strtod.c:927: error: for each function it appears in.)
/php-5.0.3RC1/Zend/zend_strtod.c:935: error: `a' undeclared (first use in this function)
/php-5.0.3RC1/Zend/zend_strtod.c: In function `b2d':
/php-5.0.3RC1/Zend/zend_strtod.c:965: error: parse error before "d"
/php-5.0.3RC1/Zend/zend_strtod.c:983: error: `d' undeclared (first use in this function)
/php-5.0.3RC1/Zend/zend_strtod.c: In function `d2b':
/php-5.0.3RC1/Zend/zend_strtod.c:1036: error: parse error before "d"
/php-5.0.3RC1/Zend/zend_strtod.c:1041: error: `d' undeclared (first use in this function)
/php-5.0.3RC1/Zend/zend_strtod.c: In function `ratio':
/php-5.0.3RC1/Zend/zend_strtod.c:1167: error: parse error before "da"
/php-5.0.3RC1/Zend/zend_strtod.c:1170: error: `da' undeclared (first use in this function)
/php-5.0.3RC1/Zend/zend_strtod.c:1171: error: `db' undeclared (first use in this function)
/php-5.0.3RC1/Zend/zend_strtod.c: In function `zend_strtod':
/php-5.0.3RC1/Zend/zend_strtod.c:1238: error: parse error before "rv"
/php-5.0.3RC1/Zend/zend_strtod.c:1247: error: `rv' undeclared (first use in this function)
/php-5.0.3RC1/Zend/zend_strtod.c:1480: error: `rv0' undeclared (first use in this function)
make: *** [Zend/zend_strtod.lo] Error 1



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-01 08:47 UTC] derick@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

Duplicate of bug #30927.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 13 15:01:33 2025 UTC