Patch bug64264.phpt for SPL related Bug #64264
Patch version 2013-02-23 12:08 UTC
Return to Bug #64264 |
Download this patch
Patch Revisions:
Developer: laruence@php.net
--TEST--
Bug #64264 (SPLFixedArray toArray problem)
--FILE--
<?php
class MyFixedArray extends \SplFixedArray {
protected $foo;
protected $bar;
}
$myFixedArr = new MyFixedArray(1);
$myFixedArr[0] = 'foo';
$myFixedArr->setSize(2);
$myFixedArr[1] = 'bar';
print_r($myFixedArr->toArray());
?>
--EXPECTF--
Array
(
[0] => foo
[1] => bar
)
|