Home
last modified time | relevance | path

Searched refs:array_fill (Results 1 – 21 of 21) sorted by relevance

/PHP-5.4/ext/standard/tests/array/
H A Darray_fill_error.phpt2 Test array_fill() function : error conditions
11 echo "*** Testing array_fill() : error conditions ***\n";
15 var_dump( array_fill() );
23 var_dump( array_fill($start_key,$num,$val, $extra_arg) );
29 var_dump( array_fill($start_key,$num) );
31 //calling array_fill with negative values for 'num' parameter
33 var_dump( array_fill($start_key,$num,$val) );
35 //callin array_fill with 'num' equal to zero value
37 var_dump( array_fill($start_key,$num,$val) );
42 *** Testing array_fill() : error conditions ***
[all …]
H A Darray_fill_variation2.phpt2 Test array_fill() function : usage variations - unexpected values for 'num' argument
5 /* Prototype : proto array array_fill(int start_key, int num, mixed val)
14 echo "*** Testing array_fill() : usage variations ***\n";
82 // check the working of array_fill
83 echo "--- Testing array_fill() with different values for 'num' arg ---\n";
90 var_dump( array_fill($start_key,$num,$val) );
98 *** Testing array_fill() : usage variations ***
99 --- Testing array_fill() with different values for 'num' arg ---
109 Warning: array_fill(): Number of elements must be positive in %s on line %d
126 Warning: array_fill(): Number of elements must be positive in %s on line %d
[all …]
H A Darray_fill_variation1.phpt2 Test array_fill() function : usage variations - unexpected values for 'start_key' argument
9 /* Prototype : proto array array_fill(int start_key, int num, mixed val)
15 * testing array_fill() by passing different unexpected value for 'start_key' argument
18 echo "*** Testing array_fill() : usage variations ***\n";
91 // check the working of array_fill()
92 echo "--- Testing array_fill() with different values for 'start_key' arg ---\n";
99 var_dump( array_fill($start_key,$num,$val) );
110 *** Testing array_fill() : usage variations ***
111 --- Testing array_fill() with different values for 'start_key' arg ---
149 Warning: array_fill() expects parameter 1 to be long, array given in %sarray_fill_variation1.php on…
[all …]
H A Darray_fill_variation1_64bit.phpt2 Test array_fill() function : usage variations - unexpected values for 'start_key' argument
9 /* Prototype : proto array array_fill(int start_key, int num, mixed val)
15 * testing array_fill() by passing different unexpected value for 'start_key' argument
18 echo "*** Testing array_fill() : usage variations ***\n";
91 // check the working of array_fill()
92 echo "--- Testing array_fill() with different values for 'start_key' arg ---\n";
99 var_dump( array_fill($start_key,$num,$val) );
110 *** Testing array_fill() : usage variations ***
111 --- Testing array_fill() with different values for 'start_key' arg ---
149 Warning: array_fill() expects parameter 1 to be long, array given in %s on line %d
[all …]
H A Darray_fill_variation3.phpt2 Test array_fill() function : usage variations - unexpected values for 'val' argument
5 /* Prototype : array array_fill(int $start_key, int $num, mixed $val)
11 * testing array_fill() by passing different unexpected values for 'val' argument
14 echo "*** Testing array_fill() : usage variations ***\n";
51 // check the working of array_fill()
52 echo "--- Testing array_fill() with different values for 'val' argument ---\n";
59 var_dump( array_fill($start_key , $num , $val) );
67 *** Testing array_fill() : usage variations ***
68 --- Testing array_fill() with different values for 'val' argument ---
H A Darray_fill_variation4.phpt2 Test array_fill() function : usage variations - using return value of array_fill for 'val' argument
5 /* Prototype : proto array array_fill(int start_key, int num, mixed val)
10 /* passing array_fill() as the 'val' argument in array_fill() function */
12 echo "*** Testing array_fill() : variation ***\n";
39 var_dump( array_fill($start_key,$num,array_fill($start_key,$num,$val)) );
47 *** Testing array_fill() : variation ***
H A Darray_fill.phpt2 basic array_fill test
15 $output = array_fill($start, $num, $value);
27 Warning: array_fill(): Number of elements must be positive in %s on line %d
32 Warning: array_fill(): Number of elements must be positive in %s on line %d
37 Warning: array_fill(): Number of elements must be positive in %s on line %d
42 Warning: array_fill(): Number of elements must be positive in %s on line %d
47 Warning: array_fill(): Number of elements must be positive in %s on line %d
52 Warning: array_fill(): Number of elements must be positive in %s on line %d
141 Warning: array_fill(): Number of elements must be positive in %s on line %d
146 Warning: array_fill(): Number of elements must be positive in %s on line %d
[all …]
H A Darray_fill_basic.phpt2 Test array_fill() function : basic functionality
5 /* Prototype : proto array array_fill(int start_key, int num, mixed val)
10 echo "*** Testing array_fill() : basic functionality ***\n";
12 // calling the array_fill with all possible valid values for 'val' argument
38 var_dump( array_fill($start_key,$num,$val) );
46 *** Testing array_fill() : basic functionality ***
H A Dbug61058.phpt2 Bug #61058 (array_fill leaks if start index is PHP_INT_MAX)
5 array_fill(PHP_INT_MAX, 2, '*');
8 Warning: array_fill(): Cannot add element to the array as the next element is already occupied in %…
H A Darray_fill_variation5.phpt2 Test array_fill() function : usage variations - different types of array values for 'val' argument
5 /* Prototype : array array_fill(int $start_key, int $num, mixed $val)
11 * testing array_fill() by passing different types of array values for 'val' argument
14 echo "*** Testing array_fill() : usage variations ***\n";
40 // check the working of array_fill()
41 echo "--- Testing array_fill() with different types of array values for 'val' argument ---\n";
48 var_dump( array_fill($start_key , $num , $val) );
56 *** Testing array_fill() : usage variations ***
57 --- Testing array_fill() with different types of array values for 'val' argument ---
H A Darray_fill_object.phpt2 Test array_fill() function : usage variations - various object values for 'val' argument
7 /* Prototype : array array_fill(int $start_key, int $num, mixed $val)
13 * testing array_fill() by passing various object values for 'val' argument
16 echo "*** Testing array_fill() : usage variations ***\n";
193 // check the working of array_fill()
194 echo "--- Testing array_fill() with different object values for 'val' argument ---\n";
201 var_dump( array_fill($start_key,$num,$val) );
209 *** Testing array_fill() : usage variations ***
210 --- Testing array_fill() with different object values for 'val' argument ---
H A Darray_fill_object_2_4.phpt2 Test array_fill() function : usage variations - various object values for 'val' argument
7 /* Prototype : array array_fill(int $start_key, int $num, mixed $val)
13 * testing array_fill() by passing various object values for 'val' argument
16 echo "*** Testing array_fill() : usage variations ***\n";
193 // check the working of array_fill()
194 echo "--- Testing array_fill() with different object values for 'val' argument ---\n";
201 var_dump( array_fill($start_key,$num,$val) );
209 *** Testing array_fill() : usage variations ***
210 --- Testing array_fill() with different object values for 'val' argument ---
H A Dbug61730.phpt5 $myArray = array_fill(0, 10, 1);
/PHP-5.4/ext/standard/tests/streams/
H A Dbug61115.phpt6 $arrayLarge = array_fill(0, 113663, '*');
/PHP-5.4/ext/spl/tests/
H A Dbug67539.phpt6 $it = new ArrayIterator(array_fill(0,2,'X'), 1 );
/PHP-5.4/Zend/tests/
H A Dbug61273.phpt10 $args = array_fill(0, 64 * 1024 - 64, 0);
/PHP-5.4/ext/pdo_pgsql/tests/
H A Dbug66584.phpt46 $bind = join(', ', array_fill(0, count($data), '?'));
/PHP-5.4/ext/standard/
H A Dphp_array.h56 PHP_FUNCTION(array_fill);
H A Darray.c1546 PHP_FUNCTION(array_fill) in PHP_FUNCTION() argument
H A Dbasic_functions.c3296 PHP_FE(array_fill, arginfo_array_fill)
/PHP-5.4/
H A DNEWS1817 . Fixed bug #61058 (array_fill leaks if start index is PHP_INT_MAX).
2444 . Fixed bug #61058 (array_fill leaks if start index is PHP_INT_MAX).

Completed in 59 milliseconds