From: Dmitry Stogov Date: Tue, 29 Jan 2008 11:13:52 +0000 (+0000) Subject: Fixed bug #43323 (Wrong count abstract methods). (Felipe, Dmitry) X-Git-Tag: RELEASE_2_0_0a1~723 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e8ecba4872be9fc7ddfc099be4ec41e8ac2682d7;p=php Fixed bug #43323 (Wrong count abstract methods). (Felipe, Dmitry) --- diff --git a/Zend/tests/bug43323.phpt b/Zend/tests/bug43323.phpt new file mode 100644 index 0000000000..d366a6dd1f --- /dev/null +++ b/Zend/tests/bug43323.phpt @@ -0,0 +1,12 @@ +--TEST-- +Bug #43323 (Wrong count abstract methods) +--FILE-- +cnt < MAX_ABSTRACT_INFO_CNT) { ai->afn[ai->cnt] = fn; } - ai->cnt++; + if (fn->common.fn_flags & ZEND_ACC_CTOR) { + if (!ai->ctor) { + ai->cnt++; + ai->ctor = 1; + } else { + ai->afn[ai->cnt] = NULL; + } + } else { + ai->cnt++; + } } return 0; }