PHP userland backwards compatibility layer that emulates PHP 5.5+ core functions.

⌈⌋ ⎇ branch:  upgrade.php


Artifact [c764e13301]

Artifact c764e133014e993370044e4c82c2dfc11e590f32:

  • File doc/tests1all/array_fill.phpt — part of check-in [51e3884900] at 2010-06-22 17:03:27 on branch trunk — upgradephp-15 (user: mario size: 357)

--TEST--
array_fill
--FILE--
<?php

$a = 17;
$a = array_fill(1, 17, $a);
print_r($a);

?>
--EXPECT--
Array
(
    [1] => 17
    [2] => 17
    [3] => 17
    [4] => 17
    [5] => 17
    [6] => 17
    [7] => 17
    [8] => 17
    [9] => 17
    [10] => 17
    [11] => 17
    [12] => 17
    [13] => 17
    [14] => 17
    [15] => 17
    [16] => 17
    [17] => 17
)