ID:               44664
 Updated by:       [EMAIL PROTECTED]
 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

Reply via email to