php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49246 bug38770.phpt fails
Submitted: 2009-08-13 17:38 UTC Modified: 2009-08-21 01:00 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: atomo64 at gmail dot com Assigned:
Status: No Feedback Package: Strings related
PHP Version: 5.2.10 OS: Linux i686
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2009-08-13 17:38 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-08-13 18:56 UTC] jani@php.net
Please try using this snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2009-08-21 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2010-07-24 13:42 UTC] men28u at yahoo dot com
There is no problem on 64bit Ubuntu 10.04 LTS - the Lucid Lynx.

make test TESTS=./ext/standard/tests/strings/bug38770.phpt

passes without any problem on php 5.2 version.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue Aug 09 19:04:05 2022 UTC