summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorHartmut Holzgraefe <hholzgra@php.net>2003-03-15 22:34:32 +0000
committerHartmut Holzgraefe <hholzgra@php.net>2003-03-15 22:34:32 +0000
commite2b1372088efea36c509dfe5c0337ad0cc7c3f98 (patch)
tree637c955ed4c62238c9285a7e1c23c93dbd436d38 /scripts
parentf60e8941e75693605aa4f1bf7790d38fc08fd4d4 (diff)
downloadphp-git-e2b1372088efea36c509dfe5c0337ad0cc7c3f98.tar.gz
make sure the function name in the proto matches the function
Diffstat (limited to 'scripts')
-rw-r--r--scripts/ext_skel_ng/php_function.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/ext_skel_ng/php_function.php b/scripts/ext_skel_ng/php_function.php
index e6cc4ce0a1..33bdfbf038 100644
--- a/scripts/ext_skel_ng/php_function.php
+++ b/scripts/ext_skel_ng/php_function.php
@@ -34,6 +34,11 @@
$return_type = ($this->is_type($tokens[$n])) ? $tokens[$n++] : "void";
if(! $this->is_name($tokens[$n])) return("$tokens[$n] is not a valid function name");
$function_name = $tokens[$n++];
+
+ if($function_name != $this->name) {
+ return "proto function name is '$function_name' instead of '{$this->name}'";
+ }
+
if($tokens[$n]!='(') return("'(' expected instead of '$tokens[$n]'");
if($tokens[++$n]!=')') {
for($param=0;$tokens[$n];$n++,$param++) {