Home
last modified time | relevance | path

Searched refs:fp (Results 76 – 100 of 926) sorted by relevance

12345678910>>...38

/PHP-7.1/sapi/cli/tests/
H A Dbug65633.phpt18 $fp = fsockopen($host, $port, $errno, $errstr, 0.5);
19 if (!$fp) {
23 if(fwrite($fp, <<<HEADER
31 while (!feof($fp)) {
32 echo fgets($fp);
36 fclose($fp);
H A Dphp_cli_server_017.phpt18 $fp = fsockopen($host, $port, $errno, $errstr, 0.5);
19 if (!$fp) {
23 if(fwrite($fp, <<<HEADER
30 while (!feof($fp)) {
31 echo fgets($fp);
35 fclose($fp);
H A Dbug66606_2.phpt17 $fp = fsockopen($host, $port, $errno, $errstr, 0.5);
18 if (!$fp) {
22 if (fwrite($fp, <<<HEADER
31 while (!feof($fp)) {
32 echo fgets($fp);
36 fclose($fp);
H A Dphp_cli_server_016.phpt25 $fp = fsockopen($host, $port, $errno, $errstr, 0.5);
26 if (!$fp) {
30 if(fwrite($fp, <<<HEADER
37 while (!feof($fp)) {
38 echo fgets($fp);
43 fclose($fp);
H A Dphp_cli_server_020.phpt15 $fp = fsockopen($host, $port, $errno, $errstr, 0.5);
16 if (!$fp) {
20 if(fwrite($fp, <<<HEADER
27 while (!feof($fp)) {
28 echo fgets($fp);
/PHP-7.1/ext/standard/tests/image/
H A Dbug70096.phpt17 $fp = fopen($filename, "wb");
18 fwrite($fp, $content1);
19 fclose($fp);
21 $fp = fopen($filename, "wb");
22 fwrite($fp, $content2);
23 fclose($fp);
/PHP-7.1/ext/standard/tests/strings/
H A Dfprintf_variation_003.phpt6 if (!($fp = fopen($data_file, 'w'))) {
18 if (!($fp = fopen($data_file, 'wt')))
22 fprintf($fp, "\n*** Testing fprintf() with binary ***\n");
24 fprintf( $fp, "\n");
25 fprintf( $fp, "%b", $bin_num );
28 fclose($fp);
H A Dfprintf_variation_003_64bit.phpt6 if (!($fp = fopen($data_file, 'w'))) {
18 if (!($fp = fopen($data_file, 'wt')))
22 fprintf($fp, "\n*** Testing fprintf() with binary ***\n");
24 fprintf( $fp, "\n");
25 fprintf( $fp, "%b", $bin_num );
28 fclose($fp);
H A Dfprintf_variation_005.phpt6 if (!($fp = fopen($data_file, 'w'))) {
17 if (!($fp = fopen($data_file, 'wt')))
21 fprintf($fp, "\n*** Testing fprintf() for scientific type ***\n");
23 fprintf( $fp, "\n");
24 fprintf( $fp, "%e", $num );
27 fclose($fp);
H A Dfprintf_variation_006.phpt6 if (!($fp = fopen($data_file, 'w'))) {
18 if (!($fp = fopen($data_file, 'wt')))
22 fprintf($fp, "\n*** Testing fprintf() for unsigned integers ***\n");
24 fprintf( $fp, "\n");
25 fprintf( $fp, "%u", $unsig_num );
28 fclose($fp);
H A Dfprintf_variation_006_64bit.phpt6 if (!($fp = fopen($data_file, 'w'))) {
18 if (!($fp = fopen($data_file, 'wt')))
22 fprintf($fp, "\n*** Testing fprintf() for unsigned integers ***\n");
24 fprintf( $fp, "\n");
25 fprintf( $fp, "%u", $unsig_num );
28 fclose($fp);
H A Dfprintf_variation_007.phpt6 if (!($fp = fopen($data_file, 'w'))) {
18 if (!($fp = fopen($data_file, 'wt')))
22 fprintf($fp, "\n*** Testing fprintf() for octals ***\n");
24 fprintf( $fp, "\n");
25 fprintf( $fp, "%o", $octal_num );
28 fclose($fp);
H A Dfprintf_variation_007_64bit.phpt6 if (!($fp = fopen($data_file, 'w'))) {
18 if (!($fp = fopen($data_file, 'wt')))
22 fprintf($fp, "\n*** Testing fprintf() for octals ***\n");
24 fprintf( $fp, "\n");
25 fprintf( $fp, "%o", $octal_num );
28 fclose($fp);
H A Dfprintf_variation_008.phpt6 if (!($fp = fopen($data_file, 'w'))) {
19 if (!($fp = fopen($data_file, 'wt')))
23 fprintf($fp, "\n*** Testing fprintf() for hexadecimals ***\n");
25 fprintf( $fp, "\n");
26 fprintf( $fp, "%x", $hexa_num );
29 fclose($fp);
H A Dfprintf_variation_008_64bit.phpt6 if (!($fp = fopen($data_file, 'w'))) {
19 if (!($fp = fopen($data_file, 'wt')))
23 fprintf($fp, "\n*** Testing fprintf() for hexadecimals ***\n");
25 fprintf( $fp, "\n");
26 fprintf( $fp, "%x", $hexa_num );
29 fclose($fp);
/PHP-7.1/ext/fileinfo/tests/
H A Dfinfo_file_001.phpt8 $fp = finfo_open();
9 var_dump(finfo_file($fp, "\0"));
10 var_dump(finfo_file($fp, ''));
11 var_dump(finfo_file($fp, NULL));
12 var_dump(finfo_file($fp, '.'));
13 var_dump(finfo_file($fp, '&'));
/PHP-7.1/ext/openssl/tests/
H A Dbug72333.phpt14 $fp = stream_socket_server("ssl://127.0.0.1:10011", $errornum, $errorstr, $flags, $context);
16 $conn = stream_socket_accept($fp);
39 …$fp = stream_socket_client("ssl://127.0.0.1:10011", $errornum, $errorstr, 3000, STREAM_CLIENT_CONN…
40 stream_set_blocking($fp, false);
42 function blocking_fwrite($fp, $buf) {
43 $write = [$fp];
46 $result = fwrite($fp, $buf);
58 blocking_fwrite($fp, $str1);
/PHP-7.1/ext/phar/tests/zip/files/
H A Dmake_invalid_tar.php.inc7 $fp = fopen($this->path, 'r+b');
8 fseek($fp, 20);
9 fwrite($fp, 'oopsie');
10 fclose($fp);
/PHP-7.1/ext/standard/tests/streams/
H A Dbug72221.phpt5 $fp = fopen("php://memory", "r+");
6 fwrite($fp, str_repeat("baad", 1024*1024));
7 rewind($fp);
8 stream_get_line($fp, 1024*1024*2, "aaaa");
H A Dbug69521.phpt8 $fp = stream_socket_client($serverUri, $errNumber, $errString, 5, STREAM_CLIENT_CONNECT);
13 $written += fwrite($fp, substr($data, $written, 100));
20 while (!feof($fp))
22 $read = $write = array($fp);
30 echo fread($fp, 4);
/PHP-7.1/Zend/tests/
H A Dbug72221.phpt5 $fp = fopen("php://memory", "r+");
6 fwrite($fp, str_repeat("baad", 1024*1024));
7 rewind($fp);
8 stream_get_line($fp, 1024*1024*2, "aaaa");
/PHP-7.1/ext/standard/tests/network/
H A Dbug20134.phpt6 $fp = fsockopen("udp://localhost", 65534, $errno, $errstr);
7 if (!$fp) {
14 $x = fwrite($fp,b"\n");
17 $content = fread($fp, 40);
19 fclose($fp);
/PHP-7.1/ext/standard/tests/filters/
H A Dstream_filter_remove_basic.phpt21 $fp = fopen( $file, 'w+' );
23 $filter = stream_filter_append( $fp, "string.rot13", STREAM_FILTER_WRITE );
24 fwrite( $fp, "Testing the rot13 filter which shifts some things around." );
27 fwrite( $fp, "\nadd some more un-filtered foobar\n" );
29 rewind( $fp );
30 fpassthru( $fp );
31 fclose( $fp );
/PHP-7.1/ext/zlib/tests/
H A Dbug_52944.phpt15 $fp = fopen('data://text/plain;base64,' . $data, 'r');
16 stream_filter_append($fp, 'zlib.inflate', STREAM_FILTER_READ);
17 var_dump(fread($fp,1));
18 var_dump(fread($fp,1));
19 fclose($fp);
/PHP-7.1/ext/phar/
H A Dphar_internal.h244 php_stream *fp; member
294 php_stream *fp; member
328 php_stream *fp; member
336 return entry->phar->fp; in phar_get_entrypfp()
352 entry->phar->fp = fp; in phar_set_entrypfp()
356 PHAR_G(cached_fp)[entry->phar->phar_pos].fp = fp; in phar_set_entrypfp()
362 entry->phar->ufp = fp; in phar_set_entrypufp()
372 return phar->fp; in phar_get_pharfp()
388 phar->fp = fp; in phar_set_pharfp()
392 PHAR_G(cached_fp)[phar->phar_pos].fp = fp; in phar_set_pharfp()
[all …]

Completed in 42 milliseconds

12345678910>>...38