]> granicus.if.org Git - php/commitdiff
add missing parameter to opendir() and fix segfault
authorAntony Dovgal <tony2001@php.net>
Sat, 23 Sep 2006 12:32:32 +0000 (12:32 +0000)
committerAntony Dovgal <tony2001@php.net>
Sat, 23 Sep 2006 12:32:32 +0000 (12:32 +0000)
ext/standard/dir.c

index 1c1ae7a78a380ee149629c1a94ff7f4c80d9754e..750e35cfc2d1876ac124e082d563a9052dcfe67a 100644 (file)
@@ -186,7 +186,7 @@ static void _php_do_opendir(INTERNAL_FUNCTION_PARAMETERS, int createobject)
        php_stream_context *context = NULL;
        php_stream *dirp;
 
-       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "t|r", &dir, &dir_len, &zcontext) == FAILURE) {
+       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "t|r", &dir, &dir_len, &dir_type, &zcontext) == FAILURE) {
                return;
        }