cvs: ZendEngine2 / zend_reflection_api.c

From: Date: Sun, 31 Aug 2003 11:21:30 +0000
Subject: cvs: ZendEngine2 / zend_reflection_api.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-1765@lists.php.net to get a copy of this message
helly Sun Aug 31 07:21:30 2003 EDT Modified files: /ZendEngine2 zend_reflection_api.c Log: Check whether we may access tat union Index: ZendEngine2/zend_reflection_api.c diff -u ZendEngine2/zend_reflection_api.c:1.41 ZendEngine2/zend_reflection_api.c:1.42 --- ZendEngine2/zend_reflection_api.c:1.41 Sun Aug 31 06:06:13 2003 +++ ZendEngine2/zend_reflection_api.c Sun Aug 31 07:21:30 2003 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_reflection_api.c,v 1.41 2003/08/31 10:06:13 helly Exp $ */ +/* $Id: zend_reflection_api.c,v 1.42 2003/08/31 11:21:30 helly Exp $ */ #include "zend.h" #include "zend_API.h" #include "zend_default_classes.h" @@ -388,7 +388,7 @@ } string_printf(str, fptr->common.scope ? "method " : "function "); - if (fptr->op_array.return_reference && !(fptr->common.fn_flags & (ZEND_ACC_CTOR|ZEND_ACC_DTOR))) { + if (fptr->type == ZEND_USER_FUNCTION && fptr->op_array.return_reference) { string_printf(str, "&"); } string_printf(str, "%s ] {\n", fptr->common.function_name);

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