]> granicus.if.org Git - php/commitdiff
Add another missing conversion
authorMarcus Boerger <helly@php.net>
Mon, 8 Mar 2004 00:19:43 +0000 (00:19 +0000)
committerMarcus Boerger <helly@php.net>
Mon, 8 Mar 2004 00:19:43 +0000 (00:19 +0000)
Zend/zend_reflection_api.c
ext/reflection/php_reflection.c

index f15783827399b5cf9cfdeb2c79f7a69b743dd41a..89bd0a92828ddfdee802c240256983cc9ccad2d5 100644 (file)
@@ -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));
index f15783827399b5cf9cfdeb2c79f7a69b743dd41a..89bd0a92828ddfdee802c240256983cc9ccad2d5 100644 (file)
@@ -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));