Can somebody shed some light why:

    <?php

    echo new SplFileObject(__FILE__);

returns the first line of the file (in that case `<?php`)?

SplFileInfo has the path and SplFileObject extends from it but it will return 
the current line. I do not really understand why and I tend to report this as a 
bug but I'm not sure.


--hakre


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to