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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user