mirror of
https://github.com/php/php-src.git
synced 2025-08-21 01:45:16 +02:00
MFH: fix memory corruption due to double destruction of default dir handle
This commit is contained in:
parent
c3b6ca3b8f
commit
391da778fb
1 changed files with 2 additions and 2 deletions
|
@ -261,10 +261,10 @@ PHP_FUNCTION(closedir)
|
|||
|
||||
if (dirp->rsrc_id == DIRG(default_dir)) {
|
||||
php_set_default_dir(-1 TSRMLS_CC);
|
||||
}
|
||||
|
||||
} else {
|
||||
zend_list_delete(dirp->rsrc_id);
|
||||
}
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
#if defined(HAVE_CHROOT) && !defined(ZTS) && ENABLE_CHROOT_FUNC
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue