mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Merge branch 'PHP-7.4'
* PHP-7.4: NEWS Fix #79424 ext/zip: don't use gl_pathc after call to globfree
This commit is contained in:
commit
5fa17fbf94
1 changed files with 2 additions and 1 deletions
|
@ -688,8 +688,9 @@ int php_zip_glob(char *pattern, int pattern_len, zend_long flags, zval *return_v
|
|||
add_next_index_string(return_value, globbuf.gl_pathv[n]+cwd_skip);
|
||||
}
|
||||
|
||||
ret = globbuf.gl_pathc;
|
||||
globfree(&globbuf);
|
||||
return globbuf.gl_pathc;
|
||||
return ret;
|
||||
#else
|
||||
zend_throw_error(NULL, "Glob support is not available");
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue