@@ -1559,7 +1559,8 @@ static void debug_backtrace_get_args(zend_execute_data *call, zval *arg_array) /
1559
1559
*/
1560
1560
while (i < first_extra_arg ) {
1561
1561
zend_string * arg_name = call -> func -> op_array .vars [i ];
1562
- zval * arg = zend_hash_find_ex_ind (call -> symbol_table , arg_name , 1 );
1562
+ zval arg ;
1563
+ zval * old_arg = zend_hash_find_ex_ind (call -> symbol_table , arg_name , 1 );
1563
1564
zend_attribute * attribute = zend_get_parameter_attribute_str (
1564
1565
call -> func -> op_array .attributes ,
1565
1566
"sensitiveparameter" ,
@@ -1574,28 +1575,29 @@ static void debug_backtrace_get_args(zend_execute_data *call, zval *arg_array) /
1574
1575
1575
1576
}
1576
1577
1577
- if (arg ) {
1578
- ZVAL_DEREF (arg );
1579
- Z_TRY_ADDREF_P (arg );
1578
+ if (old_arg ) {
1579
+ ZVAL_DEREF (old_arg );
1580
+ Z_TRY_ADDREF_P (old_arg );
1581
+ arg = * old_arg ;
1580
1582
} else {
1581
- ZVAL_NULL (arg );
1583
+ ZVAL_NULL (& arg );
1582
1584
}
1583
1585
1584
1586
if (last_was_sensitive ) {
1585
1587
zval new_arg ;
1586
1588
object_init_ex (& new_arg , zend_ce_sensitive_parameter_value );
1587
- zend_call_method_with_1_params (Z_OBJ_P (& new_arg ), zend_ce_sensitive_parameter_value , & zend_ce_sensitive_parameter_value -> constructor , "__construct" , NULL , arg );
1589
+ zend_call_method_with_1_params (Z_OBJ_P (& new_arg ), zend_ce_sensitive_parameter_value , & zend_ce_sensitive_parameter_value -> constructor , "__construct" , NULL , & arg );
1588
1590
ZEND_HASH_FILL_SET (& new_arg );
1589
1591
} else {
1590
- ZEND_HASH_FILL_SET (arg );
1592
+ ZEND_HASH_FILL_SET (& arg );
1591
1593
}
1592
1594
1593
1595
ZEND_HASH_FILL_NEXT ();
1594
1596
i ++ ;
1595
1597
}
1596
1598
} else {
1597
1599
while (i < first_extra_arg ) {
1598
- zval * arg ;
1600
+ zval arg ;
1599
1601
1600
1602
zend_attribute * attribute = zend_get_parameter_attribute_str (
1601
1603
call -> func -> op_array .attributes ,
@@ -1611,20 +1613,20 @@ static void debug_backtrace_get_args(zend_execute_data *call, zval *arg_array) /
1611
1613
}
1612
1614
1613
1615
if (EXPECTED (Z_TYPE_INFO_P (p ) != IS_UNDEF )) {
1614
- arg = p ;
1615
- ZVAL_DEREF ( arg );
1616
- Z_TRY_ADDREF_P ( arg ) ;
1616
+ ZVAL_DEREF ( p ) ;
1617
+ Z_TRY_ADDREF_P ( p );
1618
+ arg = * p ;
1617
1619
} else {
1618
- ZVAL_NULL (arg );
1620
+ ZVAL_NULL (& arg );
1619
1621
}
1620
1622
1621
1623
if (last_was_sensitive ) {
1622
1624
zval new_arg ;
1623
1625
object_init_ex (& new_arg , zend_ce_sensitive_parameter_value );
1624
- zend_call_method_with_1_params (Z_OBJ_P (& new_arg ), zend_ce_sensitive_parameter_value , & zend_ce_sensitive_parameter_value -> constructor , "__construct" , NULL , arg );
1626
+ zend_call_method_with_1_params (Z_OBJ_P (& new_arg ), zend_ce_sensitive_parameter_value , & zend_ce_sensitive_parameter_value -> constructor , "__construct" , NULL , & arg );
1625
1627
ZEND_HASH_FILL_SET (& new_arg );
1626
1628
} else {
1627
- ZEND_HASH_FILL_SET (arg );
1629
+ ZEND_HASH_FILL_SET (& arg );
1628
1630
}
1629
1631
1630
1632
ZEND_HASH_FILL_NEXT ();
@@ -1636,7 +1638,7 @@ static void debug_backtrace_get_args(zend_execute_data *call, zval *arg_array) /
1636
1638
}
1637
1639
1638
1640
while (i < num_args ) {
1639
- zval * arg ;
1641
+ zval arg ;
1640
1642
1641
1643
zend_attribute * attribute = zend_get_parameter_attribute_str (
1642
1644
call -> func -> op_array .attributes ,
@@ -1657,20 +1659,20 @@ static void debug_backtrace_get_args(zend_execute_data *call, zval *arg_array) /
1657
1659
1658
1660
1659
1661
if (EXPECTED (Z_TYPE_INFO_P (p ) != IS_UNDEF )) {
1660
- arg = p ;
1661
- ZVAL_DEREF ( arg );
1662
- Z_TRY_ADDREF_P ( arg ) ;
1662
+ ZVAL_DEREF ( p ) ;
1663
+ Z_TRY_ADDREF_P ( p );
1664
+ arg = * p ;
1663
1665
} else {
1664
- ZVAL_NULL (arg );
1666
+ ZVAL_NULL (& arg );
1665
1667
}
1666
1668
1667
1669
if (last_was_sensitive ) {
1668
1670
zval new_arg ;
1669
1671
object_init_ex (& new_arg , zend_ce_sensitive_parameter_value );
1670
- zend_call_method_with_1_params (Z_OBJ_P (& new_arg ), zend_ce_sensitive_parameter_value , & zend_ce_sensitive_parameter_value -> constructor , "__construct" , NULL , arg );
1672
+ zend_call_method_with_1_params (Z_OBJ_P (& new_arg ), zend_ce_sensitive_parameter_value , & zend_ce_sensitive_parameter_value -> constructor , "__construct" , NULL , & arg );
1671
1673
ZEND_HASH_FILL_SET (& new_arg );
1672
1674
} else {
1673
- ZEND_HASH_FILL_SET (arg );
1675
+ ZEND_HASH_FILL_SET (& arg );
1674
1676
}
1675
1677
1676
1678
ZEND_HASH_FILL_NEXT ();
0 commit comments