[patch] ming ./. trivial fix for streams error

From: Date: Tue, 19 Mar 2002 20:42:49 +0000
Subject: [patch] ming ./. trivial fix for streams error
Groups: php.dev 
Request: Send a blank email to php-dev+get-81513@lists.php.net to get a copy of this message
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; }
« previous php.dev (#81513) next »