/PHP-8.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 | bug22382.phpt | 5 $fp = fopen(__DIR__."/test2.csv", "r"); 6 while(($line = fgetcsv($fp, 1024))) { 9 fclose($fp);
|
H A D | fgets_error.phpt | 7 $fp = fopen(__FILE__, "r"); 13 var_dump( fgets($fp, $len) ); 20 var_dump( fgets($fp, $len) ); 25 var_dump( fgets($fp, $len) ); // return length - 1 always, expect false
|
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 | userstreams.phpt | 184 if (!$fp || !is_resource($fp)) { 244 rewind($fp); 254 $upb = ftell($fp); 256 $upa = ftell($fp); 292 if (ftell($fp) != ftell($tf)) { 297 while(!feof($fp)) { 298 $uline = fgets($fp, 1024); 314 rewind($fp); 315 var_dump(ftell($fp)); 316 $data = fgets($fp); [all …]
|
/PHP-8.2/ext/pdo_mysql/tests/ |
H A D | pdo_mysql___construct_uri.phpt | 23 if ($fp = @fopen($file, 'w')) { 24 fwrite($fp, $dsn); 25 fclose($fp); 39 if ($fp = @fopen($file, 'w')) { 40 fwrite($fp, $dsn . chr(0) . ';host=nonsense;unix_socket=nonsense'); 41 fclose($fp);
|
/PHP-8.2/sapi/cli/tests/ |
H A D | php_cli_server_007.phpt | 13 $fp = php_cli_server_connect(); 15 if(fwrite($fp, <<<HEADER 23 while (!feof($fp)) { 24 echo fgets($fp);
|
H A D | bug73630.phpt | 19 $fp = php_cli_server_connect(); 23 if (fwrite($fp, <<<HEADER 30 while (!feof($fp)) { 31 echo fgets($fp);
|
H A D | php_cli_server_004.phpt | 15 $fp = php_cli_server_connect(); 17 if(fwrite($fp, <<<HEADER 27 while (!feof($fp)) { 28 echo fgets($fp);
|
/PHP-8.2/ext/curl/tests/ |
H A D | bug48203.phpt | 8 $fp = fopen(__DIR__ . '/bug48203.tmp', 'w'); 13 curl_setopt($ch, CURLOPT_STDERR, $fp); 16 fclose($fp); // <-- premature close of $fp caused a crash!
|
/PHP-8.2/ext/standard/tests/general_functions/ |
H A D | 004.phpt | 6 $fp=fopen("004.data","r"); 7 while($a=fgetcsv($fp,100,"\t")) { 10 fclose($fp);
|
/PHP-8.2/ext/phar/tests/cache_list/files/ |
H A D | write24.phar | 4 $fp = fopen("phar://" . __FILE__ . "/newname", "w"); 5 fwrite($fp, "hi"); 6 fclose($fp);
|
H A D | phar_test.inc | 65 $fp = gzopen($fname, 'w'); 66 fwrite($fp, $file); 67 fclose($fp); 71 $fp = bzopen($fname, 'w'); 72 fwrite($fp, $file); 73 fclose($fp);
|
H A D | write24.phar.inc | 10 $fp = fopen("phar://" . __FILE__ . "/newname", "w"); 11 fwrite($fp, "hi"); 12 fclose($fp);
|
/PHP-8.2/ext/ftp/tests/ |
H A D | ftp_nb_get_large.phpt | 26 $fp = fopen($local_file, 'r'); 27 fseek($fp, 5368709119); 28 var_dump(fread($fp, 1)); 30 fclose($fp);
|
/PHP-8.2/ext/spl/tests/SplFileObject/ |
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);
|
/PHP-8.2/ext/phar/tests/files/ |
H A D | phar_test.inc | 65 $fp = gzopen($fname, 'w'); 66 fwrite($fp, $file); 67 fclose($fp); 71 $fp = bzopen($fname, 'w'); 72 fwrite($fp, $file); 73 fclose($fp);
|
/PHP-8.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);
|
/PHP-8.2/ext/openssl/tests/ |
H A D | bug74159.phpt | 86 $fp = stream_socket_client($serverUri, $errno, $errstr, 1, $clientFlags, $clientCtx); 88 stream_set_blocking($fp, false); 89 … while (0 === ($n = stream_socket_enable_crypto($fp, true, STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT))); 95 $written = streamWrite($fp, $data); 98 waitForWrite($fp); 102 while(waitForRead($fp)) { 103 streamRead($fp); 104 if (feof($fp)) {
|
/PHP-8.2/Zend/ |
H A D | zend_stream.c | 63 ZEND_API void zend_stream_init_fp(zend_file_handle *handle, FILE *fp, const char *filename) { in zend_stream_init_fp() argument 66 handle->handle.fp = fp; in zend_stream_init_fp() 91 handle->handle.fp = zend_fopen(handle->filename, &opened_path); in zend_stream_open() 92 if (!handle->handle.fp) { in zend_stream_open() 144 if (!file_handle->handle.fp) { in zend_stream_fixup() 149 file_handle->handle.stream.handle = file_handle->handle.fp; in zend_stream_fixup() 217 if (fh->handle.fp) { in zend_file_handle_dtor() 218 fclose(fh->handle.fp); in zend_file_handle_dtor() 219 fh->handle.fp = NULL; in zend_file_handle_dtor() 259 return fh1->handle.fp == fh2->handle.fp; in zend_compare_file_handles()
|