Bug #66750 [NEW]: The function `array_slice` does not do what it must to do
From: olarmariusalex at gmail dot com
Operating system: Linux Mint
PHP version: 5.4.25
Package: *General Issues
Bug Type: Bug
Bug description:The function array_slice does not do what it must to do
Description:
------------
---
From manual page: http://www.php.net/function.array-slice
---
The function array_slice just have to Extract a slice of the array,
and must not change the array data(keys or values). Because of the
default parameter value $preserve_keys = false, this bug appears. To
resolve this issue the default parameter value must be: `$preserve_keys
= true`.
--
Edit bug report at https://bugs.php.net/bug.php?id=66750&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66750&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66750&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66750&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=66750&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=66750&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=66750&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=66750&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=66750&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=66750&r=support
Expected behavior: https://bugs.php.net/fix.php?id=66750&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=66750&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=66750&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=66750&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66750&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=66750&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=66750&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=66750&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=66750&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=66750&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=66750&r=mysqlcfg
Thread (2 messages)
- olarmariusalex at gmail dot com