KnpLabs/Gaufrette — pull request #68 by nervo (2012-05-20 09:55:51+00:00)
Title: Implement stream stat methods

This is just a tryout to implement stat methods in stream wrapper, so that related functions could work.

See : http://php.net/manual/en/streamwrapper.url-stat.php

Actually, i needed this to be able to use Imagine library open() method - which start with a "is_file" - on a gaufrette stream.

Liip\ImagineBundle use a hack to get around this lack of support (see : https://github.com/liip/LiipImagineBundle/blob/master/Imagine/Data/Loader/StreamLoader.php).

Regarding the InMemoryBuffer file stream, a fake method could be implemented, mimic the result of the stat() method.

What do you think ?