#33226 [WFx]: php 5.0.4 no longer detects endianness when cross-compiling

2005-06-03 Thread jbparsons at ucdavis dot edu
 ID:   33226
 User updated by:  jbparsons at ucdavis dot edu
 Reported By:  jbparsons at ucdavis dot edu
 Status:   Wont fix
 Bug Type: Compile Failure
 Operating System: linux
 PHP Version:  5.0.4
 New Comment:

what's wrong with AC_C_BIGENDIAN?


Previous Comments:


[2005-06-03 08:02:31] [EMAIL PROTECTED]

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 02:32:18] jbparsons at ucdavis dot edu

Description:

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.







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


#33227 [NEW]: zend_strtod() broken on big-endian arm

2005-06-02 Thread jbparsons at ucdavis dot edu
From: jbparsons at ucdavis dot edu
Operating system: "unslung" - www.nslu2-linux.org
PHP version:  5.0.4
PHP Bug Type: Reproducible crash
Bug description:  zend_strtod() broken on big-endian arm

Description:

On big-endian arm systems, php sometimes crashes (infinite loop) inside
zend_strtod().

The problem seems to be the code at line 261 of zend_strtod.c, which
apparently assumes that every arm system has little-endian integers:

#if defined(IEEE_LITTLE_ENDIAN) + defined(VAX) + defined(__arm__)
#define Storeinc(a,b,c) (((unsigned short *)a)[1] = (unsigned short)b, \
((unsigned short *)a)[0] = (unsigned short)c, a++)
#else
#define Storeinc(a,b,c) (((unsigned short *)a)[0] = (unsigned short)b, \
((unsigned short *)a)[1] = (unsigned short)c, a++)
#endif


Reproduce code:
---



Expected result:

startend

Actual result:
--
(gdb) run
Starting program: /share/hdd/data/home/jp30/t/php foo.php
start

  [...minutes pass, then Ctrl-C is pressed...]

Program received signal SIGINT, Interrupt.
0x00146528 in zend_strtod ()
(gdb) bt
#0  0x00146528 in zend_strtod ()
Cannot access memory at address 0x4


-- 
Edit bug report at http://bugs.php.net/?id=33227&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=33227&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=33227&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=33227&r=trysnapshot51
Fixed in CVS:http://bugs.php.net/fix.php?id=33227&r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=33227&r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=33227&r=needtrace
Need Reproduce Script:   http://bugs.php.net/fix.php?id=33227&r=needscript
Try newer version:   http://bugs.php.net/fix.php?id=33227&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=33227&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=33227&r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=33227&r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=33227&r=submittedtwice
register_globals:http://bugs.php.net/fix.php?id=33227&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=33227&r=php3
Daylight Savings:http://bugs.php.net/fix.php?id=33227&r=dst
IIS Stability:   http://bugs.php.net/fix.php?id=33227&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=33227&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=33227&r=float
No Zend Extensions:  http://bugs.php.net/fix.php?id=33227&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=33227&r=mysqlcfg


#33226 [NEW]: php 5.0.4 no longer detects endianness when cross-compiling

2005-06-02 Thread jbparsons at ucdavis dot edu
From: jbparsons at ucdavis dot edu
Operating system: linux
PHP version:  5.0.4
PHP Bug Type: *Compile Issues
Bug description:  php 5.0.4 no longer detects endianness when cross-compiling

Description:

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.



-- 
Edit bug report at http://bugs.php.net/?id=33226&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=33226&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=33226&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=33226&r=trysnapshot51
Fixed in CVS:http://bugs.php.net/fix.php?id=33226&r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=33226&r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=33226&r=needtrace
Need Reproduce Script:   http://bugs.php.net/fix.php?id=33226&r=needscript
Try newer version:   http://bugs.php.net/fix.php?id=33226&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=33226&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=33226&r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=33226&r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=33226&r=submittedtwice
register_globals:http://bugs.php.net/fix.php?id=33226&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=33226&r=php3
Daylight Savings:http://bugs.php.net/fix.php?id=33226&r=dst
IIS Stability:   http://bugs.php.net/fix.php?id=33226&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=33226&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=33226&r=float
No Zend Extensions:  http://bugs.php.net/fix.php?id=33226&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=33226&r=mysqlcfg