Home
last modified time | relevance | path

Searched refs:addFromString (Results 1 – 25 of 47) sorted by relevance

12

/PHP-8.1/ext/phar/tests/bug64931/
H A Dbug64931.phpt22 $phar->addFromString(".phar", "gotcha");
28 $phar->addFromString(".phar//", "gotcha");
34 $phar->addFromString(".phar\\", "gotcha");
40 $phar->addFromString(".phar\0", "gotcha");
56 CAUGHT: Phar::addFromString(): Argument #1 ($localName) must not contain any null bytes
/PHP-8.1/ext/zip/tests/
H A Doo_setcomment.phpt18 $zip->addFromString('entry1.txt', 'entry #1');
19 $zip->addFromString('entry2.txt', 'entry #2');
20 $zip->addFromString('dir/entry2d.txt', 'entry #2');
21 $zip->addFromString('entry4.txt', 'entry #1');
23 $zip->addFromString('entry5.txt', 'entry #2');
H A Doo_add_from_string.phpt2 ziparchive::addFromString and FL_OVERWRITE
25 var_dump($zip->addFromString('bar', __FILE__));
28 var_dump($zip->addFromString('entry1.txt', __FILE__, 0));
31 var_dump($zip->addFromString('entry1.txt', __FILE__, ZipArchive::FL_OVERWRITE));
H A Doo_add_encoding.phpt26 $zip->addFromString('bar', __FILE__);
27 $zip->addFromString(chr(0x91), __FILE__, ZipArchive::FL_ENC_CP437);
28 $zip->addFromString('€', __FILE__, ZipArchive::FL_ENC_UTF_8);
H A Doo_getnameindex.phpt18 $zip->addFromString('entry1.txt', 'entry #1');
19 $zip->addFromString('entry2.txt', 'entry #2');
20 $zip->addFromString('dir/entry2d.txt', 'entry #2');
H A Doo_namelocate.phpt18 $zip->addFromString('entry1.txt', 'entry #1');
19 $zip->addFromString('entry2.txt', 'entry #2');
20 $zip->addFromString('dir/entry2d.txt', 'entry #2');
H A Doo_setcompression.phpt19 $zip->addFromString('entry1.txt', $txt);
20 $zip->addFromString('entry2.txt', $txt);
21 $zip->addFromString('dir/entry3.txt', $txt);
22 $zip->addFromString('entry4.txt', $txt);
23 $zip->addFromString('entry5.txt', $txt);
24 $zip->addFromString('entry6.txt', $txt);
25 $zip->addFromString('entry7.txt', $txt);
H A Doo_rename.phpt18 $zip->addFromString('entry1.txt', 'entry #1');
19 $zip->addFromString('entry2.txt', 'entry #2');
20 $zip->addFromString('dir/entry2.txt', 'entry #2');
H A Doo_delete.phpt17 $zip->addFromString('entry1.txt', 'entry #1');
18 $zip->addFromString('entry2.txt', 'entry #2');
19 $zip->addFromString('dir/entry2.txt', 'entry #2');
H A Dbug80863.phpt11 $zip->addFromString("file1.txt", "contents");
12 $zip->addFromString("file2.txt", "contents");
H A Dbug47667.phpt14 $zip->addFromString('foo.txt', 'foo bar foobar');
23 $zip->addFromString("foo_{$i}.txt", 'foo bar foobar');
H A Doo_setcomment_error.phpt16 $zip->addFromString('entry1.txt', 'entry #1');
17 $zip->addFromString('entry2.txt', 'entry #2');
H A Doo_setmtime.phpt25 $zip->addFromString('foo', 'entry #1');
26 $zip->addFromString('bar', 'entry #2');
H A Doo_externalattributes.phpt13 $zip->addFromString('foo.txt', 'foo');
14 $zip->addFromString('bar.txt', 'bar');
H A Dbug80833.phpt13 $create_zip->addFromString("test.txt", "This is a test string.");
15 $create_zip->addFromString("test2.txt", "This is another test string.");
H A Doo_encryption.phpt19 $zip->addFromString('foo.txt', 'foo');
21 $zip->addFromString('bar.txt', 'bar');
H A Dbug8009.phpt17 $zip->addFromString("2.txt", "=)");
H A Dbug81490.phpt11 $zip->addFromString("", "yada yada");
/PHP-8.1/ext/zip/examples/
H A Dset_compression.php14 $zip->addFromString("testfilephp.txt", "#1 This is a test string added as testfilephp.txt.\n");
15 $zip->addFromString("testfilephp2.txt", "#2 This is a test string added as testfilephp2.txt.\n");
H A Dcreate.php17 $zip->addFromString("testfilephp.txt" . time(), "#1 This is a test string added as testfilephp.txt.…
18 $zip->addFromString("testfilephp2.txt" . time(), "#2 This is a test string added as testfilephp2.tx…
/PHP-8.1/ext/phar/tests/
H A Dbug73809.phpt11 $zip->addFromString('73809.txt', 'yada yada');
12 $zip->addFromString('.phar/signature.bin', str_repeat('*', 64 * 1024 + 1));
H A DGHSA-jqcx-ccgc-xwhv.phpt11 $phar->addFromString(str_repeat('A', PHP_MAXPATHLEN - 1), 'This is the content of file 1.');
12 $phar->addFromString(str_repeat('B', PHP_MAXPATHLEN - 1).'C', 'This is the content of file 2.');
H A Daddfuncs.phpt2 Phar: addFile/addFromString
12 $phar->addFromString('a', 'hi');
37 $phar->addFromString('.phar/stub.php', 'hi');
H A Dbug70091.phpt9 $phar->addFromString('föö', '');
10 $phar->addFromString('foo', '');
/PHP-8.1/ext/phar/tests/zip/files/
H A Dzipmaker.php.inc33 $this->zip->addFromString($path, stream_get_contents($fileOrStream));
35 $this->zip->addFromString($path, $fileOrStream);

Completed in 27 milliseconds

12