RE: [PHP-DEV] 64 bit safety...

From: Date: Wed, 16 Jun 2004 19:30:29 +0000
Subject: RE: [PHP-DEV] 64 bit safety...
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-10543@lists.php.net to get a copy of this message
While this is being fixed: 1. Does that mean PHP on 64-bit is declared not safe for Production use? 2. Will it be safe on Linux AMD64, if we compiled PHP with CFLAGS="-m32" ? I have noticed on both release of PHP4.3.7 & PHP5.0.0RC3, there are some failures during "make test", if compiled without CFLAGS="-m32" Joe Lee -----Original Message----- From: Stefan Esser [mailto:sesser@php.net] Sent: Wednesday, June 16, 2004 6:03 PM To: internals@lists.php.net Subject: [PHP-DEV] 64 bit safety... Hi, seems some parts... especially sqlite are not 64bit safe. If you want to do something productive go out and search for zend_parse_parameter calls where l is not writing to a long (NOT int) and where the strlen of a s is not written into an int. F.e. in sqlite there seems to be several places where the strlen of a s is written into a long instead of an int. This will all break bigtime on 64bit systems where int is 32 bit but long is 64 bit. Stefan -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.internals (#10543) next »