1 Sep 2008 15:30
[PHP-DEV] Bug #45068: SIZEOF_LONG, etc. when cross compiling
Matt Wilmas <php_lists <at> realplain.com>
2008-09-01 13:30:44 GMT
2008-09-01 13:30:44 GMT
Hi all, SIZEOF_LONG is getting #define'd as 8 when compiling for 32-bit on 64-bit (is it possible to do the opposite, maybe switched there too?). It also makes MAX_LENGTH_OF_LONG be set wrong, causing the problem in Bug #45068. There are some other places in the code where incorrect code may be used because of wrong SIZEOF_LONG. Is this something that can be easily fixed by one of the build system people? If not, what about setting it (or checking and correcting if needed) in a PHP .h file, instead of the configure script, according to the value of LONG_MAX or something? *shrug* BTW, it looks like the same thing is probably happening for other SIZEOF_* #define's. Well, hopefully someone can look into it!Thanks, Matt -- -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Thanks,
Matt
RSS Feed