diff options
author | Marcus Boerger <helly@php.net> | 2004-03-08 00:19:43 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2004-03-08 00:19:43 +0000 |
commit | 5208baee49061e19a98485a2bd2e5d867e700602 (patch) | |
tree | 169987469de64d64324760d98dad4e5fefe60fcd | |
parent | 4ee3282ec638c40312c443652394e30ef29113f1 (diff) | |
download | php-git-5208baee49061e19a98485a2bd2e5d867e700602.tar.gz |
Add another missing conversion
-rw-r--r-- | Zend/zend_reflection_api.c | 1 | ||||
-rw-r--r-- | ext/reflection/php_reflection.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_reflection_api.c b/Zend/zend_reflection_api.c index f157838273..89bd0a9282 100644 --- a/Zend/zend_reflection_api.c +++ b/Zend/zend_reflection_api.c @@ -1317,6 +1317,7 @@ ZEND_METHOD(reflection_parameter, __construct) if (Z_TYPE_PP(classref) == IS_OBJECT) { ce = Z_OBJCE_PP(classref); } else { + convert_to_string_ex(classref); if (zend_lookup_class(Z_STRVAL_PP(classref), Z_STRLEN_PP(classref), &pce TSRMLS_CC) == FAILURE) { zend_throw_exception_ex(reflection_exception_ptr, 0 TSRMLS_CC, "Class %s does not exist", Z_STRVAL_PP(classref)); diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index f157838273..89bd0a9282 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -1317,6 +1317,7 @@ ZEND_METHOD(reflection_parameter, __construct) if (Z_TYPE_PP(classref) == IS_OBJECT) { ce = Z_OBJCE_PP(classref); } else { + convert_to_string_ex(classref); if (zend_lookup_class(Z_STRVAL_PP(classref), Z_STRLEN_PP(classref), &pce TSRMLS_CC) == FAILURE) { zend_throw_exception_ex(reflection_exception_ptr, 0 TSRMLS_CC, "Class %s does not exist", Z_STRVAL_PP(classref)); |