|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33226 php 5.0.4 no longer detects endianness when cross-compiling
Submitted: 2005-06-03 02:32 UTC Modified: 2005-06-03 21:40 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: jbparsons at ucdavis dot edu Assigned:
Status: Wont fix Package: Compile Failure
PHP Version: 5.0.4 OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: jbparsons at ucdavis dot edu
New email:
PHP Version: OS:


 [2005-06-03 02:32 UTC] jbparsons at ucdavis dot edu
php 5.0.3 and earlier used AC_C_BIGENDIAN during configuration to detect the endianness of the target system.  This autoconf macro is capable of detecting the endianness of many systems even when cross-compiling.

php 5.0.4 now uses AC_TRY_RUN instead, which means that it is no longer able to detect the endianness of a target, and it must instead be configured manually.

This makes it harder to configure php correctly when building for embedded systems, such as the Linksys nslu2, where this problem was noticed.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-03 08:02 UTC]
Yes, life is hard sometimes. If you can provide a reliable way to detect endianness when cross-compiling, feel free to send a patch. 
 [2005-06-03 21:40 UTC] jbparsons at ucdavis dot edu
what's wrong with AC_C_BIGENDIAN?
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Jan 26 21:03:34 2022 UTC