#49246 [Opn->Fbk]: bug38770.phpt fails
| From: | jani@php.net | Date: | Thu, 13 Aug 2009 18:56:39 +0000 |
| Subject: | #49246 [Opn->Fbk]: bug38770.phpt fails | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-141032@lists.php.net to get a copy of this message | ||
ID: 49246
Updated by: jani@php.net
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