mirror of
https://github.com/php/php-src.git
synced 2024-12-14 12:26:19 +08:00
fix segfault (now all tests pass here)
This commit is contained in:
parent
a78fd15fae
commit
984ea1f437
@ -317,7 +317,7 @@ static int phar_file_action(phar_entry_data *phar, char *mime_type, int code, ch
|
||||
}
|
||||
PHAR_G(cwd_init) = 0;
|
||||
efree(name);
|
||||
if (EG(return_value_ptr_ptr)) {
|
||||
if (EG(return_value_ptr_ptr) && *EG(return_value_ptr_ptr)) {
|
||||
zval_ptr_dtor(EG(return_value_ptr_ptr));
|
||||
}
|
||||
if (EG(exception)) {
|
||||
|
Loading…
Reference in New Issue
Block a user