ID: 41951 User updated by: rachmel at avaya dot com Reported By: rachmel at avaya dot com Status: Wont fix Bug Type: *Math Functions Operating System: WindRiver Linux PHP Version: 5.2CVS-20070710 New Comment:
Hi, OK - I understand you aren't going to fix it, but I have found the problematic values and will post them here for others to benefit. when the configure script tries to define the sizes of int, char etc. for a cross-compilation environment, it uses some predefined values that aren't necessarily fit. The values I had to changes were of: (1) sizeof long (2) sizeof ssize_t (3) sizeof size_t Thanks for the help, Nir. Previous Comments: ------------------------------------------------------------------------ [2007-07-11 07:40:54] [EMAIL PROTECTED] It's propably the cross-compiling causing this. It picks wrong values for certain defines. See configure.in for AC_CHECK_SIZEOF and PHP_CHECK_SIZEOF for examples. The last parameter in those is the value passed when cross-compiling. Also check the generated main/php_config.h which you better change before running make to change those to be correct. In any case, cross-compiling is something that we don't really support so I'm closing this report. ------------------------------------------------------------------------ [2007-07-11 07:29:36] rachmel at avaya dot com I see.. Well, can you at least give me directions? Where can I find the code responsible for parsing numbers and deciding whether to save them as int / floats? Thanks, Nir. ------------------------------------------------------------------------ [2007-07-11 07:22:17] [EMAIL PROTECTED] We don't have any PPC-windriver machines off hand, so I don't thin anybody is able to help you except for yourself. ------------------------------------------------------------------------ [2007-07-10 14:38:19] rachmel at avaya dot com Hi, I tried the CVS head version you offered me in the above link. The problem is still there, and the numbers are not converted to float as expected. ------------------------------------------------------------------------ [2007-07-10 14:10:06] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows (zip): http://snaps.php.net/win32/php5.2-win32-latest.zip For Windows (installer): http://snaps.php.net/win32/php5.2-win32-installer-latest.msi ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/41951 -- Edit this bug report at http://bugs.php.net/?id=41951&edit=1