summaryrefslogtreecommitdiff
path: root/ext/standard/tests/array
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-07-24 10:16:38 +0200
committerNikita Popov <nikita.ppv@gmail.com>2020-07-24 12:23:34 +0200
commitd65d3f5298dcc8d94bcac96e8bf2441dceb393ac (patch)
treea5e07c4bdf5a7ca0dc213b1b3a7ef6e0136d8528 /ext/standard/tests/array
parent27ad19c3e8d4fe61ce9c8cec9e50062acf2255c1 (diff)
downloadphp-git-d65d3f5298dcc8d94bcac96e8bf2441dceb393ac.tar.gz
Fix bug #79108
Don't expose references in debug_backtrace() or exception traces. This is regardless of whether the argument is by-reference or not. As a side-effect of this change, exception traces may now acquire the interior value of a reference, which may be unexpected for some internal functions. This is what necessitated the change in the spl_array sort implementation.
Diffstat (limited to 'ext/standard/tests/array')
-rw-r--r--ext/standard/tests/array/array_walk_closure.phpt2
-rw-r--r--ext/standard/tests/array/bug79839.phpt2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/tests/array/array_walk_closure.phpt b/ext/standard/tests/array/array_walk_closure.phpt
index 68e56568e7..aab0002e46 100644
--- a/ext/standard/tests/array/array_walk_closure.phpt
+++ b/ext/standard/tests/array/array_walk_closure.phpt
@@ -223,7 +223,7 @@ array(2) {
["args"]=>
array(2) {
[0]=>
- &array(3) {
+ array(3) {
["one"]=>
int(1)
["two"]=>
diff --git a/ext/standard/tests/array/bug79839.phpt b/ext/standard/tests/array/bug79839.phpt
index 901be9c8de..643604cb9b 100644
--- a/ext/standard/tests/array/bug79839.phpt
+++ b/ext/standard/tests/array/bug79839.phpt
@@ -22,5 +22,5 @@ var_dump($test);
Cannot assign array to reference held by property Test::$prop of type int
object(Test)#1 (1) {
["prop"]=>
- &int(42)
+ int(42)
}