diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2021-03-15 18:39:11 +0100 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2021-03-15 18:39:26 +0100 |
commit | eae69fcf71d76b349fab892c1102a58a931f5a96 (patch) | |
tree | a86215654827fc07c562055f110ce0defe2849da /ext | |
parent | 50254de0a2cc63570a5caf7666151a77e7bd0b7a (diff) | |
parent | f448b0e6dd3a1bd3a009c2e94c539a038f834c4d (diff) | |
download | php-git-eae69fcf71d76b349fab892c1102a58a931f5a96.tar.gz |
Merge branch 'PHP-7.4' into PHP-8.0
* PHP-7.4:
Fix #80817: dba_popen() may cause segfault during RSHUTDOWN
Diffstat (limited to 'ext')
-rw-r--r-- | ext/dba/dba.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dba/dba.c b/ext/dba/dba.c index b3c9f4eeb2..7e8ef11b03 100644 --- a/ext/dba/dba.c +++ b/ext/dba/dba.c @@ -863,9 +863,9 @@ restart: zend_bool close_both; close_both = (info->fp != info->lock.fp); - php_stream_close(info->lock.fp); + php_stream_free(info->lock.fp, persistent ? PHP_STREAM_FREE_CLOSE_PERSISTENT : PHP_STREAM_FREE_CLOSE); if (close_both) { - php_stream_close(info->fp); + php_stream_free(info->fp, persistent ? PHP_STREAM_FREE_CLOSE_PERSISTENT : PHP_STREAM_FREE_CLOSE); } info->fp = NULL; info->lock.fp = NULL; |