For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > January 2006 > cvs: phpdoc /scripts zendapi_protos.php









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: phpdoc /scripts zendapi_protos.php
Hartmut Holzgraefe

2006-01-22, 7:04 pm

hholzgra Sun Jan 22 23:35:24 2006 UTC

Modified files:
/phpdoc/scripts zendapi_protos.php
Log:
WS

http://cvs.php.net/viewcvs.cgi/phpd...9&diff_format=u
Index: phpdoc/scripts/zendapi_protos.php
diff -u phpdoc/scripts/zendapi_protos.php:1.38 phpdoc/scripts/zendapi_protos.php:1.39
--- phpdoc/scripts/zendapi_protos.php:1.38 Sun Jan 22 23:35:03 2006
+++ phpdoc/scripts/zendapi_protos.php Sun Jan 22 23:35:24 2006
@@ -132,31 +132,31 @@


do {
-$additions = 0;
-foreach ($wrappers as $name => $wrapper) {
- if (isset($functions[$wrapper["function"]])) {
- $function = $functions[$wrapper["function"]];
- $params = array();
- foreach (explode(",", $wrapper["param_list"]) as $param) {
- $param = preg_replace('|\s*_*(\w+)\s*|', '${1}', $param); // trim and strip leading _s
- if (isset($function["params"][$param])) {
- $param_type = $function["params"][$param]["type"];
- } else {
- $param_type = "...";
+ $additions = 0;
+ foreach ($wrappers as $name => $wrapper) {
+ if (isset($functions[$wrapper["function"]])) {
+ $function = $functions[$wrapper["function"]];
+ $params = array();
+ foreach (explode(",", $wrapper["param_list"]) as $param) {
+ $param = preg_replace('|\s*_*(\w+)\s*|', '${1}', $param); // trim and strip leading _s
+ if (isset($function["params"][$param])) {
+ $param_type = $function["params"][$param]["type"];
+ } else {
+ $param_type = "...";
+ }
+ $params[$param] = array("type"=>$param_type, "name"=>$param);
}
- $params[$param] = array("type"=>$param_type, "name"=>$param);
+
+ $functions[$name] = array("name" => $name,
+ "return_type" => $function["return_type"],
+ "params" => $params,
+ "api_type" => $function["api_type"],
+ "infile" => $wrapper["infile"]
+ );
+ unset($wrappers[$name]);
+ $additions++;
}
-
- $functions[$name] = array("name" => $name,
- "return_type" => $function["return_type"],
- "params" => $params,
- "api_type" => $function["api_type"],
- "infile" => $wrapper["infile"]
- );
- unset($wrappers[$name]);
- $additions++;
}
-}
} while ($additions > 0);

foreach ($functions as $name => $function) {
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com