mirror of
https://github.com/php/php-src.git
synced 2025-08-21 01:45:16 +02:00
Merge branch 'PHP-7.4'
* PHP-7.4: Fix incorrect zend_try usage
This commit is contained in:
commit
c2d92ad971
1 changed files with 5 additions and 2 deletions
|
@ -3958,10 +3958,13 @@ static void preload_check_windows_restrictions(zend_class_entry *scope) {
|
||||||
static inline int preload_update_class_constants(zend_class_entry *ce) {
|
static inline int preload_update_class_constants(zend_class_entry *ce) {
|
||||||
/* This is a separate function to work around what appears to be a bug in GCC
|
/* This is a separate function to work around what appears to be a bug in GCC
|
||||||
* maybe-uninitialized analysis. */
|
* maybe-uninitialized analysis. */
|
||||||
|
int result;
|
||||||
zend_try {
|
zend_try {
|
||||||
return zend_update_class_constants(ce);
|
result = zend_update_class_constants(ce);
|
||||||
|
} zend_catch {
|
||||||
|
result = FAILURE;
|
||||||
} zend_end_try();
|
} zend_end_try();
|
||||||
return FAILURE;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
static zend_class_entry *preload_load_prop_type(zend_property_info *prop, zend_string *name) {
|
static zend_class_entry *preload_load_prop_type(zend_property_info *prop, zend_string *name) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue