Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65517 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39634 invoked from network); 30 Jan 2013 18:44:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jan 2013 18:44:14 -0000 Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.210.181 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.210.181 mail-ia0-f181.google.com Received: from [209.85.210.181] ([209.85.210.181:36508] helo=mail-ia0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 06/E8-09318-CF969015 for ; Wed, 30 Jan 2013 13:44:13 -0500 Received: by mail-ia0-f181.google.com with SMTP id k25so2783675iah.12 for ; Wed, 30 Jan 2013 10:44:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=yUM4Mlf1VWFeoxEJ/BsoDbwSPHF6dBLtJ9AAxUANU8A=; b=inyK4wBlL4Bk2pKNsmlC5huiVaLnM/Z/93Nfjcc/szcMZZV7aOpT6gg4Ayk1ZTKv6r Jk6Zq8FhJGiwQUoO96p86YAU21VpCAWOsoApsGl5jviUKbKs+MECXEvCVLiL/c/pvuE2 FEyVRtCVxiboTaoII1oYA0EpJGaVKWecCTrQGv6xGHt9xbTSzYTggubbX6u/JzaSw9yy pqmNcK4xX+CUc67LD4Q6oZjX5T8lQXfBUYp0oi6rNKs8iok+teCbLZIW/iI/meCdybAl HI0M/IHJQzVLvXBBna8JFk0RTIbIpzEoUMPKZ4jf2Bng7qbHSxzOi/enQ6WvTiiZFXlO 9efg== MIME-Version: 1.0 X-Received: by 10.50.196.130 with SMTP id im2mr4471813igc.17.1359571450486; Wed, 30 Jan 2013 10:44:10 -0800 (PST) Received: by 10.50.106.138 with HTTP; Wed, 30 Jan 2013 10:44:10 -0800 (PST) Received: by 10.50.106.138 with HTTP; Wed, 30 Jan 2013 10:44:10 -0800 (PST) In-Reply-To: <51096387.3030909@sugarcrm.com> References: <1359498582.20362.YahooMailNeo@web133002.mail.ir2.yahoo.com> <51085497.3090504@sugarcrm.com> <1359560655.44471.YahooMailNeo@web133004.mail.ir2.yahoo.com> <51096387.3030909@sugarcrm.com> Date: Wed, 30 Jan 2013 19:44:10 +0100 Message-ID: To: Stas Malyshev Cc: "internals@lists.php.net" , hakre Content-Type: multipart/alternative; boundary=14dae93410715a610004d485e509 Subject: Re: [PHP-DEV] echo new SplFileObject(__FILE__); From: tyra3l@gmail.com (Ferenc Kovacs) --14dae93410715a610004d485e509 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2013.01.30. 19:16, "Stas Malyshev" ezt =C3=ADrta: > > Hi! > > > But this isn't that strong of an argument, and I think that following > > what SplFileInfo does would be more sensible (echoing the filename), bu= t > > I'm not sure change would worth breaking BC for. > > I don't see why it would be more sensible. It's different objects that > do different things - Info represents file name, more or less, while > Object represents file contents. I see no reason why it would only make > sense for Object to return filename, or why we should "fix" something > that is not broken. imo the toString should return something which represents the object and the filename satisfy that better than a "random" line from the file. but I agree that this isn't a real concern and doesn't need fixing. > -- > Stanislav Malyshev, Software Architect > SugarCRM: http://www.sugarcrm.com/ > (408)454-6900 ext. 227 --14dae93410715a610004d485e509--