]> granicus.if.org Git - php/commitdiff
- publish reflection_class_factory() as zend_reflection_class_factory()
authorMarcus Boerger <helly@php.net>
Tue, 28 Sep 2004 19:06:15 +0000 (19:06 +0000)
committerMarcus Boerger <helly@php.net>
Tue, 28 Sep 2004 19:06:15 +0000 (19:06 +0000)
Zend/zend_reflection_api.c
Zend/zend_reflection_api.h
ext/reflection/php_reflection.c
ext/reflection/php_reflection.h

index 9f5191dbd0f4ad5d84948a5ce29f9d31153520d3..7f504f0e116c6364a4840e03fc67c08dcb364321 100644 (file)
@@ -818,8 +818,8 @@ static void _function_check_flag(INTERNAL_FUNCTION_PARAMETERS, int mask)
 }
 /* }}} */
 
-/* {{{ reflection_class_factory */
-static void reflection_class_factory(zend_class_entry *ce, zval *object TSRMLS_DC)
+/* {{{ zend_reflection_class_factory */
+ZEND_API void zend_reflection_class_factory(zend_class_entry *ce, zval *object TSRMLS_DC)
 {
        reflection_object *intern;
        zval *name;
@@ -1643,7 +1643,7 @@ ZEND_METHOD(reflection_parameter, getClass)
                        return;
                }
                free_alloca(lcname);
-               reflection_class_factory(*pce, return_value TSRMLS_CC);
+               zend_reflection_class_factory(*pce, return_value TSRMLS_CC);
        }
 }
 /* }}} */
@@ -2046,7 +2046,7 @@ ZEND_METHOD(reflection_method, getDeclaringClass)
        METHOD_NOTSTATIC;
        GET_REFLECTION_OBJECT_PTR(mptr);
 
-       reflection_class_factory(mptr->common.scope, return_value TSRMLS_CC);
+       zend_reflection_class_factory(mptr->common.scope, return_value TSRMLS_CC);
 }
 /* }}} */
 
@@ -2662,7 +2662,7 @@ ZEND_METHOD(reflection_class, getInterfaces)
                for (i=0; i < ce->num_interfaces; i++) {
                        zval *interface;
                        ALLOC_ZVAL(interface);
-                       reflection_class_factory(ce->interfaces[i], interface TSRMLS_CC);
+                       zend_reflection_class_factory(ce->interfaces[i], interface TSRMLS_CC);
                        add_next_index_zval(return_value, interface);
                }
        }
@@ -2680,7 +2680,7 @@ ZEND_METHOD(reflection_class, getParentClass)
        GET_REFLECTION_OBJECT_PTR(ce);
        
        if (ce->parent) {
-               reflection_class_factory(ce->parent, return_value TSRMLS_CC);
+               zend_reflection_class_factory(ce->parent, return_value TSRMLS_CC);
        } else {
                RETURN_FALSE;
        }
@@ -3138,7 +3138,7 @@ ZEND_METHOD(reflection_property, getDeclaringClass)
        METHOD_NOTSTATIC_NUMPARAMS(0);
        GET_REFLECTION_OBJECT_PTR(ref);
 
-       reflection_class_factory(ref->ce, return_value TSRMLS_CC);
+       zend_reflection_class_factory(ref->ce, return_value TSRMLS_CC);
 }
 
 /* {{{ proto public static mixed ReflectionExtension::export(string name, [, bool return]) throws ReflectionException
@@ -3338,7 +3338,7 @@ static int add_extension_class(zend_class_entry **pce, int num_args, va_list arg
                TSRMLS_FETCH();
                if (add_reflection_class) {
                        ALLOC_ZVAL(zclass);
-                       reflection_class_factory(*pce, zclass TSRMLS_CC);
+                       zend_reflection_class_factory(*pce, zclass TSRMLS_CC);
                        add_assoc_zval_ex(class_array, (*pce)->name, (*pce)->name_length + 1, zclass);
                } else {
                        add_next_index_stringl(class_array, (*pce)->name, (*pce)->name_length + 1, 1);
index 7e9ffc28dd7e397e1fa499fe03cc1f414cd0dddd..ddaedd97104cf20d9911b0e4ccb2811060c8f11c 100644 (file)
@@ -24,6 +24,7 @@
 BEGIN_EXTERN_C()
 
 ZEND_API void zend_register_reflection_api(TSRMLS_D);
+ZEND_API void zend_reflection_class_factory(zend_class_entry *ce, zval *object TSRMLS_DC);
        
 END_EXTERN_C()
 
index 9f5191dbd0f4ad5d84948a5ce29f9d31153520d3..7f504f0e116c6364a4840e03fc67c08dcb364321 100644 (file)
@@ -818,8 +818,8 @@ static void _function_check_flag(INTERNAL_FUNCTION_PARAMETERS, int mask)
 }
 /* }}} */
 
