diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-04-10 11:26:58 +0200 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-04-10 11:26:58 +0200 |
commit | 2bcd097519405ef2fb3b600ddc8ec58b332fa040 (patch) | |
tree | 1c074137fbe25d2036d25e8965d021bf58dfe07a /zend | |
parent | 2d080a7fdfd2916e4723d19ba585a0f228118fb4 (diff) |
extra check for existance of classname #77
Diffstat (limited to 'zend')
-rw-r--r-- | zend/callable.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zend/callable.h b/zend/callable.h index 9d7e69b..9958a2a 100644 --- a/zend/callable.h +++ b/zend/callable.h @@ -177,7 +177,7 @@ protected: // this parameter is a regular type info->class_name = arg.type() == Type::Object ? arg.classname() : nullptr; - info->class_name_len = arg.type() == Type::Object ? ::strlen(arg.classname()) : 0; + info->class_name_len = arg.type() == Type::Object && arg.classname() ? ::strlen(arg.classname()) : 0; info->allow_null = arg.allowNull(); info->pass_by_reference = arg.byReference(); } |