File tree Expand file tree Collapse file tree 4 files changed +19
-0
lines changed
Expand file tree Collapse file tree 4 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 77 destructors). (iliaal)
88 . Fixed ZEND_API mismatch on zend_ce_closure forward decl for Windows+Clang.
99 (henderkes)
10+ . Fixed bug GH-21504 (Incorrect RC-handling for ZEND_EXT_STMT op1). (ilutov)
1011
1112- Iconv:
1213 . Fixed bug GH-17399 (iconv memory leak on bailout). (iliaal)
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ '1234 ' |> var_dump (...);
Original file line number Diff line number Diff line change 1+ --TEST--
2+ GH-21504: Incorrect RC-handling for ZEND_EXT_STMT op1
3+ --FILE--
4+ <?php
5+
6+ $ php_escaped = getenv ('TEST_PHP_EXECUTABLE_ESCAPED ' );
7+ $ cmd = $ php_escaped . ' -n -e ' . escapeshellarg (__DIR__ . '/gh21504.inc ' );
8+ echo shell_exec ($ cmd );
9+
10+ ?>
11+ --EXPECT--
12+ string(4) "1234"
Original file line number Diff line number Diff line change @@ -1934,6 +1934,9 @@ static void zend_do_extended_stmt(znode* result) /* {{{ */
19341934
19351935 opline -> opcode = ZEND_EXT_STMT ;
19361936 if (result ) {
1937+ if (result -> op_type == IS_CONST ) {
1938+ Z_TRY_ADDREF (result -> u .constant );
1939+ }
19371940 SET_NODE (opline -> op1 , result );
19381941 }
19391942}
You can’t perform that action at this time.
0 commit comments