Lines Matching refs:txt
18 $zip->addFromString('foo.txt', 'foo');
20 $zip->addFromString('bar.txt', 'bar');
21 var_dump($zip->setEncryptionName('bar.txt', 9999, $pass)); // Fails
22 var_dump($zip->setEncryptionName('bar.txt', ZipArchive::EM_AES_256, $pass));
27 $s = $zip->statName('foo.txt');
29 $s = $zip->statName('bar.txt');
31 var_dump($zip->getFromName('foo.txt')); // Clear, ok
32 var_dump($zip->getFromName('bar.txt')); // Encrypted, fails
34 var_dump($zip->getFromName('bar.txt')); // Ecnrypted, ok
38 var_dump(file_get_contents("zip://$name#foo.txt")); // Clear, ok
39 var_dump(file_get_contents("zip://$name#bar.txt")); // Encrypted, fails
41 var_dump(file_get_contents("zip://$name#bar.txt", false, $ctx)); // Ecnrypted, ok