Home
last modified time | relevance | path

Searched refs:fp (Results 101 – 125 of 624) sorted by relevance

12345678910>>...25

/PHP-7.4/ext/xml/tests/
H A Dxml004.phpt12 $fp = fopen("xmltest.xml", "r");
13 while ($data = fread($fp, 4096)) {
14 xml_parse($xp, $data, feof($fp));
20 $fp = fopen("xmltest.xml", "r");
21 while ($data = fread($fp, 4096)) {
22 xml_parse($xp, $data, feof($fp));
/PHP-7.4/ext/openssl/tests/
H A Dbug72333.phpt16 $fp = stream_socket_server("ssl://127.0.0.1:10011", $errornum, $errorstr, $flags, $context);
18 $conn = stream_socket_accept($fp);
43 …$fp = stream_socket_client("ssl://127.0.0.1:10011", $errornum, $errorstr, 3000, STREAM_CLIENT_CONN…
44 stream_set_blocking($fp, false);
46 function blocking_fwrite($fp, $buf) {
47 $write = [$fp];
50 $result = fwrite($fp, $buf);
62 blocking_fwrite($fp, $str1);
/PHP-7.4/ext/standard/tests/strings/
H A Dfprintf_variation_008.phpt15 if (!($fp = fopen($data_file, 'wt')))
19 fprintf($fp, "\n*** Testing fprintf() for hexadecimals ***\n");
21 fprintf( $fp, "\n");
22 fprintf( $fp, "%x", $hexa_num );
25 fclose($fp);
H A Dfprintf_variation_008_64bit.phpt15 if (!($fp = fopen($data_file, 'wt')))
19 fprintf($fp, "\n*** Testing fprintf() for hexadecimals ***\n");
21 fprintf( $fp, "\n");
22 fprintf( $fp, "%x", $hexa_num );
25 fclose($fp);
/PHP-7.4/sapi/cli/tests/
H A Dphp_cli_server_016.phpt23 $fp = php_cli_server_connect();
25 if(fwrite($fp, <<<HEADER
32 while (!feof($fp)) {
33 echo fgets($fp);
38 fclose($fp);
H A Dbug66606_2.phpt15 $fp = php_cli_server_connect();
17 if (fwrite($fp, <<<HEADER
26 while (!feof($fp)) {
27 echo fgets($fp);
31 fclose($fp);
H A Dphp_cli_server_020.phpt13 $fp = php_cli_server_connect();
15 if(fwrite($fp, <<<HEADER
22 while (!feof($fp)) {
23 echo fgets($fp);
H A Dbug65066_100.phpt15 $fp = php_cli_server_connect();
17 if(fwrite($fp, <<<HEADER
24 while (!feof($fp)) {
25 echo fgets($fp);
H A Dbug71005.phpt19 $fp = php_cli_server_connect();
21 if(fwrite($fp, <<<HEADER
28 while (!feof($fp)) {
29 echo fgets($fp);
H A Dbug81305.phpt13 $fp = php_cli_server_connect();
15 if (fwrite($fp, <<<HEADER
23 fpassthru($fp);
26 fclose($fp);
H A Dphp_cli_server_012.phpt15 $fp = php_cli_server_connect();
17 if(fwrite($fp, <<<HEADER
26 while (!feof($fp)) {
27 echo fgets($fp);
31 fclose($fp);
/PHP-7.4/ext/zlib/tests/
H A Dcompress_zlib_wrapper.phpt12 $fp = fopen("compress.zlib://{$pfx}ext/xsl/tests/xslt.xsl.gz", "rb");
13 fclose($fp);
16 $fp = fopen("compress.zlib://". __DIR__. "/../../../ext/xsl/tests/xslt.xsl.gz", "rb");
17 fclose($fp);
H A Dzlib_filter_deflate2.phpt9 $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.4/ext/standard/tests/streams/
H A Dstream_get_meta_data_file_variation4.phpt8 $fp = fopen('File://' . $filename, 'w+');
10 var_dump(stream_get_meta_data($fp));
12 fclose($fp);
20 $fp = fopen($relative_filename, 'r');
21 var_dump(stream_get_meta_data($fp));
23 fclose($fp);
H A Dstream_get_meta_data_file_error.phpt5 /* Prototype : proto array stream_get_meta_data(resource fp)
20 $fp = null;
22 var_dump( stream_get_meta_data($fp, $extra_arg) );
25 $fp = null;
26 var_dump(stream_get_meta_data($fp));
29 $fp = fopen(__FILE__, 'r');
30 fclose($fp);
31 var_dump(stream_get_meta_data($fp));
/PHP-7.4/ext/gd/tests/
H A Dimageloadfont_end_of_file_while_reading_header.phpt16 $fp = fopen($filename, 'wb');
17 fwrite($fp, $bin);
18 fclose($fp);
23 $fp = fopen($filename, 'wb');
24 fwrite($fp, $bin);
25 fclose($fp);
/PHP-7.4/ext/phar/
H A Dzip.c224 php_stream_close(fp); in phar_parse_zipfile()
282 php_stream_close(fp); in phar_parse_zipfile()
600 fp->writepos = 0; in phar_parse_zipfile()
601 fp->readpos = 0; in phar_parse_zipfile()
603 fp->writepos = 0; in phar_parse_zipfile()
604 fp->readpos = 0; in phar_parse_zipfile()
700 mydata->fp = fp; in phar_parse_zipfile()
897 … if (entry->fp_type == PHAR_MOD && entry->fp != entry->phar->fp && entry->fp != entry->phar->ufp) { in phar_zip_changed_apply_int()
899 entry->fp = NULL; in phar_zip_changed_apply_int()
1120 entry->fp = NULL; in phar_zip_changed_apply_int()
[all …]
H A Dphar.c249 phar->fp = 0; in PHP_INI_END()
437 …if (idata->fp && idata->fp != idata->phar->fp && idata->fp != idata->phar->ufp && idata->fp != ida… in phar_entry_delref()
463 …if (idata->fp && idata->fp != idata->phar->fp && idata->fp != idata->phar->ufp && idata->fp != ida… in phar_entry_remove()
481 if (fp) {\
1209 mydata->fp = fp; in phar_parse_pharfile()
1221 fp = NULL; in phar_parse_pharfile()
1363 if (fp) { in phar_create_or_parse_filename()
1520 if (!fp) { in phar_open_from_filename()
2316 if (!fp) { in phar_open_executed_filename()
2348 php_stream *fp = idata->fp; in phar_postprocess_file() local
[all …]
/PHP-7.4/Zend/tests/
H A Dhalt02.phpt6 $fp = fopen(__FILE__, "r");
7 fseek($fp, __COMPILER_HALT_OFFSET__+1);
8 print fread($fp, 1000);
/PHP-7.4/ext/standard/tests/filters/
H A Dbug35916.phpt31 $fp=fopen($file, "w");
32 stream_filter_append($fp, "strtoupper");
33 fread($fp, 1024);
34 fwrite($fp, "Thank you\n");
35 fclose($fp);
/PHP-7.4/ext/curl/tests/
H A Dbug45161.phpt18 $fp = fopen(PHP_OS_FAMILY === 'Windows' ? 'nul' : '/dev/null', 'w');
24 curl_setopt($ch, CURLOPT_FILE, $fp);
33 curl_setopt($ch, CURLOPT_FILE, $fp);
42 fclose($fp);
43 unset($fp);
/PHP-7.4/win32/build/
H A Dmkdist.php161 $fp = fopen($dest, "w");
162 fwrite($fp, $text);
163 fclose($fp);
178 $fp = gzopen($tarball, 'rb');
183 $hdr_data = gzread($fp, 512);
219 gzseek($fp, gztell($fp) + $size);
277 fwrite($fp, <<<EOT
292 fprintf($fp, "%s\r\n", $ext);
294 fwrite($fp, "\r\n\r\n");
307 fwrite($fp, "\r\n");
[all …]
/PHP-7.4/ext/standard/tests/file/
H A Dbug38450.phpt89 $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 Dbug38450_1.phpt89 $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);
/PHP-7.4/ext/fileinfo/tests/
H A Dfinfo_file_stream_001.phpt9 $fp = finfo_open(FILEINFO_MIME_TYPE);
18 finfo_file($fp, $zip),
19 finfo_file($fp, $dir),
20 finfo_file($fp, $png)

Completed in 64 milliseconds

12345678910>>...25