1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Check for uppercase function names in .def files - patch from David Viner

This commit is contained in:
Rasmus Lerdorf
2002-09-03 20:57:20 +00:00
parent ca0a7c4323
commit 86c4c1730e

View File

@@ -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);