Skip to content

Commit 660c318

Browse files
committed
gen_stub: Add return by reference flag
1 parent 62cdaac commit 660c318

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build/gen_stub.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1583,6 +1583,10 @@ private function getArginfoFlagsByPhpVersions(): array
15831583
$flags[] = "ZEND_ACC_DEPRECATED";
15841584
}
15851585

1586+
if ($this->return->byRef) {
1587+
$flags[] = "ZEND_ACC_RETURN_REFERENCE";
1588+
}
1589+
15861590
$php82AndAboveFlags = $flags;
15871591
if ($this->isMethod() === false && $this->supportsCompileTimeEval) {
15881592
$php82AndAboveFlags[] = "ZEND_ACC_COMPILE_TIME_EVAL";

0 commit comments

Comments
 (0)