cvs: php4 /ext/skeleton create_stubs
| From: | Rasmus Lerdorf | Date: | Tue, 03 Sep 2002 20:57:21 +0000 |
| Subject: | cvs: php4 /ext/skeleton create_stubs | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-13808@lists.php.net to get a copy of this message | ||
rasmus Tue Sep 3 16:57:21 2002 EDT
Modified files:
/php4/ext/skeleton create_stubs
Log:
Check for uppercase function names in .def files - patch from David Viner
Index: php4/ext/skeleton/create_stubs
diff -u php4/ext/skeleton/create_stubs:1.23 php4/ext/skeleton/create_stubs:1.24
--- php4/ext/skeleton/create_stubs:1.23 Tue Dec 18 06:16:53 2001
+++ php4/ext/skeleton/create_stubs Tue Sep 3 16:57:20 2002
@@ -67,7 +67,7 @@
xmlhead = "<?xml version='1.0' encoding='iso-8859-1'?>\n" \
- "<!-- $Revision: 1.23 $ -->\n" \
+ "<!-- $Revision: 1.24 $ -->\n" \
" <reference id=\"ref." extname "\">\n" \
" <title> functions</title>\n" \
" <titleabbrev></titleabbrev>\n\n" \
@@ -105,6 +105,13 @@
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);