From: Marcus Boerger Date: Mon, 8 Mar 2004 00:19:43 +0000 (+0000) Subject: Add another missing conversion X-Git-Tag: RELEASE_0_2_0~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5208baee49061e19a98485a2bd2e5d867e700602;p=php Add another missing conversion --- 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));