|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31786 Zend/zend_strtod.c contains invalid pre-processing error info
Submitted: 2005-02-01 00:12 UTC Modified: 2005-02-01 09:22 UTC
From: vapier at gentoo dot org Assigned:
Status: Wont fix Package: Compile Failure
PHP Version: 5CVS-2005-02-01 (dev) OS: ia64 / linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
40 - 33 = ?
Subscribe to this entry?

 [2005-02-01 00:12 UTC] vapier at gentoo dot org
in ZendEngine2/zend_strtod.c in php-5.0 cvs at around line 233, there is a sanity check to make sure that certain combinations of defines don't exist ... if they do, a helpful error message is supposed to be dumped:
Exactly one of IEE_LITTLE_ENDIAN ...

however, if you should ever hit this bad mojo, your compiler will spout ugly looking parser errors

the statement should be prefixed with '#error ' so that the compiler will dump the helpful message rather than unhelpful crap :)

since the message is wrapped across two lines, a \ will be needed too


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-01 09:22 UTC]
#error unfortuntaly doesn't work for all compilers, and will bomb out even if the statement is not reached, so we can't fix this.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu May 13 15:01:23 2021 UTC