Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64156 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10456 invoked from network); 5 Dec 2012 14:38:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Dec 2012 14:38:55 -0000 Authentication-Results: pb1.pair.com header.from=cr@okto.tv; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=cr@okto.tv; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain okto.tv designates 91.118.92.251 as permitted sender) X-PHP-List-Original-Sender: cr@okto.tv X-Host-Fingerprint: 91.118.92.251 mx.okto.tv Received: from [91.118.92.251] ([91.118.92.251:39345] helo=mx.okto.tv) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 63/44-04278-D7C5FB05 for ; Wed, 05 Dec 2012 09:38:54 -0500 Received: by mx.okto.tv (Postfix, from userid 5001) id BA69682339; Wed, 5 Dec 2012 15:38:50 +0100 (CET) Received: from [172.18.2.106] (unknown [172.18.2.106]) by mx.okto.tv (Postfix) with ESMTP id 6F1EF82017 for ; Wed, 5 Dec 2012 15:38:47 +0100 (CET) Message-ID: <50BF5C76.5090207@okto.tv> Date: Wed, 05 Dec 2012 15:38:46 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Required __construct call in SplFileObject From: cr@okto.tv (Christoph Rosse) Hi, I'm just curious is there a reason why SplFileObject requires a call to parent::__construct() if I override the class? Someone on my twitter feed mentioned it because he tried to create a Mock-Object. The following code gives me: PHP Fatal error: Uncaught exception 'LogicException' with message 'The parent constructor was not called: the object is in an invalid state fpassthru();