|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
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-2021 The PHP Group
All rights reserved.
Last updated: Thu May 13 14:01:23 2021 UTC