Home
last modified time | relevance | path

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

12345678910>>...37

/PHP-7.2/ext/standard/tests/file/
H A Dbug38450_1.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 Dfgetss1.phpt20 $fp = fopen($filename, "r");
21 var_dump(fgetss($fp, 1000, "<i>,<b>,<a>"));
22 var_dump(fgetss($fp));
27 $fp = fopen($filename, "r");
28 var_dump(fgetss($fp, 10));
29 var_dump(fgetss($fp, 10, "<script>,<a>"));
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 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 Dbug40374.phpt8 $fp = fopen($file, "wt");
9 fwrite($fp, "test");
10 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 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);
H A Dbug22382.phpt5 $fp = fopen(dirname(__FILE__)."/test2.csv", "r");
6 while(($line = fgetcsv($fp, 1024))) {
9 fclose($fp);
/PHP-7.2/ext/hash/tests/
H A Dhash_update_stream.phpt14 $fp = tmpfile();
15 fwrite($fp, 'The quick brown fox jumped over the lazy dog.');
16 rewind($fp);
19 hash_update_stream($ctx, $fp);
/PHP-7.2/Zend/tests/
H A Dhalt02.phpt6 $fp = fopen(__FILE__, "r");
7 fseek($fp, __COMPILER_HALT_OFFSET__+1);
8 print fread($fp, 1000);
/PHP-7.2/sapi/cli/tests/
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.2/ext/curl/tests/
H A Dbug45161.phpt21 $fp = fopen('/dev/null', 'w');
27 curl_setopt($ch, CURLOPT_FILE, $fp);
36 curl_setopt($ch, CURLOPT_FILE, $fp);
45 fclose($fp);
46 unset($fp);
H A Dbug48203.phpt13 $fp = fopen(dirname(__FILE__) . '/bug48203.tmp', 'w');
18 curl_setopt($ch, CURLOPT_STDERR, $fp);
21 fclose($fp); // <-- premature close of $fp caused a crash!
/PHP-7.2/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.2/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.2/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.2/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.2/ext/standard/tests/image/
H A Diptcembed_001.phpt7 $fp = fopen($file, "w");
8 fwrite($fp, "-1-1");
9 fclose($fp);
/PHP-7.2/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.2/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.2/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.2/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.2/ext/ftp/tests/
H A Dftp_nb_get_large.phpt24 $fp = fopen($local_file, 'r');
25 fseek($fp, 5368709119);
26 var_dump(fread($fp, 1));
28 fclose($fp);
/PHP-7.2/ext/standard/tests/dir/
H A Dclosedir_variation3.phpt18 var_dump($fp = fopen(__FILE__, 'r'));
21 var_dump(closedir($fp));
24 var_dump($fp);
26 if(is_resource($fp)) {
27 fclose($fp);

Completed in 36 milliseconds

12345678910>>...37