Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64157 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 12236 invoked from network); 5 Dec 2012 14:47:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Dec 2012 14:47:01 -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.172 as permitted sender) X-PHP-List-Original-Sender: dragoonis@gmail.com X-Host-Fingerprint: 209.85.210.172 mail-ia0-f172.google.com Received: from [209.85.210.172] ([209.85.210.172:54316] helo=mail-ia0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 51/A4-04278-46E5FB05 for ; Wed, 05 Dec 2012 09:47:00 -0500 Received: by mail-ia0-f172.google.com with SMTP id z13so4279962iaz.31 for ; Wed, 05 Dec 2012 06:46:57 -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=HWF/81lmODqWEatxsPmkALXmBO2W8cK9rCEeTHeeMmo=; b=xkwefRHOMAhBEFyDw71a22HiQlTu4kntzhXLDYvdxEOpd/mTW2kpRkGKMdD5pfUJGB rUY/ynoeXM25A4ZtexUzUj2Ljtq4WAzXNXAwFn99kAYdjT2yF3EiNonqhf736J14ClEK H05YcPRjXrc4/AVY0nrbBDanrxLkxM3WISS0uW8XPh9KA/Mg2oo/b6TInkV/6d1gHMv0 VS72SCLgggiRvNGWnFjCSmkhvqzRN3wQrbzfIH9FxKpcUszBQHXlCWI+PrJHSFTfJbuY zY6Rdyzf+GcRRWsFL629GgjO7yszh/4wpeHzRn30rQb6CfznxbMbj3qVTXu93DCOvedX 6egg== MIME-Version: 1.0 Received: by 10.50.158.201 with SMTP id ww9mr2214526igb.22.1354718817022; Wed, 05 Dec 2012 06:46:57 -0800 (PST) Received: by 10.64.12.45 with HTTP; Wed, 5 Dec 2012 06:46:56 -0800 (PST) In-Reply-To: <50BF5C76.5090207@okto.tv> References: <50BF5C76.5090207@okto.tv> Date: Wed, 5 Dec 2012 14:46:56 +0000 Message-ID: To: Christoph Rosse Cc: PHP Internals List Content-Type: multipart/alternative; boundary=14dae934063ddbf1a504d01c0db6 Subject: Re: [PHP-DEV] Required __construct call in SplFileObject From: dragoonis@gmail.com (Paul Dragoonis) --14dae934063ddbf1a504d01c0db6 Content-Type: text/plain; charset=ISO-8859-1 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 --14dae934063ddbf1a504d01c0db6--