SHELL BYPASS 403 |
Modern UI. Responsive. Powerful.

Faizzz-Chin Shell

: /opt/alt/php52/usr/share/pear/test/Mail/tests/ [ drwxr-xr-x ]
Uname\Kernel: Linux server234.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
Server: LiteSpeed
PHP Version: 8.3.30 [ PHP INFO ]
Operating System: Linux
Server Ip: 172.67.152.218
Your Ip: 216.73.217.61
Date Time: 2026-05-10 05:09:15
User: repauqkb (12019) | Group: repauqkb (11967)
Safe Mode: OFF
Disable Function: NONE

name : 9137.phpt
--TEST--
Mail: Test for bug #9137
--FILE--
<?php

require_once dirname(__FILE__) . '/../Mail/RFC822.php';
require_once 'PEAR.php';

$addresses = array(
    array('name' => 'John Doe', 'email' => '[email protected]'),
    array('name' => 'John Doe\\', 'email' => '[email protected]'),
    array('name' => 'John "Doe', 'email' => '[email protected]'),
    array('name' => 'John "Doe\\', 'email' => '[email protected]'),
);

for ($i = 0; $i < count($addresses); $i++) {
    // construct the address
    $address = "\"" . addslashes($addresses[$i]['name']) . "\" ".
        "<".$addresses[$i]['email'].">";

    $parsedAddresses = Mail_RFC822::parseAddressList($address);
    if (is_a($parsedAddresses, 'PEAR_Error')) {
        echo $address." :: Failed to validate\n";
    } else {
        echo $address." :: Parsed\n";
    }
}

--EXPECT--
"John Doe" <[email protected]> :: Parsed
"John Doe\\" <[email protected]> :: Parsed
"John \"Doe" <[email protected]> :: Parsed
"John \"Doe\\" <[email protected]> :: Parsed
© 2026 Faizzz-Chin