]> granicus.if.org Git - php/commitdiff
- improve r316420, function must return a value
authorPierre Joye <pajoye@php.net>
Fri, 9 Sep 2011 07:56:42 +0000 (07:56 +0000)
committerPierre Joye <pajoye@php.net>
Fri, 9 Sep 2011 07:56:42 +0000 (07:56 +0000)
ext/spl/spl_directory.c

index 308a2b5817de954b0e620a81b5ce92d123051e70..0a3b9abf6754719e907a6672cd8eadf53a953439 100755 (executable)
@@ -260,7 +260,7 @@ static int spl_filesystem_file_open(spl_filesystem_object *intern, int use_inclu
                intern->u.file.open_mode = NULL;
                intern->file_name = NULL;
                zend_throw_exception_ex(spl_ce_LogicException, 0 TSRMLS_CC, "Cannot use SplFileObject with directories");
-               return;
+               return FAILURE;
        }
 
        intern->u.file.context = php_stream_context_from_zval(intern->u.file.zcontext, 0);