mirror of
https://github.com/php/php-src.git
synced 2025-08-17 22:48:57 +02:00
- Add test for bug #45705
This commit is contained in:
parent
4ef68b9627
commit
85d152e233
1 changed files with 20 additions and 0 deletions
20
ext/imap/tests/bug45705.phpt
Normal file
20
ext/imap/tests/bug45705.phpt
Normal file
|
@ -0,0 +1,20 @@
|
|||
--TEST--
|
||||
Bug #45705 (imap_rfc822_parse_adrlist() modifies passed address parameter)
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (!extension_loaded("imap")) {
|
||||
die("skip imap extension not available");
|
||||
}
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
$address = 'John Doe <john@example.com>';
|
||||
var_dump($address);
|
||||
imap_rfc822_parse_adrlist($address, null);
|
||||
var_dump($address);
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
string(27) "John Doe <john@example.com>"
|
||||
string(27) "John Doe <john@example.com>"
|
Loading…
Add table
Add a link
Reference in a new issue