|  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
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
Have you experienced this issue?
Rate the importance of this bug to you:

 [2008-04-07 15:17 UTC] hoffie at gentoo dot org
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 and

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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-07-17 01:13 UTC]
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: Fri Jul 12 18:01:29 2024 UTC