summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorHartmut Holzgraefe <hholzgra@php.net>2003-05-09 12:11:01 +0000
committerHartmut Holzgraefe <hholzgra@php.net>2003-05-09 12:11:01 +0000
commit5c782a6f50c850459a16dacd6c50d22bd9d01053 (patch)
tree94a650aeaa12831a417b6496d47fd323e086a1b2 /scripts
parent7a1e959f2911adc1cbbbf1d28469660e0b5eecc8 (diff)
downloadphp-git-5c782a6f50c850459a16dacd6c50d22bd9d01053.tar.gz
'stream' parameter support in proto parser and code generation
Diffstat (limited to 'scripts')
-rw-r--r--scripts/ext_skel_ng/php_function.php10
1 files changed, 10 insertions, 0 deletions
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";