mirror of
https://github.com/php/php-src.git
synced 2024-10-21 00:12:34 +00:00
13 lines
268 B
Plaintext
13 lines
268 B
Plaintext
|
--TEST--
|
||
|
SPL: FixedArray: Trying to instantiate passing object to constructor parameter
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
$b = new stdClass;
|
||
|
|
||
|
$a = new SplFixedArray($b);
|
||
|
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
Warning: SplFixedArray::__construct() expects parameter 1 to be long, object given in %s on line %d
|