Home
last modified time | relevance | path

Searched refs:fp (Results 51 – 75 of 921) sorted by relevance

12345678910>>...37

/PHP-5.6/ext/standard/tests/strings/
H A Dvfprintf_basic7.phpt27 if (!($fp = fopen($data_file, 'wt')))
30 vfprintf($fp, $format1,$arg1);
31 fprintf($fp, "\n");
33 vfprintf($fp, $format2,$arg2);
34 fprintf($fp, "\n");
36 vfprintf($fp, $format3,$arg3);
37 fprintf($fp, "\n");
39 fclose($fp);
H A Dvfprintf_basic7_64bit.phpt27 if (!($fp = fopen($data_file, 'wt')))
30 vfprintf($fp, $format1,$arg1);
31 fprintf($fp, "\n");
33 vfprintf($fp, $format2,$arg2);
34 fprintf($fp, "\n");
36 vfprintf($fp, $format3,$arg3);
37 fprintf($fp, "\n");
39 fclose($fp);
H A Dfprintf_variation_001.phpt6 if (!($fp = fopen($data_file, 'w'))) {
18 if (!($fp = fopen($data_file, 'wt')))
23 fprintf($fp, "\n*** Testing fprintf() with floats ***\n");
26 fprintf( $fp, "\n-- Iteration %d --\n",$counter);
28 fprintf( $fp, "\n");
29 fprintf( $fp, $float_var, $float_num );
34 fclose($fp);
H A Dfprintf_variation_002.phpt6 if (!($fp = fopen($data_file, 'w'))) {
18 if (!($fp = fopen($data_file, 'wt')))
23 fprintf($fp, "\n*** Testing fprintf() with integers ***\n");
25 fprintf( $fp, "\n-- Iteration %d --\n",$counter);
27 fprintf( $fp, "\n");
28 fprintf( $fp, $int_var, $int_num );
33 fclose($fp);
H A Dfprintf_variation_009.phpt6 if (!($fp = fopen($data_file, 'w'))) {
18 if (!($fp = fopen($data_file, 'wt')))
23 fprintf($fp, "\n*** Testing fprintf() for string types ***\n");
25 fprintf( $fp, "\n-- Iteration %d --\n",$counter);
27 fprintf( $fp, "\n");
28 fprintf( $fp, $string_var, $str );
33 fclose($fp);
H A Dfprintf_variation_004.phpt6 if (!($fp = fopen($data_file, 'w'))) {
17 if (!($fp = fopen($data_file, 'wt')))
21 fprintf($fp, "\n*** Testing fprintf() for chars ***\n");
23 fprintf( $fp, "\n");
24 fprintf( $fp,"%c", $char );
27 fclose($fp);
/PHP-5.6/ext/zip/tests/
H A Dstream_meta_data.phpt17 $fp = $zip->getStream('foo');
19 if(!$fp) exit("\n");
21 var_dump(stream_get_meta_data($fp));
23 fclose($fp);
27 $fp = fopen('zip://' . dirname(__FILE__) . '/test_with_comment.zip#foo', 'rb');
28 if (!$fp) {
32 var_dump(stream_get_meta_data($fp));
33 fclose($fp);
/PHP-5.6/ext/standard/tests/streams/
H A Dstream_get_meta_data_file_variation5.phpt8 $fp = fopen($filename, "w+");
13 fwrite($fp, "a line of data\n");
16 var_dump(stream_get_meta_data($fp));
19 rewind($fp);
22 while(!feof($fp)) {
23 fread($fp, 1);
26 var_dump(stream_get_meta_data($fp));
28 fclose($fp);
/PHP-5.6/ext/standard/tests/file/
H A Dstream_get_line.phpt8 $fp = fopen($path, "r");
9 while ($fp && !feof($fp)) {
10 echo stream_get_line($fp, 0, "<br>")."\n";
12 fclose($fp);
H A Duserfilters.phpt25 $fp = tmpfile();
26 fwrite($fp, $text);
28 rewind($fp);
29 stream_filter_append($fp, 'testfilter', STREAM_FILTER_READ, 'testuserfilter');
31 var_dump(fgets($fp));
32 fclose($fp);
H A Dfgetss.phpt20 $fp = fopen($filename, "r");
21 var_dump(fgetss($fp));
22 var_dump(fgetss($fp));
27 $fp = fopen($filename, "r");
28 var_dump(fgetss($fp, 10));
29 var_dump(fgetss($fp, 10));
32 var_dump(fgetss($fp, -10));
33 var_dump(fgetss($fp, 0));
34 fclose($fp);
35 var_dump(fgetss($fp, 0));
H A Dbug37158.phpt19 $fp = fopen($file, 'w');
21 fwrite($fp, $x);
23 fclose($fp);
25 $fp = fopen($file, 'r');
26 $outsidecontents = fread($fp, 20000);
27 fclose($fp);
/PHP-5.6/ext/openssl/tests/
H A Dopenssl_x509_check_private_key_basic.phpt7 $fp = fopen(dirname(__FILE__) . "/cert.crt","r");
8 $a = fread($fp, 8192);
9 fclose($fp);
11 $fp = fopen(dirname(__FILE__) . "/private_rsa_1024.key","r");
12 $b = fread($fp, 8192);
13 fclose($fp);
/PHP-5.6/ext/bz2/tests/
H A Dbug72613.phpt7 $fp = bzopen(__DIR__.'/72613.bz2', 'r');
8 if ($fp === FALSE) {
12 while (!feof($fp)) {
13 $res = bzread($fp);
19 bzclose($fp);
H A Dbz2_filter_compress.phpt9 $fp = fopen('php://stdout', 'w');
10 stream_filter_append($fp, 'bzip2.compress', STREAM_FILTER_WRITE);
11 stream_filter_append($fp, 'convert.base64-encode', STREAM_FILTER_WRITE);
12 fwrite($fp, $text);
13 fclose($fp);
H A Dbz2_filter_decompress.phpt9 $fp = fopen('php://stdout', 'w');
10 stream_filter_append($fp, 'convert.base64-decode', STREAM_FILTER_WRITE);
11 stream_filter_append($fp, 'bzip2.decompress', STREAM_FILTER_WRITE);
12 fwrite($fp, $text);
13 fclose($fp);
/PHP-5.6/sapi/cli/tests/
H A Dbug66830.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 Dphp_cli_server_018.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 Dbug68745.phpt15 $fp = fsockopen($host, $port, $errno, $errstr, 0.5);
16 if (!$fp) {
20 if(fwrite($fp, "GET www.example.com:80 HTTP/1.1\r\n\r\n")) {
21 while (!feof($fp)) {
22 echo fgets($fp);
26 fclose($fp);
H A Dphp_cli_server_014.phpt20 $fp = fsockopen($host, $port, $errno, $errstr, 0.5);
21 if (!$fp) {
25 if(fwrite($fp, <<<HEADER
36 while (!feof($fp)) {
37 $output .= fgets($fp);
41 fclose($fp);
43 $fp = fsockopen($host, $port, $errno, $errstr, 0.5);
44 if(fwrite($fp, <<<HEADER
55 while (!feof($fp)) {
56 $output .= fgets($fp);
[all …]
H A Dbug61679.phpt18 $fp = fsockopen($host, $port, $errno, $errstr, 0.5);
19 if (!$fp) {
25 if(fwrite($fp, <<<HEADER
32 while (!feof($fp)) {
33 echo fgets($fp);
40 fclose($fp);
/PHP-5.6/ext/gd/libgd/
H A Dgd_gif_out.c332 gdPutC( B, fp ); in GIFEncode()
342 gdPutC( 0, fp ); in GIFEncode()
357 gdPutC( '!', fp ); in GIFEncode()
358 gdPutC( 0xf9, fp ); in GIFEncode()
359 gdPutC( 4, fp ); in GIFEncode()
360 gdPutC( 1, fp ); in GIFEncode()
361 gdPutC( 0, fp ); in GIFEncode()
362 gdPutC( 0, fp ); in GIFEncode()
364 gdPutC( 0, fp ); in GIFEncode()
370 gdPutC( ',', fp ); in GIFEncode()
[all …]
/PHP-5.6/ext/zlib/tests/
H A Dzlib_filter_deflate.phpt9 $fp = fopen('php://stdout', 'w');
10 stream_filter_append($fp, 'zlib.deflate', STREAM_FILTER_WRITE);
11 stream_filter_append($fp, 'convert.base64-encode', STREAM_FILTER_WRITE);
12 fwrite($fp, $text);
13 fclose($fp);
H A Dzlib_filter_inflate.phpt9 $fp = fopen('php://stdout', 'w');
10 stream_filter_append($fp, 'convert.base64-decode', STREAM_FILTER_WRITE);
11 stream_filter_append($fp, 'zlib.inflate', STREAM_FILTER_WRITE);
12 fwrite($fp, $text);
13 fclose($fp);
/PHP-5.6/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, '&'));

Completed in 72 milliseconds

12345678910>>...37