Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64158 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13707 invoked from network); 5 Dec 2012 14:52:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Dec 2012 14:52:36 -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:39678] helo=mx.okto.tv) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B6/F4-04278-3BF5FB05 for ; Wed, 05 Dec 2012 09:52:35 -0500 Received: by mx.okto.tv (Postfix, from userid 5001) id 4C63F82017; Wed, 5 Dec 2012 15:52:32 +0100 (CET) Received: from [172.18.2.106] (unknown [172.18.2.106]) by mx.okto.tv (Postfix) with ESMTP id 3FFC581FFE for ; Wed, 5 Dec 2012 15:52:29 +0100 (CET) Message-ID: <50BF5FAD.2020707@okto.tv> Date: Wed, 05 Dec 2012 15:52:29 +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 References: <50BF5C76.5090207@okto.tv> In-Reply-To: Content-Type: multipart/alternative; boundary="------------080800020606080500090401" Subject: Re: [PHP-DEV] Required __construct call in SplFileObject From: cr@okto.tv (Christoph Rosse) --------------080800020606080500090401 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Maybe this should be mentioned in the docs. I know how to use http://edit.php.net but where do I put this kind of information? In the __construct method documentation http://php.net/manual/en/splfileobject.construct.php or somewhere else? On 12/05/2012 03:46 PM, Paul Dragoonis wrote: > The way this class is designed, it needs to take the file name via the > constructor as an "initiation point". > > if you try to call a method of this class without initiation occurring it > will throw an exception. > > this is why you must instantiate the SplFileObject's __construct() method > to start the initiation. > > Hope this helps. > Paul. > > On Wed, Dec 5, 2012 at 2:38 PM, Christoph Rosse wrote: > >> SplFileObject --------------080800020606080500090401--