cvs: ZendEngine2 / zend_reflection_api.c
| From: | Marcus Boerger | Date: | Mon, 29 Aug 2005 22:11:53 +0000 |
| Subject: | cvs: ZendEngine2 / zend_reflection_api.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-4077@lists.php.net to get a copy of this message | ||
helly Mon Aug 29 18:11:53 2005 EDT
Modified files:
/ZendEngine2 zend_reflection_api.c
Log:
- Fix #34299: ReflectionClass::isInstantiable() returns true for abstract classes
http://cvs.php.net/diff.php/ZendEngine2/zend_reflection_api.c?r1=1.172&r2=1.173&ty=u
Index: ZendEngine2/zend_reflection_api.c
diff -u ZendEngine2/zend_reflection_api.c:1.172 ZendEngine2/zend_reflection_api.c:1.173
--- ZendEngine2/zend_reflection_api.c:1.172 Fri Aug 19 09:20:14 2005
+++ ZendEngine2/zend_reflection_api.c Mon Aug 29 18:11:53 2005
@@ -19,7 +19,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_reflection_api.c,v 1.172 2005/08/19 13:20:14 dmitry Exp $ */
+/* $Id: zend_reflection_api.c,v 1.173 2005/08/29 22:11:53 helly Exp $ */
#include "zend.h"
#include "zend_API.h"
#include "zend_exceptions.h"
@@ -2926,7 +2926,7 @@
METHOD_NOTSTATIC_NUMPARAMS(0);
GET_REFLECTION_OBJECT_PTR(ce);
- if (ce->ce_flags & (ZEND_ACC_INTERFACE | ZEND_ACC_ABSTRACT)) {
+ if (ce->ce_flags & (ZEND_ACC_INTERFACE | ZEND_ACC_EXPLICIT_ABSTRACTCLASS |
ZEND_ACC_IMPLICIT_ABSTRACT_CLASS)) {
RETURN_FALSE;
}