PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » PHP » PHP_Compat » Bug #5425

array_slice missing

Details

Request #5425array_slice missing
Submitted2005-09-15 21:38 UTC
Fromxulchris at gmail dot com
StatusClosed
PackagePHP_Compat
PHP Version4.3.2
OSRHEL3
Roadmaps(Not assigned)

Comments

[2005-09-15 21:38 UTC] xulchris at gmail dot com

Description:
------------
PHP_Compat does not have an array_slice module. PHP 5 provides an additional paramter for array_slice which is not present in PHP 4.

Test script:
---------------
var_dump(array_slice($myarray, 10, 10, true));

The last paramter (true) indicates that the keys should be preserved which is not present in PHP 4.

Expected result:
----------------
array_slice.php present in PHP Compat class

Actual result:
--------------
no array_slice.php found.