Annotation of embedaddon/php/Zend/tests/call_with_refs.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Check call to non-ref function with call-time refs
        !             3: --FILE--
        !             4: <?php
        !             5: function my_errorhandler($errno,$errormsg) {
        !             6:   global $my_var;
        !             7:   $my_var=0x12345;
        !             8:   echo $errormsg."\n";
        !             9:   return true;
        !            10: }
        !            11: $oldhandler = set_error_handler("my_errorhandler");
        !            12: $my_var = str_repeat("A",64);
        !            13: $data = call_user_func_array("substr_replace",array(&$my_var, new StdClass(),1));
        !            14: echo "OK!";
        !            15: --EXPECT--     
        !            16: Object of class stdClass could not be converted to string
        !            17: Object of class stdClass to string conversion
        !            18: OK!

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>