diff options
author | Rasmus Lerdorf <rasmus@php.net> | 2002-09-03 20:57:20 +0000 |
---|---|---|
committer | Rasmus Lerdorf <rasmus@php.net> | 2002-09-03 20:57:20 +0000 |
commit | 86c4c1730eb4bdd4097cd806270e7b75ffcdebeb (patch) | |
tree | f89b4dff18305d6488a89e058e7ac85db36cf41a /ext/skeleton | |
parent | ca0a7c43235602f37b8a82ab8d03289ce0121122 (diff) | |
download | php-git-86c4c1730eb4bdd4097cd806270e7b75ffcdebeb.tar.gz |
Check for uppercase function names in .def files - patch from David Viner
Diffstat (limited to 'ext/skeleton')
-rwxr-xr-x | ext/skeleton/create_stubs | 7 |
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); |