php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #64264
Patch bug64264.phpt revision 2013-02-23 12:08 UTC by laruence@php.net
Patch bug64264.patch revision 2013-02-23 12:08 UTC by laruence@php.net

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
)
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Sat Apr 19 09:02:28 2014 UTC