/PHP-7.3/sapi/cli/tests/ |
H A D | upload_2G.phpt | 44 $fp = fsockopen($host, $port, $errno, $errstr, 0.5); 45 if (!$fp) { 55 fwrite($fp, <<<EOF 67 fwrite($fp, $data) or die("write failed @ ($i)"); 70 fwrite($fp, $post) or die("write post failed"); 72 while (!feof($fp)) { 73 $output .= fgets($fp); 76 fclose($fp);
|
H A D | php_cli_server_004.phpt | 17 $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 D | php_cli_server_005.phpt | 15 $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.3/ext/phar/ |
H A D | phar_internal.h | 242 php_stream *fp; member 292 php_stream *fp; member 326 php_stream *fp; member 334 return entry->phar->fp; in phar_get_entrypfp() 350 entry->phar->fp = fp; in phar_set_entrypfp() 354 PHAR_G(cached_fp)[entry->phar->phar_pos].fp = fp; in phar_set_entrypfp() 360 entry->phar->ufp = fp; in phar_set_entrypufp() 370 return phar->fp; in phar_get_pharfp() 386 phar->fp = fp; in phar_set_pharfp() 390 PHAR_G(cached_fp)[phar->phar_pos].fp = fp; in phar_set_pharfp() [all …]
|
/PHP-7.3/ext/zlib/tests/ |
H A D | zlib_filter_deflate2.phpt | 9 $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.3/ext/fileinfo/tests/ |
H A D | finfo_file_stream_001.phpt | 9 $fp = finfo_open(FILEINFO_MIME_TYPE); 18 finfo_file($fp, $zip), 19 finfo_file($fp, $dir), 20 finfo_file($fp, $png)
|
/PHP-7.3/ext/standard/tests/filters/ |
H A D | bug79468.phpt | 10 $fp = fopen('php://temp', 'rb'); 11 $rot13_filter = stream_filter_append($fp, "string.rot13", STREAM_FILTER_WRITE); 12 fwrite($fp, "This is "); 13 fclose($fp);
|
/PHP-7.3/ext/standard/tests/file/ |
H A D | bug38450_2.phpt | 89 $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 D | bug38450_3.phpt | 89 $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 D | bug40374.phpt | 8 $fp = fopen($file, "wt"); 9 fwrite($fp, "test"); 10 fclose($fp);
|
H A D | fgetss1.phpt | 21 $fp = fopen($filename, "r"); 22 var_dump(fgetss($fp, 1000, "<i>,<b>,<a>")); 23 var_dump(fgetss($fp)); 28 $fp = fopen($filename, "r"); 29 var_dump(fgetss($fp, 10)); 30 var_dump(fgetss($fp, 10, "<script>,<a>"));
|
H A D | fputcsv.phpt | 32 $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 D | bug22382.phpt | 5 $fp = fopen(dirname(__FILE__)."/test2.csv", "r"); 6 while(($line = fgetcsv($fp, 1024))) { 9 fclose($fp);
|
H A D | unlink_basic.phpt | 13 $fp = fopen($filename, "w"); // create file 14 fwrite($fp, "Hello World"); 15 fclose($fp); 26 $fp = fopen($filename, "w"); // create file 27 fclose($fp);
|
/PHP-7.3/ext/openssl/tests/ |
H A D | bug77390.phpt | 21 …$fp = stream_socket_client("ssl://127.0.0.1:10012", $errornum, $errorstr, 3000, STREAM_CLIENT_CONN… 22 stream_set_blocking($fp, false); 24 $read = [$fp]; 29 $chunk = stream_get_contents($fp, 4096); 59 $fp = stream_socket_server("ssl://127.0.0.1:10011", $errornum, $errorstr, $flags, $context); 62 $conn = stream_socket_accept($fp); 87 foreach ($read as $fp) { 88 $data = stream_get_contents($fp); 89 if ($fp === $conn) {
|
/PHP-7.3/ext/standard/tests/image/ |
H A D | iptcembed_001.phpt | 7 $fp = fopen($file, "w"); 8 fwrite($fp, "-1-1"); 9 fclose($fp);
|
/PHP-7.3/ext/exif/tests/ |
H A D | exif_thumbnail_streams.phpt | 10 $fp = fopen(__DIR__ . '/sony.jpg', 'rb'); 12 var_dump(strlen(exif_thumbnail($fp))); 14 fclose($fp);
|
/PHP-7.3/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-7.3/ext/standard/tests/strings/ |
H A D | vfprintf_basic1.phpt | 24 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.3/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);
|
/PHP-7.3/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_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);
|