/PHP-7.2/ext/spl/tests/ |
H A D | SplFileObject_fgetcsv_basic.phpt | 5 $fp = fopen('SplFileObject__fgetcsv1.csv', 'w+'); 6 fputcsv($fp, array( 12 fclose($fp);
|
H A D | SplFileObject_fgetcsv_delimiter_basic.phpt | 5 $fp = fopen('SplFileObject__fgetcsv2.csv', 'w+'); 6 fputcsv($fp, array( 12 fclose($fp);
|
H A D | SplFileObject_fgetcsv_enclosure_basic.phpt | 5 $fp = fopen('SplFileObject__fgetcsv4.csv', 'w+'); 6 fputcsv($fp, array( 12 fclose($fp);
|
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_escape_error.phpt | 5 $fp = fopen('SplFileObject__fgetcsv8.csv', 'w+'); 6 fwrite($fp, '"aaa","b""bb","ccc"'); 7 fclose($fp);
|
H A D | SplFileObject_fgetcsv_enclosure_error.phpt | 5 $fp = fopen('SplFileObject__fgetcsv5.csv', 'w+'); 6 fputcsv($fp, array( 12 fclose($fp);
|
/PHP-7.2/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.2/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);
|
/PHP-7.2/ext/openssl/tests/ |
H A D | bug74159.phpt | 85 $fp = stream_socket_client($serverUri, $errno, $errstr, 1, $clientFlags, $clientCtx); 87 stream_set_blocking($fp, false); 88 … while (0 === ($n = stream_socket_enable_crypto($fp, true, STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT))); 94 $written = streamWrite($fp, $data); 97 waitForWrite($fp); 101 while(waitForRead($fp)) { 102 streamRead($fp); 103 if (feof($fp)) {
|
/PHP-7.2/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.2/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.2/ext/phar/tests/cache_list/files/ |
H A D | write24.phar.inc | 10 $fp = fopen("phar://" . __FILE__ . "/newname", "w"); 11 fwrite($fp, "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.2/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.2/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.2/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.2/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.2/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);
|