File tree 2 files changed +14
-3
lines changed
2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -387,9 +387,8 @@ static void sodium_remove_param_values_from_backtrace(zend_object *obj) {
387
387
ZEND_HASH_FOREACH_VAL (Z_ARRVAL_P (trace ), frame ) {
388
388
if (Z_TYPE_P (frame ) == IS_ARRAY ) {
389
389
zval * args = zend_hash_str_find (Z_ARRVAL_P (frame ), "args" , sizeof ("args" )- 1 );
390
- if (args && Z_TYPE_P (frame ) == IS_ARRAY ) {
391
- zend_hash_clean (Z_ARRVAL_P (args ));
392
- }
390
+ zval_ptr_dtor (args );
391
+ ZVAL_EMPTY_ARRAY (args );
393
392
}
394
393
} ZEND_HASH_FOREACH_END ();
395
394
}
Original file line number Diff line number Diff line change @@ -93,6 +93,17 @@ if (defined('SODIUM_BASE64_VARIANT_ORIGINAL')) {
93
93
var_dump ('base64("O") case passed ' );
94
94
var_dump ('abcd ' );
95
95
}
96
+
97
+ function sodium_foo ()
98
+ {
99
+ throw new SodiumException ('test ' );
100
+ }
101
+
102
+ try {
103
+ sodium_foo ();
104
+ } catch (SodiumException $ ex ) {
105
+ var_dump ($ ex ->getMessage ());
106
+ }
96
107
97
108
?>
98
109
--EXPECT--
@@ -114,3 +125,4 @@ string(25) "base64("O1R") case passed"
114
125
string(24) "base64("O1") case passed"
115
126
string(23) "base64("O") case passed"
116
127
string(4) "abcd"
128
+ string(4) "test"
You can’t perform that action at this time.
0 commit comments