Esempio n. 1
0
function main()
{
    one(1);
    two(1);
    three(1);
    set_error_handler('error_handler');
    one(1);
    two(1);
    three(1);
}
Esempio n. 2
0
    $zot = 13;
}
two($bar, $zot);
echo "5foo: {$foo}, bar: {$bar}, zot: {$zot}\n";
function three($zot, $foo)
{
    $zot =& $foo;
    $foo =& $foo;
    $bar =& $foo;
    $zot =& $bar;
    $bar++;
}
function four(&$zot, &$foo)
{
    //this screws up zend's implementation.
    //  $foo =& $foo;
    $foo++;
}
three($zot, $foo);
echo "6foo: {$foo}, bar: {$bar}, zot: {$zot}\n";
$bar++;
echo "7foo: {$foo}, bar: {$bar}, zot: {$zot}\n";
$zot--;
echo "8foo: {$foo}, bar: {$bar}, zot: {$zot}\n";
$foo -= 3;
echo "9foo: {$foo}, bar: {$bar}, zot: {$zot}\n";
four($foo, $zot);
echo "10foo: {$foo}, bar: {$bar}, zot: {$zot}\n";
$foo += 9;
echo "11foo: {$foo}, bar: {$bar}, zot: {$zot}\n";
echo "12foo: " . ${$broof} . ", bar: " . ${$bing} . ", zot: " . ${$barp} . "\n";
Esempio n. 3
0
function two($str1, $str2)
{
    three("Cleveland", "Brown");
}
Esempio n. 4
0
function ms2time($ms)
{
    if ($ms < 0) {
        $ms *= -1;
    }
    $sec = floor($ms / 1000);
    $ms = $ms % 1000;
    $ms = three($ms);
    $min = floor($sec / 60);
    $sec = $sec % 60;
    $sec = two($sec);
    $hr = floor($min / 60);
    $min = $min % 60;
    $min = two($min);
    $day = floor($hr / 60);
    $hr = $hr % 60;
    $hr = two($hr);
    return array($hr, $min, $sec, $ms);
}
Esempio n. 5
0
<?php

function one()
{
    echo 'one';
}
fb_rename_function('one', 'two');
fb_rename_function('two', 'three');
three();