ID: 49246 Updated by: [email protected] Reported By: atomo64 at gmail dot com -Status: Open +Status: Feedback Bug Type: Strings related Operating System: Linux i686 PHP Version: 5.2.10 New Comment:
Please try using this snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://windows.php.net/snapshots/ Previous Comments: ------------------------------------------------------------------------ [2009-08-13 17:38:41] atomo64 at gmail dot com Description: ------------ ext/standard/tests/strings/bug38770.phpt fails on an i686 machine Reproduce code: --------------- <?php foreach (array('N','I','l') as $v) { print_r(unpack($v, pack($v, -30000))); } echo "Done\n"; ?> Expected result: ---------------- (as per the test) Array ( [1] => 4294937296 ) Array ( [1] => -30000 ) Array ( [1] => -30000 ) Done Actual result: -------------- Array ( [1] => -30000 ) Array ( [1] => -30000 ) Array ( [1] => -30000 ) Done ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49246&edit=1
