summaryrefslogtreecommitdiff
path: root/ext/imap/tests
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2020-10-15 12:57:13 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2020-10-15 12:57:35 +0200
commitb7c1834c6aafd4f423629cf6719084dd16ba7030 (patch)
treec6bbb45a495f3e2e984c1ccc43e2f07cafa4fd24 /ext/imap/tests
parent15a3eca3efb16d4db092268aeaa6c72ab0cc480c (diff)
parent7899ac4c14b6841d0e86a5003e7f7c6cd823d611 (diff)
downloadphp-git-b7c1834c6aafd4f423629cf6719084dd16ba7030.tar.gz
Merge branch 'PHP-7.4' into PHP-8.0
* PHP-7.4: Fix #80239: imap_rfc822_write_address() leaks memory
Diffstat (limited to 'ext/imap/tests')
-rw-r--r--ext/imap/tests/imap_rfc822_write_address_basic.phpt12
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/imap/tests/imap_rfc822_write_address_basic.phpt b/ext/imap/tests/imap_rfc822_write_address_basic.phpt
new file mode 100644
index 0000000000..92e988c9c9
--- /dev/null
+++ b/ext/imap/tests/imap_rfc822_write_address_basic.phpt
@@ -0,0 +1,12 @@
+--TEST--
+imap_rfc822_write_address() : basic functionality
+--SKIPIF--
+<?php
+if (!extension_loaded('imap')) die('skip imap extension not available');
+?>
+--FILE--
+<?php
+var_dump(imap_rfc822_write_address('me', 'example.com', 'My Name'));
+?>
+--EXPECT--
+string(24) "My Name <me@example.com>"