Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79682 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14206 invoked from network); 16 Dec 2014 00:56:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Dec 2014 00:56:55 -0000 Authentication-Results: pb1.pair.com header.from=tjerk.meesters@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tjerk.meesters@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.52 as permitted sender) X-PHP-List-Original-Sender: tjerk.meesters@gmail.com X-Host-Fingerprint: 209.85.220.52 mail-pa0-f52.google.com Received: from [209.85.220.52] ([209.85.220.52:36226] helo=mail-pa0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 81/00-13907-4538F845 for ; Mon, 15 Dec 2014 19:56:52 -0500 Received: by mail-pa0-f52.google.com with SMTP id eu11so12934910pac.11 for ; Mon, 15 Dec 2014 16:56:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:subject:message-id:date:to:mime-version; bh=nE4xRQcTDFwxvw6yGOKIWMfDXOxL913Kqh2Y8W3PsiI=; b=dpdG1GHx6bt9OopDquthP1PQmA/ebb0g4mhpOVbWXXMfOrFfUYnpb6cZX8db+1bRZN HGQ93vtG6EKx6fsTceSjWiWwqu202cQ8W91hNOAn3NqOgqyJ/kUWvclXXdrfbqd3s/Yu G3JMmL8JWvD2aq53AlnMeZ57zIV53H4R8kgz124aorCYKUz65nZMBJCJeoP+0Q5MHyze uY/1SvRoA4vRHWV28McItd3agGgzw6IIe4ZBGICLRNb5TtIBOqm6rgXG4Xw5jPXTKDrE 9Jul9qiSJWMcEo54Mq/Kt/cXpDCwHNFn8+qf4iKuDHhYrLVUxDvGFSUneaBM2S65UGR8 VOtA== X-Received: by 10.70.61.37 with SMTP id m5mr18618633pdr.29.1418691408578; Mon, 15 Dec 2014 16:56:48 -0800 (PST) Received: from unknown_0c-4d-e9-aa-30-37.gateway.2wire.net (bb121-7-198-24.singnet.com.sg. [121.7.198.24]) by mx.google.com with ESMTPSA id oz10sm10394641pdb.95.2014.12.15.16.56.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Dec 2014 16:56:46 -0800 (PST) Content-Type: multipart/alternative; boundary="Apple-Mail=_91429F15-CAAD-451A-92E5-61C1DE58EA2A" Message-ID: <78D1ECD9-3D6B-476B-8CBF-E57A583B125E@gmail.com> Date: Tue, 16 Dec 2014 08:56:43 +0800 To: PHP Internals Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) X-Mailer: Apple Mail (2.1993) Subject: What ZEND_ACC_ALLOW_STATIC is supposed to do From: tjerk.meesters@gmail.com (Tjerk Meesters) --Apple-Mail=_91429F15-CAAD-451A-92E5-61C1DE58EA2A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi, I was looking at the documentation for DOMDocument::loadHTML() [1] that = mentions the following: > This function may also be called statically to load and create a = DOMDocument object. The static invocation may be used when no = DOMDocument properties need to be set prior to loading. However, this can=E2=80=99t be done in strict mode [2]: > Strict Standards: Non-static method DOMDocument::loadHTML() should not = be called statically in =E2=80=A6 This behaviour seems to be intended when ZEND_ACC_ALLOW_STATIC is used = [3] and can be fixed by using ZEND_ACC_STATIC instead. My questions: 1) Is that the right kind of fix?=20 2) Is ZEND_ACC_ALLOW_STATIC meant to be used only for BC? If not, why = are we raising strict errors? [1] http://php.net/manual/en/domdocument.loadhtml.php = [2] http://3v4l.org/JC7p0#v500 [3] http://lxr.php.net/xref/PHP_5_5/Zend/zend_vm_def.h#1935 = --Apple-Mail=_91429F15-CAAD-451A-92E5-61C1DE58EA2A--