]> granicus.if.org Git - php/commitdiff
- Catch empty class name error earlier
authorMarcus Boerger <helly@php.net>
Sat, 3 Mar 2007 13:45:14 +0000 (13:45 +0000)
committerMarcus Boerger <helly@php.net>
Sat, 3 Mar 2007 13:45:14 +0000 (13:45 +0000)
Zend/zend_execute_API.c

index 1ba358bc92e176151b47cd9d832b6bfc13dd057a..95efb309e8cd4c8c9e68c4f625c07de35754a223 100644 (file)
@@ -1018,7 +1018,7 @@ ZEND_API int zend_lookup_class_ex(char *name, int name_length, int use_autoload,
        zend_fcall_info fcall_info;
        zend_fcall_info_cache fcall_cache;
 
-       if (name == NULL) {
+       if (name == NULL || !name_length) {
                return FAILURE;
        }