@@ -4916,7 +4916,8 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_fetch_static_prop_helper_SPEC_
4916
4916
}
4917
4917
}
4918
4918
retval = zend_std_get_static_property(ce, name, 0);
4919
- if (UNEXPECTED(EG(exception))) {
4919
+ if (UNEXPECTED(retval == NULL)) {
4920
+ ZEND_ASSERT(EG(exception));
4920
4921
if (IS_CONST != IS_CONST) {
4921
4922
zend_string_release(name);
4922
4923
}
@@ -4932,7 +4933,6 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_fetch_static_prop_helper_SPEC_
4932
4933
}
4933
4934
4934
4935
fetch_static_prop_return:
4935
- ZEND_ASSERT(retval != NULL);
4936
4936
if (type == BP_VAR_R || type == BP_VAR_IS) {
4937
4937
ZVAL_COPY_UNREF(EX_VAR(opline->result.var), retval);
4938
4938
} else {
@@ -6769,7 +6769,8 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_fetch_static_prop_helper_SPEC_
6769
6769
}
6770
6770
}
6771
6771
retval = zend_std_get_static_property(ce, name, 0);
6772
- if (UNEXPECTED(EG(exception))) {
6772
+ if (UNEXPECTED(retval == NULL)) {
6773
+ ZEND_ASSERT(EG(exception));
6773
6774
if (IS_CONST != IS_CONST) {
6774
6775
zend_string_release(name);
6775
6776
}
@@ -6785,7 +6786,6 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_fetch_static_prop_helper_SPEC_
6785
6786
}
6786
6787
6787
6788
fetch_static_prop_return:
6788
- ZEND_ASSERT(retval != NULL);
6789
6789
if (type == BP_VAR_R || type == BP_VAR_IS) {
6790
6790
ZVAL_COPY_UNREF(EX_VAR(opline->result.var), retval);
6791
6791
} else {
@@ -7341,7 +7341,8 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_fetch_static_prop_helper_SPEC_
7341
7341
}
7342
7342
}
7343
7343
retval = zend_std_get_static_property(ce, name, 0);
7344
- if (UNEXPECTED(EG(exception))) {
7344
+ if (UNEXPECTED(retval == NULL)) {
7345
+ ZEND_ASSERT(EG(exception));
7345
7346
if (IS_CONST != IS_CONST) {
7346
7347
zend_string_release(name);
7347
7348
}
@@ -7357,7 +7358,6 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_fetch_static_prop_helper_SPEC_
7357
7358
}
7358
7359
7359
7360
fetch_static_prop_return:
7360
- ZEND_ASSERT(retval != NULL);
7361
7361
if (type == BP_VAR_R || type == BP_VAR_IS) {
7362
7362
ZVAL_COPY_UNREF(EX_VAR(opline->result.var), retval);
7363
7363
} else {
@@ -37970,7 +37970,8 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_fetch_static_prop_helper_SPEC_
37970
37970
}
37971
37971
}
37972
37972
retval = zend_std_get_static_property(ce, name, 0);
37973
- if (UNEXPECTED(EG(exception))) {
37973
+ if (UNEXPECTED(retval == NULL)) {
37974
+ ZEND_ASSERT(EG(exception));
37974
37975
if (IS_CV != IS_CONST) {
37975
37976
zend_string_release(name);
37976
37977
}
@@ -37986,7 +37987,6 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_fetch_static_prop_helper_SPEC_
37986
37987
}
37987
37988
37988
37989
fetch_static_prop_return:
37989
- ZEND_ASSERT(retval != NULL);
37990
37990
if (type == BP_VAR_R || type == BP_VAR_IS) {
37991
37991
ZVAL_COPY_UNREF(EX_VAR(opline->result.var), retval);
37992
37992
} else {
@@ -41029,7 +41029,8 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_fetch_static_prop_helper_SPEC_
41029
41029
}
41030
41030
}
41031
41031
retval = zend_std_get_static_property(ce, name, 0);
41032
- if (UNEXPECTED(EG(exception))) {
41032
+ if (UNEXPECTED(retval == NULL)) {
41033
+ ZEND_ASSERT(EG(exception));
41033
41034
if (IS_CV != IS_CONST) {
41034
41035
zend_string_release(name);
41035
41036
}
@@ -41045,7 +41046,6 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_fetch_static_prop_helper_SPEC_
41045
41046
}
41046
41047
41047
41048
fetch_static_prop_return:
41048
- ZEND_ASSERT(retval != NULL);
41049
41049
if (type == BP_VAR_R || type == BP_VAR_IS) {
41050
41050
ZVAL_COPY_UNREF(EX_VAR(opline->result.var), retval);
41051
41051
} else {
@@ -42077,7 +42077,8 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_fetch_static_prop_helper_SPEC_
42077
42077
}
42078
42078
}
42079
42079
retval = zend_std_get_static_property(ce, name, 0);
42080
- if (UNEXPECTED(EG(exception))) {
42080
+ if (UNEXPECTED(retval == NULL)) {
42081
+ ZEND_ASSERT(EG(exception));
42081
42082
if (IS_CV != IS_CONST) {
42082
42083
zend_string_release(name);
42083
42084
}
@@ -42093,7 +42094,6 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_fetch_static_prop_helper_SPEC_
42093
42094
}
42094
42095
42095
42096
fetch_static_prop_return:
42096
- ZEND_ASSERT(retval != NULL);
42097
42097
if (type == BP_VAR_R || type == BP_VAR_IS) {
42098
42098
ZVAL_COPY_UNREF(EX_VAR(opline->result.var), retval);
42099
42099
} else {
@@ -52433,7 +52433,8 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_fetch_static_prop_helper_SPEC_
52433
52433
}
52434
52434
}
52435
52435
retval = zend_std_get_static_property(ce, name, 0);
52436
- if (UNEXPECTED(EG(exception))) {
52436
+ if (UNEXPECTED(retval == NULL)) {
52437
+ ZEND_ASSERT(EG(exception));
52437
52438
if ((IS_TMP_VAR|IS_VAR) != IS_CONST) {
52438
52439
zend_string_release(name);
52439
52440
}
@@ -52451,7 +52452,6 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_fetch_static_prop_helper_SPEC_
52451
52452
}
52452
52453
52453
52454
fetch_static_prop_return:
52454
- ZEND_ASSERT(retval != NULL);
52455
52455
if (type == BP_VAR_R || type == BP_VAR_IS) {
52456
52456
ZVAL_COPY_UNREF(EX_VAR(opline->result.var), retval);
52457
52457
} else {
@@ -53382,7 +53382,8 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_fetch_static_prop_helper_SPEC_
53382
53382
}
53383
53383
}
53384
53384
retval = zend_std_get_static_property(ce, name, 0);
53385
- if (UNEXPECTED(EG(exception))) {
53385
+ if (UNEXPECTED(retval == NULL)) {
53386
+ ZEND_ASSERT(EG(exception));
53386
53387
if ((IS_TMP_VAR|IS_VAR) != IS_CONST) {
53387
53388
zend_string_release(name);
53388
53389
}
@@ -53400,7 +53401,6 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_fetch_static_prop_helper_SPEC_
53400
53401
}
53401
53402
53402
53403
fetch_static_prop_return:
53403
- ZEND_ASSERT(retval != NULL);
53404
53404
if (type == BP_VAR_R || type == BP_VAR_IS) {
53405
53405
ZVAL_COPY_UNREF(EX_VAR(opline->result.var), retval);
53406
53406
} else {
@@ -53870,7 +53870,8 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_fetch_static_prop_helper_SPEC_
53870
53870
}
53871
53871
}
53872
53872
retval = zend_std_get_static_property(ce, name, 0);
53873
- if (UNEXPECTED(EG(exception))) {
53873
+ if (UNEXPECTED(retval == NULL)) {
53874
+ ZEND_ASSERT(EG(exception));
53874
53875
if ((IS_TMP_VAR|IS_VAR) != IS_CONST) {
53875
53876
zend_string_release(name);
53876
53877
}
@@ -53888,7 +53889,6 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_fetch_static_prop_helper_SPEC_
53888
53889
}
53889
53890
53890
53891
fetch_static_prop_return:
53891
- ZEND_ASSERT(retval != NULL);
53892
53892
if (type == BP_VAR_R || type == BP_VAR_IS) {
53893
53893
ZVAL_COPY_UNREF(EX_VAR(opline->result.var), retval);
53894
53894
} else {
0 commit comments