Applied, thanks!
On Tue, Mar 19, 2002 at 09:42:49PM +0100, Lukas Schroeder wrote :
> hi!
>
> during the streams changes a tiny error was introduced checking the
> return code of php_stream_cast the wrong way around...
>
> this patch against latest CVS fixes it.
> someone with enough karma, please apply.
>
>
>
> regards,
> -lukas
>
> Index: ext/ming/ming.c
> ===================================================================
> RCS file: /repository/php4/ext/ming/ming.c,v
> retrieving revision 1.32
> diff -u -r1.32 ming.c
> --- ext/ming/ming.c 17 Mar 2002 22:50:55 -0000 1.32
> +++ ext/ming/ming.c 19 Mar 2002 20:31:38 -0000
> @@ -209,7 +209,7 @@
>
> what = zend_fetch_resource(zfile TSRMLS_CC, -1, "File-Handle", &type, 1,
>php_file_le_stream());
>
> - if (!php_stream_cast((php_stream*)what, PHP_STREAM_AS_STDIO, (void*)&file,
>REPORT_ERRORS)) {
> + if (php_stream_cast((php_stream*)what, PHP_STREAM_AS_STDIO, (void*)&file,
>REPORT_ERRORS) != SUCCESS) {
> return NULL;
> }
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
--
Please always Cc to me when replying to me on the lists.
GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php