Skip to content

Commit

Permalink
Check for uppercase function names in .def files - patch from David V…
Browse files Browse the repository at this point in the history
…iner
  • Loading branch information
rlerdorf committed Sep 3, 2002
1 parent ca0a7c4 commit 86c4c17
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ext/skeleton/create_stubs
Expand Up @@ -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);

Expand Down

0 comments on commit 86c4c17

Please sign in to comment.