Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64159 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15162 invoked from network); 5 Dec 2012 14:55:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Dec 2012 14:55:42 -0000 Authentication-Results: pb1.pair.com smtp.mail=dragoonis@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dragoonis@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.210.170 as permitted sender) X-PHP-List-Original-Sender: dragoonis@gmail.com X-Host-Fingerprint: 209.85.210.170 mail-ia0-f170.google.com Received: from [209.85.210.170] ([209.85.210.170:59624] helo=mail-ia0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 18/45-04278-D606FB05 for ; Wed, 05 Dec 2012 09:55:42 -0500 Received: by mail-ia0-f170.google.com with SMTP id i1so2987235iaa.29 for ; Wed, 05 Dec 2012 06:55:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ijPoQTZlm7jkQ7jAn4mU2KEUmMArQIgfk87qTAicgtE=; b=DTYeU+qQHn/eEMMEVF0UfGdTDH0KoN7rtwkyXheeL49fUZm/G7i5xGfxwWKFrIr7Ti 3XeXunUnTRX7MHbGJ0vzhFTZgdfLviHg48bH1youEKirGg+uedbmGmetrdNnqiGtX9CM QfLMC+ZPTv4yNYZIJC+RnEIaP1aH0fWlWcdI1w4bnuqO6WfYaRiTDdDUh3Zwjz9uN2QM G67vsl6jbUs3HK2c9589a6LyHKngIFhTBqfZlzgOMaKc5bdS+6HpzW1Ae7/jniRw+PDa 40uxHU/mSVsWPfCI/MnHUlTjADn/ZNIc2zM/YBbd/P/SEsV+Vef8v95Jfr9JvJWKgzso boYA== MIME-Version: 1.0 Received: by 10.50.152.132 with SMTP id uy4mr2219851igb.3.1354719339225; Wed, 05 Dec 2012 06:55:39 -0800 (PST) Received: by 10.64.12.45 with HTTP; Wed, 5 Dec 2012 06:55:39 -0800 (PST) In-Reply-To: References: <50BF5C76.5090207@okto.tv> Date: Wed, 5 Dec 2012 14:55:39 +0000 Message-ID: To: Christoph Rosse Cc: PHP Internals List Content-Type: multipart/alternative; boundary=e89a8f3b9eb1fc211004d01c2cc4 Subject: Re: [PHP-DEV] Required __construct call in SplFileObject From: dragoonis@gmail.com (Paul Dragoonis) --e89a8f3b9eb1fc211004d01c2cc4 Content-Type: text/plain; charset=ISO-8859-1 You could put it either inside introduction or just below it, in the 'info' style, just to inform people they must call parent::__construct() upon instantiation of their object in order to use this. On Wed, Dec 5, 2012 at 2: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 > > > --e89a8f3b9eb1fc211004d01c2cc4--