Home
last modified time | relevance | path

Searched refs:fp (Results 126 – 150 of 902) sorted by relevance

12345678910>>...37

/PHP-7.3/sapi/cli/tests/
H A Dupload_2G.phpt44 $fp = fsockopen($host, $port, $errno, $errstr, 0.5);
45 if (!$fp) {
55 fwrite($fp, <<<EOF
67 fwrite($fp, $data) or die("write failed @ ($i)");
70 fwrite($fp, $post) or die("write post failed");
72 while (!feof($fp)) {
73 $output .= fgets($fp);
76 fclose($fp);
H A Dphp_cli_server_004.phpt17 $fp = fsockopen($host, $port, $errno, $errstr, 0.5);
18 if (!$fp) {
22 if(fwrite($fp, <<<HEADER
32 while (!feof($fp)) {
33 echo fgets($fp);
H A Dphp_cli_server_005.phpt15 $fp = fsockopen($host, $port, $errno, $errstr, 0.5);
16 if (!$fp) {
34 if(fwrite($fp, <<<HEADER
44 while (!feof($fp)) {
45 echo fgets($fp);
/PHP-7.3/ext/phar/
H A Dphar_internal.h242 php_stream *fp; member
292 php_stream *fp; member
326 php_stream *fp; member
334 return entry->phar->fp; in phar_get_entrypfp()
350 entry->phar->fp = fp; in phar_set_entrypfp()
354 PHAR_G(cached_fp)[entry->phar->phar_pos].fp = fp; in phar_set_entrypfp()
360 entry->phar->ufp = fp; in phar_set_entrypufp()
370 return phar->fp; in phar_get_pharfp()
386 phar->fp = fp; in phar_set_pharfp()
390 PHAR_G(cached_fp)[phar->phar_pos].fp = fp; in phar_set_pharfp()
[all …]
/PHP-7.3/ext/zlib/tests/
H A Dzlib_filter_deflate2.phpt9 $fp = fopen('php://stdout', 'w');
10 stream_filter_append($fp, 'zlib.deflate', STREAM_FILTER_WRITE, array('level' => 9));
11 fwrite($fp, $text);
12 fclose($fp);
/PHP-7.3/ext/fileinfo/tests/
H A Dfinfo_file_stream_001.phpt9 $fp = finfo_open(FILEINFO_MIME_TYPE);
18 finfo_file($fp, $zip),
19 finfo_file($fp, $dir),
20 finfo_file($fp, $png)
/PHP-7.3/ext/standard/tests/filters/
H A Dbug79468.phpt10 $fp = fopen('php://temp', 'rb');
11 $rot13_filter = stream_filter_append($fp, "string.rot13", STREAM_FILTER_WRITE);
12 fwrite($fp, "This is ");
13 fclose($fp);
/PHP-7.3/ext/standard/tests/file/
H A Dbug38450_2.phpt89 $fp = fopen("var://myvar", "r+");
91 fwrite($fp, "line1\n");
92 fwrite($fp, "line2\n");
93 fwrite($fp, "line3\n");
95 rewind($fp);
96 while (!feof($fp)) {
97 echo fgets($fp);
99 fclose($fp);
H A Dbug38450_3.phpt89 $fp = fopen("var://myvar", "r+");
91 fwrite($fp, "line1\n");
92 fwrite($fp, "line2\n");
93 fwrite($fp, "line3\n");
95 rewind($fp);
96 while (!feof($fp)) {
97 echo fgets($fp);
99 fclose($fp);
H A Dbug40374.phpt8 $fp = fopen($file, "wt");
9 fwrite($fp, "test");
10 fclose($fp);
H A Dfgetss1.phpt21 $fp = fopen($filename, "r");
22 var_dump(fgetss($fp, 1000, "<i>,<b>,<a>"));
23 var_dump(fgetss($fp));
28 $fp = fopen($filename, "r");
29 var_dump(fgetss($fp, 10));
30 var_dump(fgetss($fp, 10, "<script>,<a>"));
H A Dfputcsv.phpt32 $fp = fopen($file, "w");
34 fputcsv($fp, explode(',', $v));
36 fclose($fp);
45 $fp = fopen($file, "r");
47 while($l=fgetcsv($fp))
51 fclose($fp);
H A Dbug22382.phpt5 $fp = fopen(dirname(__FILE__)."/test2.csv", "r");
6 while(($line = fgetcsv($fp, 1024))) {
9 fclose($fp);
H A Dunlink_basic.phpt13 $fp = fopen($filename, "w"); // create file
14 fwrite($fp, "Hello World");
15 fclose($fp);
26 $fp = fopen($filename, "w"); // create file
27 fclose($fp);
/PHP-7.3/ext/openssl/tests/
H A Dbug77390.phpt21 …$fp = stream_socket_client("ssl://127.0.0.1:10012", $errornum, $errorstr, 3000, STREAM_CLIENT_CONN…
22 stream_set_blocking($fp, false);
24 $read = [$fp];
29 $chunk = stream_get_contents($fp, 4096);
59 $fp = stream_socket_server("ssl://127.0.0.1:10011", $errornum, $errorstr, $flags, $context);
62 $conn = stream_socket_accept($fp);
87 foreach ($read as $fp) {
88 $data = stream_get_contents($fp);
89 if ($fp === $conn) {
/PHP-7.3/ext/standard/tests/image/
H A Diptcembed_001.phpt7 $fp = fopen($file, "w");
8 fwrite($fp, "-1-1");
9 fclose($fp);
/PHP-7.3/ext/exif/tests/
H A Dexif_thumbnail_streams.phpt10 $fp = fopen(__DIR__ . '/sony.jpg', 'rb');
12 var_dump(strlen(exif_thumbnail($fp)));
14 fclose($fp);
/PHP-7.3/ext/standard/tests/general_functions/
H A D004.phpt6 $fp=fopen("004.data","r");
7 while($a=fgetcsv($fp,100,"\t")) {
10 fclose($fp);
/PHP-7.3/ext/standard/tests/strings/
H A Dvfprintf_basic1.phpt24 if (!($fp = fopen($data_file, 'wt')))
27 $result = vfprintf($fp, $format1, $arg1);
29 $result = vfprintf($fp, $format2, $arg2);
31 $result = vfprintf($fp, $format3, $arg3);
34 fclose($fp);
/PHP-7.3/ext/phar/tests/cache_list/files/
H A Dwrite24.phar4 $fp = fopen("phar://" . __FILE__ . "/newname", "w");
5 fwrite($fp, "hi");
6 fclose($fp);
/PHP-7.3/ext/spl/tests/
H A DSplFileObject_fgetcsv_escape_basic.phpt5 $fp = fopen('SplFileObject__fgetcsv6.csv', 'w+');
6 fwrite($fp, '"aaa","b""bb","ccc"');
7 fclose($fp);
H A DSplFileObject_fgetcsv_escape_default.phpt5 $fp = fopen('SplFileObject__fgetcsv7.csv', 'w+');
6 fwrite($fp, '"aa\"","bb","\"c"');
7 fclose($fp);
H A DSplFileObject_fgetcsv_basic.phpt5 $fp = fopen('SplFileObject__fgetcsv1.csv', 'w+');
6 fputcsv($fp, array(
12 fclose($fp);
H A DSplFileObject_fgetcsv_delimiter_basic.phpt5 $fp = fopen('SplFileObject__fgetcsv2.csv', 'w+');
6 fputcsv($fp, array(
12 fclose($fp);
H A DSplFileObject_fgetcsv_enclosure_basic.phpt5 $fp = fopen('SplFileObject__fgetcsv4.csv', 'w+');
6 fputcsv($fp, array(
12 fclose($fp);

Completed in 25 milliseconds

12345678910>>...37