mirror of
https://github.com/php/php-src.git
synced 2025-01-06 02:43:34 +08:00
17 lines
291 B
PHP
17 lines
291 B
PHP
--TEST--
|
|
SPL: FixedArray: accessing uninitialized array
|
|
--FILE--
|
|
<?php
|
|
|
|
try {
|
|
$a = new SplFixedArray('');
|
|
} catch (TypeError $iae) {
|
|
echo "Ok - ".$iae->getMessage().PHP_EOL;
|
|
}
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECT--
|
|
Ok - SplFixedArray::__construct() expects parameter 1 to be int, string given
|
|
Done
|