xref: /php-src/Zend/tests/call_with_refs.phpt (revision a31f4642)
1--TEST--
2Check call to non-ref function with call-time refs
3--FILE--
4<?php
5class Test {
6    public function __toString() {
7        global $my_var;
8        $my_var=0x12345;
9        return "";
10    }
11}
12
13$my_var = str_repeat("A",64);
14$data = call_user_func_array("substr_replace",array(&$my_var, new Test(), 1));
15echo "OK!";
16?>
17--EXPECT--
18OK!
19