cvs: ZendEngine2 / zend_reflection_api.c

From: Date: Sat, 23 Aug 2003 15:47:23 +0000
Subject: cvs: ZendEngine2 / zend_reflection_api.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-1667@lists.php.net to get a copy of this message
helly Sat Aug 23 11:47:23 2003 EDT Modified files: /ZendEngine2 zend_reflection_api.c Log: Show ctor/dtor information and those don't return anything Index: ZendEngine2/zend_reflection_api.c diff -u ZendEngine2/zend_reflection_api.c:1.25 ZendEngine2/zend_reflection_api.c:1.26 --- ZendEngine2/zend_reflection_api.c:1.25 Thu Aug 21 19:32:13 2003 +++ ZendEngine2/zend_reflection_api.c Sat Aug 23 11:47:23 2003 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_reflection_api.c,v 1.25 2003/08/21 23:32:13 helly Exp $ */ +/* $Id: zend_reflection_api.c,v 1.26 2003/08/23 15:47:23 helly Exp $ */ #include "zend.h" #include "zend_API.h" #include "zend_default_classes.h" @@ -356,6 +356,12 @@ string_printf(str, fptr->common.scope ? "%sMethod [ " : "%sFunction [ ", indent); string_printf(str, (fptr->type == ZEND_USER_FUNCTION) ? "<user> " : "<internal> "); + if (fptr->common.fn_flags & ZEND_ACC_CTOR) { + string_printf(str, "<ctor> "); + } + if (fptr->common.fn_flags & ZEND_ACC_DTOR) { + string_printf(str, "<dtor> "); + } if (fptr->common.fn_flags & ZEND_ACC_ABSTRACT) { string_printf(str, "abstract "); } @@ -380,7 +386,7 @@ } string_printf(str, fptr->common.scope ? "method " : "function "); - if(fptr->op_array.return_reference) { + if (fptr->op_array.return_reference && !(fptr->common.fn_flags & (ZEND_ACC_CTOR|ZEND_ACC_DTOR))) { string_printf(str, "&"); } string_printf(str, "%s ] {\n", fptr->common.function_name);

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