Home
last modified time | relevance | path

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

12

/PHP-8.0/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.0/ext/zip/tests/
H A Doo_setcomment.phpt20 $zip->addFromString('entry1.txt', 'entry #1');
21 $zip->addFromString('entry2.txt', 'entry #2');
22 $zip->addFromString('dir/entry2d.txt', 'entry #2');
23 $zip->addFromString('entry4.txt', 'entry #1');
25 $zip->addFromString('entry5.txt', 'entry #2');
H A Doo_add_from_string.phpt2 ziparchive::addFromString and FL_OVERWRITE
24 var_dump($zip->addFromString('bar', __FILE__));
27 var_dump($zip->addFromString('entry1.txt', __FILE__, 0));
30 var_dump($zip->addFromString('entry1.txt', __FILE__, ZipArchive::FL_OVERWRITE));
H A Doo_add_encoding.phpt25 $zip->addFromString('bar', __FILE__);
26 $zip->addFromString(chr(0x91), __FILE__, ZipArchive::FL_ENC_CP437);
27 $zip->addFromString('€', __FILE__, ZipArchive::FL_ENC_UTF_8);
H A Doo_getnameindex.phpt20 $zip->addFromString('entry1.txt', 'entry #1');
21 $zip->addFromString('entry2.txt', 'entry #2');
22 $zip->addFromString('dir/entry2d.txt', 'entry #2');
H A Doo_namelocate.phpt20 $zip->addFromString('entry1.txt', 'entry #1');
21 $zip->addFromString('entry2.txt', 'entry #2');
22 $zip->addFromString('dir/entry2d.txt', 'entry #2');
H A Doo_rename.phpt20 $zip->addFromString('entry1.txt', 'entry #1');
21 $zip->addFromString('entry2.txt', 'entry #2');
22 $zip->addFromString('dir/entry2.txt', 'entry #2');
H A Doo_setcompression.phpt21 $zip->addFromString('entry1.txt', $txt);
22 $zip->addFromString('entry2.txt', $txt);
23 $zip->addFromString('dir/entry3.txt', $txt);
24 $zip->addFromString('entry4.txt', $txt);
25 $zip->addFromString('entry5.txt', $txt);
26 $zip->addFromString('entry6.txt', $txt);
27 $zip->addFromString('entry7.txt', $txt);
H A Doo_delete.phpt19 $zip->addFromString('entry1.txt', 'entry #1');
20 $zip->addFromString('entry2.txt', 'entry #2');
21 $zip->addFromString('dir/entry2.txt', 'entry #2');
H A Dbug47667.phpt16 $zip->addFromString('foo.txt', 'foo bar foobar');
25 $zip->addFromString("foo_{$i}.txt", 'foo bar foobar');
H A Dbug80863.phpt13 $zip->addFromString("file1.txt", "contents");
14 $zip->addFromString("file2.txt", "contents");
H A Doo_setcomment_error.phpt18 $zip->addFromString('entry1.txt', 'entry #1');
19 $zip->addFromString('entry2.txt', 'entry #2');
H A Doo_setmtime.phpt24 $zip->addFromString('foo', 'entry #1');
25 $zip->addFromString('bar', 'entry #2');
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 Dbug81490.phpt11 $zip->addFromString("", "yada yada");
H A Doo_encryption.phpt18 $zip->addFromString('foo.txt', 'foo');
20 $zip->addFromString('bar.txt', 'bar');
H A Doo_externalattributes.phpt15 $zip->addFromString('foo.txt', 'foo');
16 $zip->addFromString('bar.txt', 'bar');
H A Dbug8009.phpt19 $zip->addFromString("2.txt", "=)");
/PHP-8.0/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.0/ext/phar/tests/
H A Dbug73809.phpt13 $zip->addFromString('73809.txt', 'yada yada');
14 $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.phpt11 $phar->addFromString('föö', '');
12 $phar->addFromString('foo', '');
/PHP-8.0/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 26 milliseconds

12