/PHP-7.2/ext/standard/tests/file/ |
H A D | bug38450_1.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 | fgetss1.phpt | 20 $fp = fopen($filename, "r"); 21 var_dump(fgetss($fp, 1000, "<i>,<b>,<a>")); 22 var_dump(fgetss($fp)); 27 $fp = fopen($filename, "r"); 28 var_dump(fgetss($fp, 10)); 29 var_dump(fgetss($fp, 10, "<script>,<a>"));
|
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 | 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 | bug40374.phpt | 8 $fp = fopen($file, "wt"); 9 fwrite($fp, "test"); 10 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 | 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);
|
H A D | bug22382.phpt | 5 $fp = fopen(dirname(__FILE__)."/test2.csv", "r"); 6 while(($line = fgetcsv($fp, 1024))) { 9 fclose($fp);
|
/PHP-7.2/ext/hash/tests/ |
H A D | hash_update_stream.phpt | 14 $fp = tmpfile(); 15 fwrite($fp, 'The quick brown fox jumped over the lazy dog.'); 16 rewind($fp); 19 hash_update_stream($ctx, $fp);
|
/PHP-7.2/Zend/tests/ |
H A D | halt02.phpt | 6 $fp = fopen(__FILE__, "r"); 7 fseek($fp, __COMPILER_HALT_OFFSET__+1); 8 print fread($fp, 1000);
|
/PHP-7.2/sapi/cli/tests/ |
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.2/ext/curl/tests/ |
H A D | bug45161.phpt | 21 $fp = fopen('/dev/null', 'w'); 27 curl_setopt($ch, CURLOPT_FILE, $fp); 36 curl_setopt($ch, CURLOPT_FILE, $fp); 45 fclose($fp); 46 unset($fp);
|
H A D | bug48203.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/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.2/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.2/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.2/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.2/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.2/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.2/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.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-7.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);
|
/PHP-7.2/ext/ftp/tests/ |
H A D | ftp_nb_get_large.phpt | 24 $fp = fopen($local_file, 'r'); 25 fseek($fp, 5368709119); 26 var_dump(fread($fp, 1)); 28 fclose($fp);
|
/PHP-7.2/ext/standard/tests/dir/ |
H A D | closedir_variation3.phpt | 18 var_dump($fp = fopen(__FILE__, 'r')); 21 var_dump(closedir($fp)); 24 var_dump($fp); 26 if(is_resource($fp)) { 27 fclose($fp);
|