Re: echo new SplFileObject(__FILE__);
| From: | hakre | Date: | Wed, 30 Jan 2013 15:44:15 +0000 |
| Subject: | Re: echo new SplFileObject(__FILE__); | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-65506@lists.php.net to get a copy of this message | ||
----- Ursprüngliche Message -----
> Von: Stas Malyshev <smalyshev@sugarcrm.com>
> Gesendet: 0:00 Mittwoch, 30.Januar 2013
> Betreff: Re: [PHP-DEV] echo new SplFileObject(__FILE__);
>
>
> __toString is mapped to current() for SplFileObject:
> http://www.php.net/manual/en/splfileobject.current.php
>
> it's not documented for some reason, I think it makes sense to file a
> docs bug on that.
Thanks for your answer.
I know that there is code in there that does this and I also got into the know that it is not
properly documented.
I just write this to clarify that I'm more interested in the why it has been coded that way.
It does not make much *sense* to me and I want to learn more.
Also I don't mean this explicit technically. I could blame the version control, pick the
authors name and email that person; however some time has passed and more users are using it not
only the original author so I ask in internals first. Just for clarification.
-- hakre