summaryrefslogtreecommitdiff
path: root/ext/skeleton
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2002-09-03 20:57:20 +0000
committerRasmus Lerdorf <rasmus@php.net>2002-09-03 20:57:20 +0000
commit86c4c1730eb4bdd4097cd806270e7b75ffcdebeb (patch)
treef89b4dff18305d6488a89e058e7ac85db36cf41a /ext/skeleton
parentca0a7c43235602f37b8a82ab8d03289ce0121122 (diff)
downloadphp-git-86c4c1730eb4bdd4097cd806270e7b75ffcdebeb.tar.gz
Check for uppercase function names in .def files - patch from David Viner
Diffstat (limited to 'ext/skeleton')
-rwxr-xr-xext/skeleton/create_stubs7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/skeleton/create_stubs b/ext/skeleton/create_stubs
index 43939ed736..e7845c2846 100755
--- a/ext/skeleton/create_stubs
+++ b/ext/skeleton/create_stubs
@@ -105,6 +105,13 @@ BEGIN {
line = $0
spec_str = "\""
+## php extension must use lower case function names.
+## this will translate any capitalized letter to lowercase
+## and warn the user
+ if (match(func_name,"[A-Z]") != 0) {
+ printf("NOTICE: lower casing function name '%s'\n",func_name)
+ func_name = tolower(func_name)
+ }
func_type = gobble(type);
func_name = gobble(name);