Re: [PHP-DEV] Custom Streams, fclose & stream_close

2006-02-14 Thread Wez Furlong
stream_close can return any value it likes... however, it is ignored and php_userstreamop_close always returns success to the streams layer. This is a bug, but should be simple to fix. (volunteers welcome; I don't have a current cvs checkout). --Wez. On 2/13/06, Jared Williams <[EMAIL PROTECTED]>

[PHP-DEV] Custom Streams, fclose & stream_close

2006-02-13 Thread Jared Williams
Hi, Is the PHP manual correct in that fclose() returns a bool, but a custom wrapper stream_close() is void? Would like to signal a problem if I have a problem closing a custom stream. Jared -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.n

Re: [PHP-DEV] custom streams

2005-08-18 Thread Wez Furlong
For this particular case, I'd just use version_compare() and check for PHP 5.1 and up. It seems "cleaner" to not flip the meaning back to what it should be in a minor release, just because nobody ever reads the release notes, and most people think that it should be returning based on inverted logi

Re: [PHP-DEV] custom streams

2005-08-18 Thread Jani Taskinen
On Thu, 18 Aug 2005, Lukas Smith wrote: Jani Taskinen wrote: Not critical enough to try and find the fix. Just use 5.1. As far as I'm concerned, 5.0 is dead along with 4.4 :) But why even bother with 5.0.5 .. or more specifically whats the purpose of Ask Zeev. minor version if

Re: [PHP-DEV] custom streams

2005-08-18 Thread Lukas Smith
Jani Taskinen wrote: Not critical enough to try and find the fix. Just use 5.1. As far as I'm concerned, 5.0 is dead along with 4.4 :) Sure. But why even bother with 5.0.5 .. or more specifically whats the purpose of 5.0.5? I presume there are other bugs which will follow the same fat

Re: [PHP-DEV] custom streams

2005-08-18 Thread Jani Taskinen
Not critical enough to try and find the fix. Just use 5.1. As far as I'm concerned, 5.0 is dead along with 4.4 :) --Jani On Thu, 18 Aug 2005, Lukas Smith wrote: Hi, I am using custom streams for the LOB support in PEAR::MDB2. It seems that things work nicely on PHP 4.4 and PHP 5.

[PHP-DEV] custom streams

2005-08-18 Thread Lukas Smith
Hi, I am using custom streams for the LOB support in PEAR::MDB2. It seems that things work nicely on PHP 4.4 and PHP 5.1.0RC1. However using todays windows 5.0.x binarys from snaps.php.net still give me errors. Atleast there is still bug that leads to the stream_eof() return being flipped (fal