mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
Merge branch 'PHP-5.6'
* PHP-5.6: - Fixed off-by-one in phar_build (patch by crrodriguez at opensuse dot org)
This commit is contained in:
commit
2ed2283932
@ -1477,7 +1477,7 @@ static int phar_build(zend_object_iterator *iter, void *puser TSRMLS_DC) /* {{{
|
||||
}
|
||||
|
||||
close_fp = 0;
|
||||
opened = (char *) estrndup(str, sizeof("[stream]") + 1);
|
||||
opened = (char *) estrndup(str, sizeof("[stream]") - 1);
|
||||
goto after_open_fp;
|
||||
case IS_OBJECT:
|
||||
if (instanceof_function(Z_OBJCE_PP(value), spl_ce_SplFileInfo TSRMLS_CC)) {
|
||||
|
Loading…
Reference in New Issue
Block a user