Home
last modified time | relevance | path

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

12345678910>>...38

/PHP-7.1/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.1/Zend/tests/
H A Dhalt02.phpt6 $fp = fopen(__FILE__, "r");
7 fseek($fp, __COMPILER_HALT_OFFSET__+1);
8 print fread($fp, 1000);
/PHP-7.1/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.1/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.1/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.1/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.1/ext/standard/tests/file/
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.1/ext/openssl/tests/
H A Dbug74159.phpt80 $fp = stream_socket_client($serverUri, $errno, $errstr, 1, $clientFlags, $clientCtx);
82 stream_set_blocking($fp, false);
83 … while (0 === ($n = stream_socket_enable_crypto($fp, true, STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT)));
89 $written = streamWrite($fp, $data);
92 waitForWrite($fp);
96 while(waitForRead($fp)) {
97 streamRead($fp);
98 if (feof($fp)) {
/PHP-7.1/ext/standard/tests/image/
H A Diptcembed_001.phpt7 $fp = fopen($file, "w");
8 fwrite($fp, "-1-1");
9 fclose($fp);
/PHP-7.1/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.1/ext/phar/tests/cache_list/files/
H A Dwrite24.phar4 $fp = fopen("phar://" . __FILE__ . "/newname", "w");
5 fwrite($fp, b"hi");
6 fclose($fp);
/PHP-7.1/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.1/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.1/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);
/PHP-7.1/ext/spl/tests/
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 31 milliseconds

12345678910>>...38