Home
last modified time | relevance | path

Searched refs:fp (Results 151 – 175 of 926) sorted by relevance

12345678910>>...38

/PHP-7.1/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_delimiter_error.phpt5 $fp = fopen('SplFileObject__fgetcsv3.csv', 'w+');
6 fputcsv($fp, array(
12 fclose($fp);
H A DSplFileObject_fgetcsv_enclosure_error.phpt5 $fp = fopen('SplFileObject__fgetcsv5.csv', 'w+');
6 fputcsv($fp, array(
12 fclose($fp);
H A DSplFileObject_fgetcsv_escape_error.phpt5 $fp = fopen('SplFileObject__fgetcsv8.csv', 'w+');
6 fwrite($fp, '"aaa","b""bb","ccc"');
7 fclose($fp);
/PHP-7.1/ext/standard/tests/file/
H A Dfputcsv_variation15.phpt34 $fp = fopen($file, "w");
36 fputcsv($fp, explode(',', $v), ',', '"', '/');
38 fclose($fp);
47 $fp = fopen($file, "r");
49 while($l=fgetcsv($fp, 0, ',', '"', '/'))
53 fclose($fp);
H A Dglob_basic.phpt20 $fp = fopen("$dirname/wonder12345", "w");
21 fclose($fp);
22 $fp = fopen("$dirname/wonder.txt", "w");
23 fclose($fp);
24 $fp = fopen("$dirname/file.text", "w");
25 fclose($fp);
H A Duserstreams.phpt181 if (!$fp || !is_resource($fp)) {
241 rewind($fp);
251 $upb = ftell($fp);
253 $upa = ftell($fp);
289 if (ftell($fp) != ftell($tf)) {
294 while(!feof($fp)) {
295 $uline = fgets($fp, 1024);
311 rewind($fp);
312 var_dump(ftell($fp));
313 $data = fgets($fp);
[all …]
H A Dbug53848.phpt8 $fp = fopen($file, "r");
9 while ($l = fgetcsv($fp)) var_dump($l);
10 fclose($fp);
H A Dtouch_variation2.phpt10 $fp=fopen($filename,"w");
11 fwrite ($fp,"mydata");
12 fclose($fp);
H A Dfstat.phpt8 $fp = fopen($filename, "w");
9 var_dump(fstat($fp));
10 fclose($fp);
11 var_dump(fstat($fp));
H A Dfstat_error.phpt5 $fp = fopen (__FILE__, 'r');
8 var_dump(fstat( $fp, $extra_arg ) );
11 fclose($fp);
/PHP-7.1/sapi/cli/tests/
H A Dbug61977.phpt22 $fp = fsockopen($host, $port, $errno, $errstr, 0.5);
23 if (!$fp) die('Connect failed');
31 if (fwrite($fp, $header)) {
32 while (!feof($fp)) {
33 $text = fgets($fp);
39 fclose($fp);
/PHP-7.1/ext/standard/tests/streams/
H A Dstream_get_meta_data_file_basic.phpt6 $fp = fopen(__FILE__, "r");
8 var_dump(stream_get_meta_data($fp));
10 fclose($fp);
H A Dbug70198.phpt41 $fp = stream_socket_client($srv_addr, $errno, $errstr, 2);
42 if (!$fp) {
45 stream_set_blocking($fp, 0);
47 while (!feof($fp)) {
50 fclose($fp);
/PHP-7.1/ext/curl/tests/
H A Dbug48203-win32.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/phar/tests/cache_list/files/
H A Dwrite24.phar.inc10 $fp = fopen("phar://" . __FILE__ . "/newname", "w");
11 fwrite($fp, b"hi");
12 fclose($fp);
H A Dphar_test.inc67 $fp = gzopen($fname, 'w');
68 fwrite($fp, $file);
69 fclose($fp);
73 $fp = bzopen($fname, 'w');
74 fwrite($fp, $file);
75 fclose($fp);
/PHP-7.1/ext/spl/internal/
H A Dsplfileobject.inc23 private $fp;
45 if (!$this->fp)
57 return feof($this->fp);
67 $buf = fgets($this->fp, $this->max_len);
129 return fflush($this->fp);
137 return ftell($this->fp);
158 $c = fgetc($this->fp);
169 return fpassthru($this->fp);
196 return fwrite($this->fp, $length);
204 return fstat($this->fp);
[all …]
/PHP-7.1/ext/phar/tests/files/
H A Dphar_test.inc67 $fp = gzopen($fname, 'w');
68 fwrite($fp, $file);
69 fclose($fp);
73 $fp = bzopen($fname, 'w');
74 fwrite($fp, $file);
75 fclose($fp);
/PHP-7.1/ext/fileinfo/libmagic/
H A Dapptype.c52 FILE *fp; in file_os2_apptype() local
68 if ((fp = fopen(path, "wb")) == NULL) { in file_os2_apptype()
72 if (fwrite(buf, 1, nb, fp) != nb) { in file_os2_apptype()
75 (void)fclose(fp); in file_os2_apptype()
78 (void)fclose(fp); in file_os2_apptype()
/PHP-7.1/ext/bz2/tests/
H A Dbug72447.phpt10 $fp = fopen('testfile', 'w');
11 stream_filter_append($fp, 'bzip2.compress', STREAM_FILTER_WRITE, $param);
12 fclose($fp);
/PHP-7.1/ext/xmlwriter/tests/
H A Dxmlwriter_set_indent_string_basic_001.phpt8 $fp = fopen($temp_filename, "w");
9 fwrite ($fp, "Hi");
10 fclose($fp);
/PHP-7.1/ext/pdo_mysql/tests/
H A Dpdo_mysql_stmt_blobfromsteam.phpt14 $fp = fopen($file, 'w');
15 if (!$fp)
18 if (4 != fwrite($fp, 'test')) {
21 fclose($fp);
42 $fp = fopen($file, 'w');
43 if (!$fp || !fwrite($fp, $blob)) {
48 fclose($fp);
64 $fp = fopen($file, 'r');
65 if (!$fp) {
73 if (true !== ($tmp = $stmt->bindParam(2, $fp, PDO::PARAM_LOB))) {
/PHP-7.1/ext/zlib/tests/
H A Dbug_40189.phpt13 $fp = fopen('data://text/plain;base64,AwCFRi98wqppK23l2/7kIY8AlyEdAgAAAEdCTUI=', 'r');
14 stream_filter_append($fp, 'zlib.inflate', STREAM_FILTER_READ);
15 var_dump(stream_copy_to_stream($fp, $gp, 5));
16 fclose($fp);

Completed in 191 milliseconds

12345678910>>...38