summaryrefslogtreecommitdiff
path: root/ext/imap/tests
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2020-10-10 19:17:59 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2020-10-10 19:18:14 +0200
commitb2b9e2e87e780d814ffc6ceeaf1b546a14e76799 (patch)
tree74bd9112cd48f30b89cd9947f23529dfe0a0b24f /ext/imap/tests
parent82e5752b0bae23410d79ed681c96f48993d1ecb4 (diff)
parent8bee0fbd37c8eee0a17abe4a0afd69ad9ac7105a (diff)
downloadphp-git-b2b9e2e87e780d814ffc6ceeaf1b546a14e76799.tar.gz
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3: Fix #80213: imap_mail_compose() segfaults on certain $bodies
Diffstat (limited to 'ext/imap/tests')
-rw-r--r--ext/imap/tests/bug80213.phpt21
1 files changed, 21 insertions, 0 deletions
diff --git a/ext/imap/tests/bug80213.phpt b/ext/imap/tests/bug80213.phpt
new file mode 100644
index 0000000000..9a7961df77
--- /dev/null
+++ b/ext/imap/tests/bug80213.phpt
@@ -0,0 +1,21 @@
+--TEST--
+Bug #80213 (imap_mail_compose() segfaults on certain $bodies)
+--SKIPIF--
+<?php
+if (!extension_loaded('imap')) die('skip imap extension not available');
+?>
+--FILE--
+<?php
+$envelope = [];
+$body = [[
+ 'type.parameters' => ['param'],
+ 'disposition' => ['disp'],
+], [
+ 'type.parameters' => ['param'],
+ 'disposition' => ['disp'],
+]];
+imap_mail_compose($envelope, $body);
+echo "done\n";
+?>
+--EXPECT--
+done