File tree Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,10 @@ PHP NEWS
3
3
?? ??? 2017 PHP 7.0.16
4
4
5
5
- Core:
6
+ . Fixed bug #73916 (zend_print_flat_zval_r doesn't consider reference).
7
+ (Laruence)
6
8
. Fixed bug #73876 (Crash when exporting **= in expansion of assign op).
7
- (Sara)
9
+ (Sara)
8
10
9
11
- FPM:
10
12
. Fixed bug #67583 (double fastcgi_end_request on max_children limit).
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ Bug #73916 (zend_print_flat_zval_r doesn't consider reference)
3
+ --FILE--
4
+ <?php
5
+ $ a = array ('a ' );
6
+ class b{};
7
+ $ b = new b ;
8
+ $ test [] =& $ a ;
9
+ $ test [] =& $ b ;
10
+ test ($ test );
11
+ function test () {
12
+ debug_print_backtrace ();
13
+ }
14
+ ?>
15
+ --EXPECTF--
16
+ #0 test(Array ([0] => Array ([0] => a),[1] => b Object ())) called at [%sbug73916.php:%d]
Original file line number Diff line number Diff line change @@ -312,6 +312,9 @@ ZEND_API void zend_print_flat_zval_r(zval *expr) /* {{{ */
312
312
ZEND_PUTS (")" );
313
313
break ;
314
314
}
315
+ case IS_REFERENCE :
316
+ zend_print_flat_zval_r (Z_REFVAL_P (expr ));
317
+ break ;
315
318
default :
316
319
zend_print_variable (expr );
317
320
break ;
You can’t perform that action at this time.
0 commit comments