#31786 [Opn->WFx]: Zend/zend_strtod.c contains invalid pre-processing error info

From: Date: Tue, 01 Feb 2005 08:22:45 +0000
Subject: #31786 [Opn->WFx]: Zend/zend_strtod.c contains invalid pre-processing error info
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-73174@lists.php.net to get a copy of this message
 ID:               31786
 Updated by:       derick@php.net
 Reported By:      vapier at gentoo dot org
-Status:           Open
+Status:           Wont fix
 Bug Type:         Compile Failure
 Operating System: ia64 / linux
 PHP Version:      5CVS-2005-02-01 (dev)
 New Comment:

#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.


Previous Comments:
------------------------------------------------------------------------

[2005-02-01 00:12:46] vapier at gentoo dot org

Description:
------------
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



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=31786&edit=1


Thread (2 messages)

« previous php.bugs (#73174) next »