/PHP-7.1/ext/spl/tests/ |
H A D | SplFileObject_fgetcsv_escape_basic.phpt | 5 $fp = fopen('SplFileObject__fgetcsv6.csv', 'w+'); 6 fwrite($fp, '"aaa","b""bb","ccc"'); 7 fclose($fp);
|
H A D | SplFileObject_fgetcsv_escape_default.phpt | 5 $fp = fopen('SplFileObject__fgetcsv7.csv', 'w+'); 6 fwrite($fp, '"aa\"","bb","\"c"'); 7 fclose($fp);
|
H A D | SplFileObject_fgetcsv_delimiter_error.phpt | 5 $fp = fopen('SplFileObject__fgetcsv3.csv', 'w+'); 6 fputcsv($fp, array( 12 fclose($fp);
|
H A D | SplFileObject_fgetcsv_enclosure_error.phpt | 5 $fp = fopen('SplFileObject__fgetcsv5.csv', 'w+'); 6 fputcsv($fp, array( 12 fclose($fp);
|
H A D | SplFileObject_fgetcsv_escape_error.phpt | 5 $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 D | fputcsv_variation15.phpt | 34 $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 D | glob_basic.phpt | 20 $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 D | userstreams.phpt | 181 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 D | bug53848.phpt | 8 $fp = fopen($file, "r"); 9 while ($l = fgetcsv($fp)) var_dump($l); 10 fclose($fp);
|
H A D | touch_variation2.phpt | 10 $fp=fopen($filename,"w"); 11 fwrite ($fp,"mydata"); 12 fclose($fp);
|
H A D | fstat.phpt | 8 $fp = fopen($filename, "w"); 9 var_dump(fstat($fp)); 10 fclose($fp); 11 var_dump(fstat($fp));
|
H A D | fstat_error.phpt | 5 $fp = fopen (__FILE__, 'r'); 8 var_dump(fstat( $fp, $extra_arg ) ); 11 fclose($fp);
|
/PHP-7.1/sapi/cli/tests/ |
H A D | bug61977.phpt | 22 $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 D | stream_get_meta_data_file_basic.phpt | 6 $fp = fopen(__FILE__, "r"); 8 var_dump(stream_get_meta_data($fp)); 10 fclose($fp);
|
H A D | bug70198.phpt | 41 $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 D | bug48203-win32.phpt | 13 $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 D | write24.phar.inc | 10 $fp = fopen("phar://" . __FILE__ . "/newname", "w"); 11 fwrite($fp, b"hi"); 12 fclose($fp);
|
H A D | phar_test.inc | 67 $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 D | splfileobject.inc | 23 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 D | phar_test.inc | 67 $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 D | apptype.c | 52 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 D | bug72447.phpt | 10 $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 D | xmlwriter_set_indent_string_basic_001.phpt | 8 $fp = fopen($temp_filename, "w"); 9 fwrite ($fp, "Hi"); 10 fclose($fp);
|
/PHP-7.1/ext/pdo_mysql/tests/ |
H A D | pdo_mysql_stmt_blobfromsteam.phpt | 14 $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 D | bug_40189.phpt | 13 $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);
|