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

index 227c15421d656f0141c346bc8b1a416515cf9630..f4f055ae5621c08749dd0e751289f1092f64eb71 100644 (file)
@@ -1100,7 +1100,7 @@ ZEND_API int zend_u_lookup_class_ex(zend_uchar type, zstr name, int name_length,
        zend_fcall_info fcall_info;
        zend_fcall_info_cache fcall_cache;
 
-       if (name.v == NULL) {
+       if (name.v == NULL || !name_length) {
                return FAILURE;
        }