mirror of
https://github.com/php/php-src.git
synced 2024-11-28 04:14:26 +08:00
Fixed segfault in BEGIN/END SILENT
This commit is contained in:
parent
c1c4d26817
commit
757facf6c1
@ -4676,7 +4676,7 @@ ZEND_VM_HANDLER(58, ZEND_END_SILENCE, TMP, ANY)
|
||||
EG(error_reporting_ini_entry)->value != EG(error_reporting_ini_entry)->orig_value)) {
|
||||
efree(EG(error_reporting_ini_entry)->value);
|
||||
}
|
||||
EG(error_reporting_ini_entry)->value = Z_STRVAL(restored_error_reporting);
|
||||
EG(error_reporting_ini_entry)->value = estrndup(Z_STRVAL(restored_error_reporting), Z_STRLEN(restored_error_reporting));
|
||||
EG(error_reporting_ini_entry)->value_length = Z_STRLEN(restored_error_reporting);
|
||||
} else {
|
||||
zval_dtor(&restored_error_reporting);
|
||||
|
@ -8100,7 +8100,7 @@ static int ZEND_FASTCALL ZEND_END_SILENCE_SPEC_TMP_HANDLER(ZEND_OPCODE_HANDLER_
|
||||
EG(error_reporting_ini_entry)->value != EG(error_reporting_ini_entry)->orig_value)) {
|
||||
efree(EG(error_reporting_ini_entry)->value);
|
||||
}
|
||||
EG(error_reporting_ini_entry)->value = Z_STRVAL(restored_error_reporting);
|
||||
EG(error_reporting_ini_entry)->value = estrndup(Z_STRVAL(restored_error_reporting), Z_STRLEN(restored_error_reporting));
|
||||
EG(error_reporting_ini_entry)->value_length = Z_STRLEN(restored_error_reporting);
|
||||
} else {
|
||||
zval_dtor(&restored_error_reporting);
|
||||
|
Loading…
Reference in New Issue
Block a user