Home
last modified time | relevance | path

Searched refs:fp (Results 26 – 50 of 909) sorted by relevance

12345678910>>...37

/PHP-5.5/ext/standard/tests/strings/
H A Dvfprintf_error3.phpt17 $fp = fopen( $file, "a+" );
22 rewind( $fp );
23 var_dump( stream_get_contents( $fp ) );
24 ftruncate( $fp, 0 );
25 rewind( $fp );
27 var_dump( vfprintf( $fp, "Foo %y fake", "not available" ) );
29 rewind( $fp );
30 var_dump( stream_get_contents( $fp ) );
31 ftruncate( $fp, 0 );
32 rewind( $fp );
[all …]
H A Dvfprintf_variation1.phpt19 $fp = fopen( $file, 'a+' );
33 function writeAndDump($fp, $format, $args)
35 ftruncate( $fp, 0 );
36 $length = vfprintf( $fp, $format, $args );
37 rewind( $fp );
38 $content = stream_get_contents( $fp );
44 writeAndDump( $fp, "format", null );
46 writeAndDump( $fp, "Foobar testing", array() );
48 writeAndDump( $fp, "%02d", array( 50 ) );
49 writeAndDump( $fp, "", array() );
[all …]
H A Dvfprintf_basic8.phpt23 if (!($fp = fopen($data_file, 'wt')))
26 vfprintf($fp, $format1,$arg1);
27 fprintf($fp, "\n");
29 vfprintf($fp, $format2,$arg2);
30 fprintf($fp, "\n");
32 vfprintf($fp, $format3,$arg3);
33 fprintf($fp, "\n");
35 fclose($fp);
H A Dvfprintf_basic5.phpt23 if (!($fp = fopen($data_file, 'wt')))
26 vfprintf($fp, $format1,$arg1);
27 fprintf($fp, "\n");
29 vfprintf($fp, $format2,$arg2);
30 fprintf($fp, "\n");
32 vfprintf($fp, $format3,$arg3);
33 fprintf($fp, "\n");
35 fclose($fp);
H A Dvfprintf_basic6.phpt24 if (!($fp = fopen($data_file, 'wt')))
27 vfprintf($fp, $format1,$arg1);
28 fprintf($fp, "\n");
30 vfprintf($fp, $format2,$arg2);
31 fprintf($fp, "\n");
33 vfprintf($fp, $format3,$arg3);
34 fprintf($fp, "\n");
36 fclose($fp);
H A Dvfprintf_basic2.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_basic4.phpt23 if (!($fp = fopen($data_file, 'wt')))
26 vfprintf($fp, $format1,$arg1);
27 fprintf($fp, "\n");
29 vfprintf($fp, $format2,$arg2);
30 fprintf($fp, "\n");
32 vfprintf($fp, $format3,$arg3);
33 fprintf($fp, "\n");
35 fclose($fp);
/PHP-5.5/ext/gd/tests/
H A Dcreatefromwbmp2_extern.phpt12 if (!$fp) {
18 fputs($fp, chr($c), 1);
19 fputs($fp, $c, 1);
23 fputs($fp, chr($c), 1);
25 fputs($fp, chr($c), 1);
26 fputs($fp, chr($c), 1);
27 fputs($fp, chr($c), 1);
29 fputs($fp, chr($c), 1);
33 fputs($fp, chr($c), 1);
37 fwrite($fp, chr($c), 1);
[all …]
H A Dcreatefromwbmp2.phpt12 if (!$fp) {
18 fputs($fp, chr($c), 1);
19 fputs($fp, $c, 1);
23 fputs($fp, chr($c), 1);
25 fputs($fp, chr($c), 1);
26 fputs($fp, chr($c), 1);
27 fputs($fp, chr($c), 1);
29 fputs($fp, chr($c), 1);
33 fputs($fp, chr($c), 1);
37 fwrite($fp, chr($c), 1);
[all …]
/PHP-5.5/ext/dba/libinifile/
H A Dinifile.c95 dba->fp = fp; in inifile_alloc()
184 ln->pos = php_stream_tell(dba->fp); in inifile_read()
256 php_stream_rewind(dba->fp); in inifile_fetch()
332 php_stream_flush(dba->fp); in inifile_find_group()
333 php_stream_seek(dba->fp, 0, SEEK_SET); in inifile_find_group()
388 php_stream *fp; in inifile_copy_to() local
405 if (!php_stream_copy_to_stream_ex(dba->fp, fp, pos_end - pos_start, NULL)) { in inifile_copy_to()
430 if (!php_stream_copy_to_stream_ex(from->fp, dba->fp, pos_next - pos_start, NULL)) { in inifile_filter()
449 if (!php_stream_copy_to_stream_ex(from->fp, dba->fp, pos_next - pos_start, NULL)) { in inifile_filter()
549 php_stream_close(ini_tmp->fp); in inifile_delete_replace_append()
[all …]
/PHP-5.5/ext/zip/tests/
H A Dbug53579.phpt17 $fp = $zip->getStream('foo');
19 var_dump($fp);
20 if(!$fp) exit("\n");
21 $contents = stream_get_contents($fp);
23 fclose($fp);
28 $fp = fopen('zip://' . dirname(__FILE__) . '/test_with_comment.zip#foo', 'rb');
29 if (!$fp) {
32 $contents = stream_get_contents($fp);
34 fclose($fp);
/PHP-5.5/sapi/cli/tests/
H A Dphp_cli_server_010.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);
32 fclose($fp);
35 if (!$fp) {
40 if(fwrite($fp, <<<HEADER
47 while (!feof($fp)) {
48 echo fgets($fp);
[all …]
H A Dphp_cli_server_013.phpt17 if (!$fp) {
22 if(fwrite($fp, <<<HEADER
31 while (!feof($fp)) {
32 $output .= fgets($fp);
37 fclose($fp);
42 if (!$fp) {
53 while (!feof($fp)) {
59 fclose($fp);
63 if (!$fp) {
74 while (!feof($fp)) {
[all …]
/PHP-5.5/ext/ftp/tests/
H A Dftp_fget_basic.phpt19 $fp = tmpfile();
20 var_dump(ftp_fget($ftp, $fp ,'a story.txt', FTP_ASCII));
21 fseek($fp, 0);
22 echo fgets($fp);
24 $postition = ftell($fp);
26 var_dump(ftp_fget($ftp, $fp, 'binary data.bin', FTP_BINARY));
27 fseek($fp, $postition);
28 var_dump(urlencode(fgets($fp)));
31 ftp_fget($ftp, $fp ,'a warning.txt', FTP_ASCII);
34 fclose($fp);
/PHP-5.5/ext/standard/tests/file/
H A Dfwrite.phpt8 $fp = fopen($filename, "w");
9 var_dump(fwrite($fp));
10 var_dump(fwrite($fp, array()));
11 fclose($fp);
13 $fp = fopen($filename, "r");
14 var_dump(fwrite($fp, "data"));
16 $fp = fopen($filename, "w");
17 var_dump(fwrite($fp, "data", -1));
18 var_dump(fwrite($fp, "data", 100000));
19 fclose($fp);
[all …]
H A Dbug43522.phpt6 $fp = fopen(__FILE__, 'r'); // Open self
8 DoTest($fp, 'ZZZ'); // test multi-char delimiter
9 DoTest($fp, "Z"); // test single-char delimiter
11 function DoTest($fp, $delim) {
13 rewind($fp);
14 echo "\t" . stream_get_line($fp, 10, $delim) . "\n";
15 echo "\t" . stream_get_line($fp, 10, $delim) . "\n";
H A Dbug35781.phpt8 $fp = fopen($filename, "w");
9 stream_filter_append($fp, "string.rot13", -49);
10 fwrite($fp, "This is a test\n");
11 rewind($fp);
12 fpassthru($fp);
13 fclose($fp);
H A Dbug27619.phpt5 $fp = tmpfile();
6 fwrite($fp, "this is a lowercase string.\n");
7 rewind($fp);
11 echo fread($fp, 4);
13 stream_filter_append($fp, "string.toupper");
15 fpassthru($fp);
/PHP-5.5/ext/zlib/tests/
H A Dgzreadgzwriteplain.phpt11 $fp = fopen($filename, "wb");
12 fwrite($fp, $original);
14 var_dump(ftell($fp));
15 fclose($fp);
17 $fp = gzopen($filename, "rb");
20 while ($buf = gzread($fp, 8192)) {
31 gzseek($fp, strlen($original) / 2);
34 while ($buf = gzread($fp, 8192)) {
46 gzclose($fp);
H A Dgzreadgzwrite.phpt11 $fp = gzopen($filename, "wb");
12 gzwrite($fp, $original);
14 var_dump(gztell($fp));
15 fclose($fp);
17 $fp = gzopen($filename, "rb");
20 while ($buf = gzread($fp, 8092)) {
30 gzclose($fp);
/PHP-5.5/ext/mcrypt/tests/
H A Dmcrypt_filters.phpt21 $fp = fopen($secretfile, 'wb');
22 stream_filter_append($fp, 'mcrypt.tripledes', STREAM_FILTER_WRITE, $opts);
23 fwrite($fp, 'Secret secret secret data');
24 fclose($fp);
28 $fp = fopen($secretfile, 'rb');
29 stream_filter_append($fp, 'mdecrypt.tripledes', STREAM_FILTER_READ, $opts);
30 $data = stream_get_contents($fp);
31 fclose($fp);
/PHP-5.5/ext/phar/tests/tar/
H A Dphar_stub.phpt33 $fp = fopen($fname3, 'wb');
34 fwrite($fp, $file);
35 fclose($fp);
36 $fp = fopen($fname3, 'rb');
39 $phar->setStub($fp);
40 fclose($fp);
44 $fp = fopen($fname3, 'ab');
45 fwrite($fp, b'booya');
46 fclose($fp);
49 $fp = fopen($fname3, 'rb');
[all …]
/PHP-5.5/ext/phar/tests/zip/
H A Dphar_stub.phpt33 $fp = fopen($fname3, 'wb');
34 fwrite($fp, $file);
35 fclose($fp);
36 $fp = fopen($fname3, 'rb');
39 $phar->setStub($fp);
40 fclose($fp);
44 $fp = fopen($fname3, 'ab');
45 fwrite($fp, b'booya');
46 fclose($fp);
49 $fp = fopen($fname3, 'rb');
[all …]
/PHP-5.5/ext/standard/tests/streams/
H A Dstream_get_meta_data_file_variation2.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 var_dump(fgets($fp));
24 var_dump(stream_get_meta_data($fp));
27 fread($fp, 20);
29 var_dump(stream_get_meta_data($fp));
32 while(!feof($fp)) {
33 fread($fp, 1);
[all …]
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);

Completed in 78 milliseconds

12345678910>>...37