summaryrefslogtreecommitdiff
path: root/ext/spl/tests/fixedarray_015.phpt
blob: 1936cc962b9add073d06bb66bdffb89eab0b971f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--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(): Argument #1 ($size) must be of type int, string given
Done