Skip to content

Commit 5ddcaca

Browse files
committed
Fix incorrect zend_try usage
1 parent d6f86ca commit 5ddcaca

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ext/opcache/ZendAccelerator.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3873,10 +3873,13 @@ static void preload_check_windows_restrictions(zend_class_entry *scope) {
38733873
static inline int preload_update_class_constants(zend_class_entry *ce) {
38743874
/* This is a separate function to work around what appears to be a bug in GCC
38753875
* maybe-uninitialized analysis. */
3876+
int result;
38763877
zend_try {
3877-
return zend_update_class_constants(ce);
3878+
result = zend_update_class_constants(ce);
3879+
} zend_catch {
3880+
result = FAILURE;
38783881
} zend_end_try();
3879-
return FAILURE;
3882+
return result;
38803883
}
38813884

38823885
static zend_class_entry *preload_load_prop_type(zend_property_info *prop, zend_string *name) {

0 commit comments

Comments
 (0)