mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-29 03:45:43 +00:00
Fixed segfault in BEGIN/END SILENT
This commit is contained in:
1 parent
c1c4d26817
commit
757facf6c1
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user