|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patch bug64264.phpt for SPL related Bug #64264Patch version 2013-02-23 12:08 UTC Return to Bug #64264 | Download this patchPatch 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
)
|
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 16:00:01 2025 UTC |