cvs: ZendEngine2(PHP_5_2) / zend_API.c

From: Date: Sun, 04 Jun 2006 10:27:28 +0000
Subject: cvs: ZendEngine2(PHP_5_2) / zend_API.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-4969@lists.php.net to get a copy of this message
helly Sun Jun 4 10:27:28 2006 UTC Modified files: (Branch: PHP_5_2) /ZendEngine2 zend_API.c Log: - Fix function flag check http://cvs.php.net/viewcvs.cgi/ZendEngine2/zend_API.c?r1=1.296.2.27.2.13&r2=1.296.2.27.2.14&diff_format=u Index: ZendEngine2/zend_API.c diff -u ZendEngine2/zend_API.c:1.296.2.27.2.13 ZendEngine2/zend_API.c:1.296.2.27.2.14 --- ZendEngine2/zend_API.c:1.296.2.27.2.13 Sat May 27 20:16:53 2006 +++ ZendEngine2/zend_API.c Sun Jun 4 10:27:28 2006 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_API.c,v 1.296.2.27.2.13 2006/05/27 20:16:53 helly Exp $ */ +/* $Id: zend_API.c,v 1.296.2.27.2.14 2006/06/04 10:27:28 helly Exp $ */ #include "zend.h" #include "zend_execute.h" @@ -547,7 +547,6 @@ } break; - case 'z': { zval **p = va_arg(*va, zval **); @@ -1636,6 +1635,9 @@ scope->ce_flags |= ZEND_ACC_EXPLICIT_ABSTRACT_CLASS; } } + if (ptr->flags & ZEND_ACC_STATIC && (!scope || !(scope->ce_flags & ZEND_ACC_INTERFACE))) { + zend_error(error_type, "Static function %s%s%s() cannot be abstract", scope ? scope->name : "", scope ? "::" : "", ptr->fname); + } } else { if (scope && (scope->ce_flags & ZEND_ACC_INTERFACE)) { efree(lc_class_name);

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