![]() ![]() | ![]() |
1.1 misho 1: --TEST-- 2: Bug #30080 (Passing array or non array of objects) 3: --FILE-- 4: <?php 5: class foo { 6: function foo($arrayobj) { 7: var_dump($arrayobj); 8: } 9: } 10: 11: new foo(array(new stdClass)); 12: ?> 13: --EXPECT-- 14: array(1) { 15: [0]=> 16: object(stdClass)#2 (0) { 17: } 18: }