]> granicus.if.org Git - php/commitdiff
- Fix bug spotted by Lukas Schroeder <lukas@edeal.de>.
authorMarkus Fischer <mfischer@php.net>
Tue, 19 Mar 2002 21:18:18 +0000 (21:18 +0000)
committerMarkus Fischer <mfischer@php.net>
Tue, 19 Mar 2002 21:18:18 +0000 (21:18 +0000)
ext/ming/ming.c

index 7cf91e00276869fa5f408e1de36c25b952fddf53..79553186af764a0cffd219bead5e8cfd0027c298 100644 (file)
@@ -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;
   }