From 5208baee49061e19a98485a2bd2e5d867e700602 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Mon, 8 Mar 2004 00:19:43 +0000 Subject: [PATCH] Add another missing conversion --- Zend/zend_reflection_api.c | 1 + ext/reflection/php_reflection.c | 1 + 2 files changed, 2 insertions(+) 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)); -- 2.50.1