Home
last modified time | relevance | path

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

12345678910>>...37

/PHP-5.4/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.4/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.4/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);
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);
/PHP-5.4/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));
/PHP-5.4/ext/openssl/tests/
H A D009.phpt7 $fp = fopen(dirname(__FILE__) . "/cert.crt","r");
8 $a = fread($fp,8192);
9 fclose($fp);
11 $fp = fopen(dirname(__FILE__) . "/private.key","r");
12 $b = fread($fp,8192);
13 fclose($fp);
/PHP-5.4/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.4/ext/zip/lib/
H A Dzip_open.c63 FILE *fp; in zip_open() local
102 len = ftello(fp); in _zip_open()
107 fclose(fp); in _zip_open()
109 za->zp = fp; in _zip_open()
115 fclose(fp); in _zip_open()
121 fclose(fp); in _zip_open()
126 za->zp = fp; in _zip_open()
248 clearerr(fp); in _zip_readcdir()
252 if (ferror(fp) || ((unsigned long)ftello(fp) != cd->offset)) { in _zip_readcdir()
254 if (ferror(fp)) in _zip_readcdir()
[all …]
/PHP-5.4/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 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 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 Dbug67429.phpt20 $fp = fsockopen($host, $port, $errno, $errstr, 0.5);
21 if (!$fp) {
25 if(fwrite($fp, <<<HEADER
31 while (!feof($fp)) {
32 echo fgets($fp);
36 fclose($fp);
/PHP-5.4/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 34 milliseconds

12345678910>>...37