diff options
| author | Marcus Boerger <helly@php.net> | 2007-03-03 13:45:14 +0000 |
|---|---|---|
| committer | Marcus Boerger <helly@php.net> | 2007-03-03 13:45:14 +0000 |
| commit | b15d1f22efd2b5ab25f06c481b98641599e764d8 (patch) | |
| tree | 7b1346be4a4608f94c3b1dddcf983b8a0c3313be /Zend/zend_execute_API.c | |
| parent | 7fc3493c8ce68198f651afa106f0bd63b7aa8848 (diff) | |
| download | php-git-b15d1f22efd2b5ab25f06c481b98641599e764d8.tar.gz | |
- Catch empty class name error earlier
Diffstat (limited to 'Zend/zend_execute_API.c')
| -rw-r--r-- | Zend/zend_execute_API.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index 1ba358bc92..95efb309e8 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -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; } |
