Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40308 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80197 invoked from network); 7 Sep 2008 07:34:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Sep 2008 07:34:38 -0000 Authentication-Results: pb1.pair.com header.from=Fedora@FamilleCollet.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=Fedora@FamilleCollet.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain FamilleCollet.com from 212.27.42.36 cause and error) X-PHP-List-Original-Sender: Fedora@FamilleCollet.com X-Host-Fingerprint: 212.27.42.36 smtp6-g19.free.fr Received: from [212.27.42.36] ([212.27.42.36:48009] helo=smtp6-g19.free.fr) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5F/20-13078-C0483C84 for ; Sun, 07 Sep 2008 03:34:37 -0400 Received: from smtp6-g19.free.fr (localhost.localdomain [127.0.0.1]) by smtp6-g19.free.fr (Postfix) with ESMTP id 33E9017260 for ; Sun, 7 Sep 2008 09:34:34 +0200 (CEST) Received: from sulphur.famillecollet.com (pom51-2-82-241-130-121.fbx.proxad.net [82.241.130.121]) by smtp6-g19.free.fr (Postfix) with ESMTP id 11C861724D for ; Sun, 7 Sep 2008 09:34:34 +0200 (CEST) Message-ID: <48C38409.200@FamilleCollet.com> Date: Sun, 07 Sep 2008 09:34:33 +0200 User-Agent: Thunderbird 2.0.0.16 (X11/20080723) MIME-Version: 1.0 To: PHP Internals X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Regression on constructor calls From: Fedora@FamilleCollet.com (Remi Collet) Calling a not defined constructor produce an error in PHP 5.3.0 alpha2 (200809070630 snapshot) when it work in php <= 5.2.6 calling the parent one. Ok using constructor with class name is a compatibility behaviour and using __construct don't have this issue. But this regression could introduce breakage of old apps. Regards Remi Simple test : PHP Version : 5.2.6 from New A from New C from Old A from Old C PHP Version : 5.3.0alpha3-dev from New A from New C PHP Fatal error: Call to undefined method oldB::oldB() in /home/remif9/test/cons.php on line 24