-/* {{{ reflection_class_factory */
-static void reflection_class_factory(zend_class_entry *ce, zval *object TSRMLS_DC)
+/* {{{ zend_reflection_class_factory */
+ZEND_API void zend_reflection_class_factory(zend_class_entry *ce, zval *object TSRMLS_DC)
 {
        reflection_object *intern;
        zval *name;
@@ -1643,7 +1643,7 @@ ZEND_METHOD(reflection_parameter, getClass)
                        return;
                }
                free_alloca(lcname);
-               reflection_class_factory(*pce, return_value TSRMLS_CC);
+               zend_reflection_class_factory(*pce, return_value TSRMLS_CC);
        }
 }
 /* }}} */
@@ -2046,7 +2046,7 @@ ZEND_METHOD(reflection_method, getDeclaringClass)
        METHOD_NOTSTATIC;
        GET_REFLECTION_OBJECT_PTR(mptr);
 
-       reflection_class_factory(mptr->common.scope, return_value TSRMLS_CC);
+       zend_reflection_class_factory(mptr->common.scope, return_value TSRMLS_CC);
 }
 /* }}} */
 
@@ -2662,7 +2662,7 @@ ZEND_METHOD(reflection_class, getInterfaces)
                for (i=0; i < ce->num_interfaces; i++) {
                        zval *interface;
                        ALLOC_ZVAL(interface);
-                       reflection_class_factory(ce->interfaces[i], interface TSRMLS_CC);
+                       zend_reflection_class_factory(ce->interfaces[i], interface TSRMLS_CC);
                        add_next_index_zval(return_value, interface);
                }
        }
@@ -2680,7 +2680,7 @@ ZEND_METHOD(reflection_class, getParentClass)
        GET_REFLECTION_OBJECT_PTR(ce);
        
        if (ce->parent) {
-               reflection_class_factory(ce->parent, return_value TSRMLS_CC);
+               zend_reflection_class_factory(ce->parent, return_value TSRMLS_CC);
        } else {
                RETURN_FALSE;
        }
@@ -3138,7 +3138,7 @@ ZEND_METHOD(reflection_property, getDeclaringClass)
        METHOD_NOTSTATIC_NUMPARAMS(0);
        GET_REFLECTION_OBJECT_PTR(ref);
 
-       reflection_class_factory(ref->ce, return_value TSRMLS_CC);
+       zend_reflection_class_factory(ref->ce, return_value TSRMLS_CC);
 }
 
 /* {{{ proto public static mixed ReflectionExtension::export(string name, [, bool return]) throws ReflectionException
@@ -3338,7 +3338,7 @@ static int add_extension_class(zend_class_entry **pce, int num_args, va_list arg
                TSRMLS_FETCH();
                if (add_reflection_class) {
                        ALLOC_ZVAL(zclass);
-                       reflection_class_factory(*pce, zclass TSRMLS_CC);
+                       zend_reflection_class_factory(*pce, zclass TSRMLS_CC);
                        add_assoc_zval_ex(class_array, (*pce)->name, (*pce)->name_length + 1, zclass);
                } else {
                        add_next_index_stringl(class_array, (*pce)->name, (*pce)->name_length + 1, 1);
index 7e9ffc28dd7e397e1fa499fe03cc1f414cd0dddd..ddaedd97104cf20d9911b0e4ccb2811060c8f11c 100644 (file)
@@ -24,6 +24,7 @@
 BEGIN_EXTERN_C()
 
 ZEND_API void zend_register_reflection_api(TSRMLS_D);
+ZEND_API void zend_reflection_class_factory(zend_class_entry *ce, zval *object TSRMLS_DC);
        
 END_EXTERN_C()