#44664 [Opn->Fbk]: array_slice() behaves differently on 64bit systems
| From: | jani@php.net | Date: | Thu, 17 Jul 2008 01:13:08 +0000 |
| Subject: | #44664 [Opn->Fbk]: array_slice() behaves differently on 64bit systems | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-126853@lists.php.net to get a copy of this message | ||
ID: 44664
Updated by: jani@php.net
Reported By: hoffie at gentoo dot org
-Status: Open
+Status: Feedback
Bug Type: Arrays related
Operating System: Linux 64bit
PHP Version: 5.2.6RC4
New Comment:
Does this still happen? With both PHP_5_2 and PHP_5_3 branches?
Previous Comments:
------------------------------------------------------------------------
[2008-04-07 15:17:10] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44664&edit=1