Skip to content

Commit 6660599

Browse files
committed
Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1: Fix incorrect check condition in ZEND_YIELD
2 parents eee988e + b5e9bf7 commit 6660599

File tree

3 files changed

+23
-21
lines changed

3 files changed

+23
-21
lines changed

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? ??? ????, PHP 8.2.3
44

5+
- Core:
6+
. Fixed incorrect check condition in ZEND_YIELD. (nielsdos)
57

68
02 Feb 2023, PHP 8.2.2
79

Zend/zend_vm_def.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8180,7 +8180,7 @@ ZEND_VM_HANDLER(160, ZEND_YIELD, CONST|TMP|VAR|CV|UNUSED, CONST|TMPVAR|CV|UNUSED
81808180
/* Set the new yielded key */
81818181
if (OP2_TYPE != IS_UNUSED) {
81828182
zval *key = GET_OP2_ZVAL_PTR(BP_VAR_R);
8183-
if ((OP2_TYPE & (IS_CV|IS_VAR)) && UNEXPECTED(Z_TYPE_P(key)) == IS_REFERENCE) {
8183+
if ((OP2_TYPE & (IS_CV|IS_VAR)) && UNEXPECTED(Z_TYPE_P(key) == IS_REFERENCE)) {
81848184
key = Z_REFVAL_P(key);
81858185
}
81868186
ZVAL_COPY(&generator->key, key);

Zend/zend_vm_execute.h

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)