summaryrefslogtreecommitdiff
path: root/ext/spl/tests/SplFixedArray__construct_param_null.phpt
blob: acd9d44af50da0a86d0ffce52b4da4118620ed5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
SplFixedArray::__construct() with null passed as parameter.
--CREDITS--
PHPNW Test Fest 2009 - Jordan Hatch
--FILE--
<?php

$array = new SplFixedArray( NULL );

print_r( $array );

?>
--EXPECTF--
Deprecated: SplFixedArray::__construct(): Passing null to parameter #1 ($size) of type int is deprecated in %s on line %d
SplFixedArray Object
(
)