php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44664 array_slice() behaves differently on 64bit systems
Submitted: 2008-04-07 15:17 UTC Modified: 2008-07-25 01:00 UTC
Votes:2
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: hoffie at gentoo dot org Assigned:
Status: No Feedback Package: Arrays related
PHP Version: 5.2.6RC4 OS: Linux 64bit
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: hoffie at gentoo dot org
New email:
PHP Version: OS:

 

 [2008-04-07 15:17 UTC] hoffie at gentoo dot org
Description:
------------
array_slice() behaves differently on 32bit and 64bit systems. These three tests revealed that (i.e. fail on 64bit): ext/standard/tests/array/array_slice_variation6.phpt, ext/standard/tests/array/array_slice_variation2.phpt, ext/standard/tests/array/array_slice_variation3.phpt.

See http://news.php.net/php.internals/36825 and http://news.php.net/php.internals/36825

Reproduce code:
---------------
$ ./configure --disable-all --enable-pcre-regex --enable-cli
$ TEST_PHP_EXECUTABLE=./sapi/cli/php ./sapi/cli/php run-tests.php ext/standard/tests/array/array_slice_variation6.phpt ext/standard/tests/array/array_slice_variation2.phpt ext/standard/tests/array/array_slice_variation3.phpt

Expected result:
----------------
All three tests should pass.

Actual result:
--------------
All three tests fail.
Diffs:
http://home.hoffie.info/static/array_slice_variation6.diff
http://home.hoffie.info/static/array_slice_variation2.diff
http://home.hoffie.info/static/array_slice_variation3.diff

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-07-17 01:13 UTC] jani@php.net
Does this still happen? With both PHP_5_2 and PHP_5_3 branches?
 [2008-07-25 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".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 17:01:58 2024 UTC