From:             hoffie at gentoo dot org
Operating system: Linux 64bit
PHP version:      5.2.6RC4
PHP Bug Type:     Arrays related
Bug description:  array_slice() behaves differently on 64bit systems

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 bug report at http://bugs.php.net/?id=44664&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=44664&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=44664&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=44664&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=44664&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=44664&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=44664&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=44664&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=44664&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=44664&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=44664&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=44664&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=44664&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=44664&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=44664&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=44664&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=44664&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=44664&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=44664&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=44664&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=44664&r=mysqlcfg

Reply via email to