Annotation of embedaddon/php/ext/imap/tests/bug45705_1.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #45705 test #1 (imap rfc822_parse_adrlist() modifies passed address parameter)
                      3: --SKIPIF--
                      4: <?php
                      5:        if (!extension_loaded("imap")) { 
                      6:                die("skip imap extension not available");  
                      7:        }
                      8: ?>
                      9: --FILE--
                     10: <?php
                     11: 
                     12: $address = 'John Doe <john@example.com>';
                     13: var_dump($address);
                     14: imap_rfc822_parse_adrlist($address, null);
                     15: var_dump($address);
                     16: 
                     17: ?>
                     18: --EXPECT--
                     19: string(27) "John Doe <john@example.com>"
                     20: string(27) "John Doe <john@example.com>"

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>