Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35033 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94462 invoked by uid 1010); 30 Jan 2008 17:17:36 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 94447 invoked from network); 30 Jan 2008 17:17:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jan 2008 17:17:36 -0000 Authentication-Results: pb1.pair.com smtp.mail=chuck@horde.org; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=chuck@horde.org; sender-id=pass Received-SPF: pass (pb1.pair.com: domain horde.org designates 75.144.171.129 as permitted sender) X-PHP-List-Original-Sender: chuck@horde.org X-Host-Fingerprint: 75.144.171.129 unknown Received: from [75.144.171.129] ([75.144.171.129:37005] helo=technest.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D2/73-14302-E21B0A74 for ; Wed, 30 Jan 2008 12:17:36 -0500 Received: by technest.org (Postfix, from userid 33) id BFB087F021; Wed, 30 Jan 2008 12:17:32 -0500 (EST) Received: from ip65-47-144-166.z144-47-65.customer.algx.net (ip65-47-144-166.z144-47-65.customer.algx.net [65.47.144.166]) by technest.org (Horde Framework) with HTTP; Wed, 30 Jan 2008 12:17:32 -0500 Message-ID: <20080130121732.69455fae04q2urk0@technest.org> Date: Wed, 30 Jan 2008 12:17:32 -0500 To: internals@lists.php.net References: <47A05612.4020505@php.net> <1462818236.20080130160605@marcus-boerger.de> In-Reply-To: <1462818236.20080130160605@marcus-boerger.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (5.0-cvs) Subject: Re: [PHP-DEV] BC break with callbacks in 5.3 From: chuck@horde.org (Chuck Hagenbuch) Quoting Marcus Boerger : > actually it was a bug. We, sorry I, did not spot this in earlier versions. > Now saying you rely on a bug in PHP 5 to be able to execute PHP 4 code > simply does not work. The bug is that with callbacks in PHP 5.3+, E_STRICT is enforced even when E_STRICT is turned off. See bug #43231 (I've been unable to use PHP 5.3 since November because of this): http://bugs.php.net/bug.php?id=43231 This works fine: class foo { function bar() { echo 'hi'; } } foo::bar(); This throws a warning: call_user_func(array('foo', 'bar')); Both should certainly be E_STRICT errors. The 2nd one should not throw a warning if E_STRICT is off, though. -chuck