From: Hartmut Holzgraefe Date: Fri, 9 May 2003 12:11:01 +0000 (+0000) Subject: 'stream' parameter support in proto parser and code generation X-Git-Tag: RELEASE_0_9b~40 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5c782a6f50c850459a16dacd6c50d22bd9d01053;p=php 'stream' parameter support in proto parser and code generation --- diff --git a/scripts/ext_skel_ng/php_function.php b/scripts/ext_skel_ng/php_function.php index 890900ba86..92c970522d 100644 --- a/scripts/ext_skel_ng/php_function.php +++ b/scripts/ext_skel_ng/php_function.php @@ -199,6 +199,12 @@ ." }\n"; } break; + case "stream": + $arg_string .= "r"; + $code .= " zval * _z$name = NULL; \n"; + $code .= " php_stream * $name = NULL:\n"; + $res_fetch.= " php_stream_from_zval($name, &_z$name);\n"; + break; case "mixed": case "callback": $arg_string.="z"; @@ -256,6 +262,10 @@ $code .= " /* RETURN_RESOURCE(...); /*\n"; } break; + + case "stream": + $code .= " /* php_stream_to_zval(stream, return_value); */\n"; + break; case "mixed": $code .= " /* RETURN_...(...); /*\n";