Skip to content

Commit c062c18

Browse files
kaplanliorsmalyshev
authored andcommitted
Replace invalid code with a proper #error
This code creates a nasty error as mentioned in bugs #31131, #37062 Patch taken from Debian's PHP package: 044-strtod_arm_fix
1 parent b5f5bff commit c062c18

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ PHP NEWS
44

55
- Core:
66
. Added validation of class names in the autoload process. (Dmitry)
7+
. Fixed invalid C code in zend_strtod.c. (Lior Kaplan)
78
. Fixed bug #61645 (fopen and O_NONBLOCK). (Mike)
89

910
- Date:

Zend/zend_strtod.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,7 @@ BEGIN_EXTERN_C()
267267

268268
#if defined(IEEE_LITTLE_ENDIAN) + defined(IEEE_BIG_ENDIAN) + defined(VAX) + \
269269
defined(IBM) != 1
270-
Exactly one of IEEE_LITTLE_ENDIAN IEEE_BIG_ENDIAN, VAX, or
271-
IBM should be defined.
270+
#error "Exactly one of IEEE_LITTLE_ENDIAN IEEE_BIG_ENDIAN, VAX, or IBM should be defined."
272271
#endif
273272

274273
typedef union {

0 commit comments

Comments
 (0)