File tree 3 files changed +24
-0
lines changed
3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 4
4
5
5
- Core:
6
6
. Fixed bug #75776 (Flushing streams with compression filter is broken). (cmb)
7
+ . Fixed bug #80811 (Function exec without $output but with $restult_code
8
+ parameter crashes). (Nikita)
7
9
8
10
- IMAP:
9
11
. Fixed bug #80800 (imap_open() fails when the flags parameter includes
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ Bug #80811: Function exec without $output but with $restult_code parameter crashes
3
+ --FILE--
4
+ <?php
5
+
6
+ echo 'Executing with all params: ' . PHP_EOL ;
7
+ exec ('echo Something ' , output: $ output , result_code: $ resultCode );
8
+ var_dump ($ resultCode );
9
+
10
+ echo 'Executing without output param: ' . PHP_EOL ;
11
+ exec ('echo Something ' , result_code: $ resultCode );
12
+ var_dump ($ resultCode );
13
+
14
+ ?>
15
+ --EXPECT--
16
+ Executing with all params:
17
+ int(0)
18
+ Executing without output param:
19
+ int(0)
Original file line number Diff line number Diff line change @@ -4579,6 +4579,9 @@ ZEND_API zend_result ZEND_FASTCALL zend_handle_undef_args(zend_execute_data *cal
4579
4579
}
4580
4580
4581
4581
ZVAL_COPY_VALUE (arg , & default_value );
4582
+ if (ZEND_ARG_SEND_MODE (arg_info ) & ZEND_SEND_BY_REF ) {
4583
+ ZVAL_NEW_REF (arg , arg );
4584
+ }
4582
4585
}
4583
4586
}
4584
4587
You can’t perform that action at this time.
0 commit comments