cvs: ZendEngine2 / zend_reflection_api.c zend_reflection_api.h

From: Date: Tue, 28 Sep 2004 19:06:16 +0000
Subject: cvs: ZendEngine2 / zend_reflection_api.c zend_reflection_api.h
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-3054@lists.php.net to get a copy of this message
helly Tue Sep 28 15:06:16 2004 EDT Modified files: /ZendEngine2 zend_reflection_api.c zend_reflection_api.h Log: - publish reflection_class_factory() as zend_reflection_class_factory() http://cvs.php.net/diff.php/ZendEngine2/zend_reflection_api.c?r1=1.130&r2=1.131&ty=u Index: ZendEngine2/zend_reflection_api.c diff -u ZendEngine2/zend_reflection_api.c:1.130 ZendEngine2/zend_reflection_api.c:1.131 --- ZendEngine2/zend_reflection_api.c:1.130 Mon Sep 27 18:24:57 2004 +++ ZendEngine2/zend_reflection_api.c Tue Sep 28 15:06:15 2004 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_reflection_api.c,v 1.130 2004/09/27 22:24:57 helly Exp $ */ +/* $Id: zend_reflection_api.c,v 1.131 2004/09/28 19:06:15 helly Exp $ */ #include "zend.h" #include "zend_API.h" #include "zend_exceptions.h" @@ -818,8 +818,8 @@ } /* }}} */ -/* {{{ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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); http://cvs.php.net/diff.php/ZendEngine2/zend_reflection_api.h?r1=1.2&r2=1.3&ty=u Index: ZendEngine2/zend_reflection_api.h diff -u ZendEngine2/zend_reflection_api.h:1.2 ZendEngine2/zend_reflection_api.h:1.3 --- ZendEngine2/zend_reflection_api.h:1.2 Thu Jan 8 12:31:48 2004 +++ ZendEngine2/zend_reflection_api.h Tue Sep 28 15:06:15 2004 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_reflection_api.h,v 1.2 2004/01/08 17:31:48 sniper Exp $ */ +/* $Id: zend_reflection_api.h,v 1.3 2004/09/28 19:06:15 helly Exp $ */ #ifndef ZEND_REFLECTION_API_H #define ZEND_REFLECTION_API_H @@ -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()

« previous php.zend-engine.cvs (#3054) next »