summaryrefslogtreecommitdiff
path: root/ext/standard/tests
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2019-11-27 09:34:57 +0100
committerChristoph M. Becker <cmbecker69@gmx.de>2019-11-27 09:34:57 +0100
commitb6e79f3724772e0a6e3729314bc659f673244d03 (patch)
tree2d6b20d11ff7d058ab9fbc91079fb58a88548eef /ext/standard/tests
parentb046a8f7f8e1e68b217021fa3179f4a62788e818 (diff)
parent30aa2e8932adf090776ac814dd78bf008b265625 (diff)
downloadphp-git-b6e79f3724772e0a6e3729314bc659f673244d03.tar.gz
Merge branch 'PHP-7.4'
* PHP-7.4: Fix #78840: imploding $GLOBALS crashes
Diffstat (limited to 'ext/standard/tests')
-rw-r--r--ext/standard/tests/strings/bug78840.phpt10
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/standard/tests/strings/bug78840.phpt b/ext/standard/tests/strings/bug78840.phpt
new file mode 100644
index 0000000000..b9e1a84a76
--- /dev/null
+++ b/ext/standard/tests/strings/bug78840.phpt
@@ -0,0 +1,10 @@
+--TEST--
+Bug #78840 (imploding $GLOBALS crashes)
+--FILE--
+<?php
+$glue = '';
+@implode($glue, $GLOBALS);
+echo "done\n";
+?>
+--EXPECT--
+done