Re: [PHP-DEV] Making stream functions accepting SplFileObject as valid parameter

2017-10-05 Thread Sara Golemon
On Thu, Oct 5, 2017 at 6:42 AM, ignace nyamagana butera wrote: > Does adding new methods to SplFileObject easier ? It would mean adding a > getMetaData() (to return stream_get_meta_data infos) method and > (append/prepend/remove)Filter methods to add stream filters API. > That's still a hack, and

Re: [PHP-DEV] Making stream functions accepting SplFileObject as valid parameter

2017-10-05 Thread ignace nyamagana butera
Does adding new methods to SplFileObject easier ? It would mean adding a getMetaData() (to return stream_get_meta_data infos) method and (append/prepend/remove)Filter methods to add stream filters API. On Tue, Oct 3, 2017 at 5:21 PM, Sara Golemon wrote: > On Tue, Oct 3, 2017 at 9:44 AM, Dan Ac

Re: [PHP-DEV] Making stream functions accepting SplFileObject as valid parameter

2017-10-03 Thread Sara Golemon
On Tue, Oct 3, 2017 at 9:44 AM, Dan Ackroyd wrote: > On 29 September 2017 at 07:46, nyamsprod the funky webmaster > wrote: >> >> I've been following the resolution of this bug: >> >> https://bugs.php.net/bug.php?id=44392 >> >> and it seems that there is no safe way to expose the internal >> `SplF

Re: [PHP-DEV] Making stream functions accepting SplFileObject as valid parameter

2017-10-03 Thread Dan Ackroyd
On 29 September 2017 at 07:46, nyamsprod the funky webmaster wrote: > Hi internals, > > I've been following the resolution of this bug: > > https://bugs.php.net/bug.php?id=44392 > > and it seems that there is no safe way to expose the internal > `SplFileObject` filepointer. Hi nyamsprod the funk