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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
34 + 40 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 07:01:29 2024 UTC