Skip to content

Commit

Permalink
Fix hashtable inconsist when specify an invalid path to ini: phar.cac…
Browse files Browse the repository at this point in the history
…he_list

This fixed the following failed tests(This is PHP-5.3 only):

Phar: copy-on-write test 13 [cache_list] [ext/phar/tests/cache_list/copyonwrite13.phar.phpt]
Phar: copy-on-write test 14 [cache_list] [ext/phar/tests/cache_list/copyonwrite14.phar.phpt]
Phar: copy-on-write test 21 [cache_list] [ext/phar/tests/cache_list/copyonwrite21.phar.phpt]
Phar: copy-on-write test 22 [cache_list] [ext/phar/tests/cache_list/copyonwrite22.phar.phpt]
Phar: copy-on-write test 4a [cache_list] [ext/phar/tests/cache_list/copyonwrite4a.phpt]
Phar front controller other [ext/phar/tests/cache_list/frontcontroller1.phpt]
Phar front controller mime type extension is not a string [cache_list] [ext/phar/tests/cache_list/frontcontroller11.phpt]
Phar front controller PHP test [cache_list] [ext/phar/tests/cache_list/frontcontroller2.phpt]
Phar: phpinfo display 3 [ext/phar/tests/phpinfo_003.phpt]
  • Loading branch information
reeze committed Aug 10, 2012
1 parent c4b26cc commit 3a083f2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions ext/standard/basic_functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -3751,8 +3751,6 @@ PHP_RINIT_FUNCTION(basic) /* {{{ */
/* Default to global filters only */
FG(stream_filters) = NULL;

FG(wrapper_errors) = NULL;

return SUCCESS;
}
/* }}} */
Expand Down
1 change: 1 addition & 0 deletions ext/standard/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ static void file_globals_ctor(php_file_globals *file_globals_p TSRMLS_DC)
FG(pclose_ret) = 0;
FG(user_stream_current_filename) = NULL;
FG(def_chunk_size) = PHP_SOCK_CHUNK_SIZE;
FG(wrapper_errors) = NULL;
}

static void file_globals_dtor(php_file_globals *file_globals_p TSRMLS_DC)
Expand Down

0 comments on commit 3a083f2

Please sign in to comment.