summaryrefslogtreecommitdiff
path: root/Zend/tests/call_with_refs.phpt
blob: 0e01779a2128dfcd0fd2b3847962eb9c3ca423e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
Check call to non-ref function with call-time refs
--FILE--
<?php
class Test {
    public function __toString() {
        global $my_var;
        $my_var=0x12345;
        return "";
    }
}

$my_var = str_repeat("A",64);
$data = call_user_func_array("substr_replace",array(&$my_var, new Test(), 1));
echo "OK!";
?>
--EXPECT--
OK!