On 23.11.2015 16:30, Rowan Collins wrote:
I believe the blocker on just rushing to convert existing resources into objects is that there are functions like is_resource() and getttype() which will start behaving differently.
There's another blocker: the SplFileObject currently has no fclose() method, which should definitely be implemented. Currently it relies on being destroyed to close the internal resource. In case of cross references, there's no way to explicitly close the file handle.
May I suggest to implement fclose() in SplFileObject for now to bring it in line with the plain functions? I'd say that when fclose() was called on an SplFileObject and e.g. an fwrite(), fread() or the like call is made on the object, it throw's an exception?
-- Ben Scholzen 'DASPRiD' Community Review Team Member | m...@dasprids.de Zend Framework | http://www.dasprids.de -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php