Re: echo new SplFileObject(__FILE__);
| From: | Ferenc Kovacs | Date: | Wed, 30 Jan 2013 07:42:52 +0000 |
| Subject: | Re: echo new SplFileObject(__FILE__); | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-65476@lists.php.net to get a copy of this message | ||
2013.01.30. 0:01, "Stas Malyshev" <smalyshev@sugarcrm.com> ezt írta:
>
> Hi!
>
> > Can somebody shed some light why:
> >
> > <?php
> >
> > 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.
>
> --
> Stanislav Malyshev, Software Architect
> SugarCRM: http://www.sugarcrm.com/
> (408)454-6900 ext. 227
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
I've changed the docs so the __toString is listed in the method synapsis,
see http://docs.php.net/manual/en/class.splfileobject.php