예제 #1
0
파일: array_057.php 프로젝트: badlamer/hhvm
function foo($ids)
{
    $x = array();
    foreach ($ids as $id) {
        $target = unknown($id);
        if ($target !== null) {
            $x[$target][] = $id;
        }
    }
    return $x;
}
예제 #2
0
<? //

// call to unknown function; see DepGraph.getUsedPlacesForBuiltin()
// (not so important, should not happen normally)


$a = unknown($x, $y);
echo $a;





?>
예제 #3
0
파일: release.php 프로젝트: danielsan/boris
if (count($args) != 1) {
    help();
    exit(1);
}
foreach ($args as $opt => $value) {
    switch ($opt) {
        case 'v':
        case 'version':
            version($value);
            exit(0);
        case 'h':
        case 'help':
            help();
            exit(0);
        default:
            unknown($opt);
            exit(1);
    }
}
function help()
{
    echo <<<HELP
Boris release generator script.

Usage:
  ./release.php --version 1.2    Create a release for v1.2
  ./release.php --help           Display this help message

HELP;
}
function version($newVersion)
예제 #4
0
$a[$c = ${$e = $f = $g}]->h[$z->l]->u->v = $b[$c = ${$e = $f = $g}]->h[$z->l]->u->v;
echo "---3";
echo "---4";
unknown($a = $b = $c);
echo "---4";
echo "---5";
$a[][][] = $b[][][] = $c[1][2][3] = array(1, 2, 3);
echo "---5";
var_dump($a, $b, $c);
$z = array(1, 2, 3);
echo "---6";
$u = $v = $w =& $z;
echo "---6";
$u[] = "u";
$v[] = "v";
$w[] = "w";
$z[] = "z";
var_dump($u, $v, $w, $z);
echo "---7";
h($aa[][][][] =& $bb[][][][]);
echo "---7";
var_dump($aa, $bb);
echo "---8";
unknown($a =& $b, $x);
echo "---8";
$a[$c =& ${$e = $f =& $g}]->h[$z->l]->u->v =& $b[$c =& ${$e = $f = $g}]->h[$z->l]->u->v;
$c =& ${$e =& $g};
$x =& $a[][][];
h($a[][][]);
h($a);
h($a[]);