From: Markus Fischer Date: Tue, 19 Mar 2002 21:18:18 +0000 (+0000) Subject: - Fix bug spotted by Lukas Schroeder . X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~1212 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cd0ceca76f49b68d87853c30594d9455769c0b56;p=php - Fix bug spotted by Lukas Schroeder . --- diff --git a/ext/ming/ming.c b/ext/ming/ming.c index 7cf91e0027..79553186af 100644 --- a/ext/ming/ming.c +++ b/ext/ming/ming.c @@ -209,7 +209,7 @@ static SWFInput getInput(zval **zfile TSRMLS_DC) 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; }