Skip to content

Commit 7d3a7ef

Browse files
committed
Merge branch 'PHP-8.2'
* PHP-8.2: Fix incorrect check condition in ZEND_YIELD
2 parents 8902e47 + 6660599 commit 7d3a7ef

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

Zend/zend_vm_def.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8202,7 +8202,7 @@ ZEND_VM_HANDLER(160, ZEND_YIELD, CONST|TMP|VAR|CV|UNUSED, CONST|TMPVAR|CV|UNUSED
82028202
/* Set the new yielded key */
82038203
if (OP2_TYPE != IS_UNUSED) {
82048204
zval *key = GET_OP2_ZVAL_PTR(BP_VAR_R);
8205-
if ((OP2_TYPE & (IS_CV|IS_VAR)) && UNEXPECTED(Z_TYPE_P(key)) == IS_REFERENCE) {
8205+
if ((OP2_TYPE & (IS_CV|IS_VAR)) && UNEXPECTED(Z_TYPE_P(key) == IS_REFERENCE)) {
82068206
key = Z_REFVAL_P(key);
82078207
}
82088208
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)