Home
last modified time | relevance | path

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

12345678910>>...37

/PHP-5.5/ext/tokenizer/
H A Dtokenizer.php7 $fp = fopen('php://stdin', 'r'); variable
8 while (!feof($fp)) {
9 $content .= fread($fp, 4096);
11 fclose($fp);
/PHP-5.5/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-5.5/sapi/cli/tests/
H A Dphp_cli_server_015.phpt21 $fp = fsockopen($host, $port, $errno, $errstr, 0.5);
22 if (!$fp) {
26 if(fwrite($fp, <<<HEADER
33 while (!feof($fp)) {
34 $output .= fgets($fp);
39 fclose($fp);
H A Dphp_cli_server_019.phpt21 $fp = fsockopen($host, $port, $errno, $errstr, 0.5);
22 if (!$fp) {
26 if(fwrite($fp, <<<HEADER
34 while (!feof($fp)) {
35 echo fgets($fp);
39 fclose($fp);
H A Dphp_cli_server_007.phpt15 $fp = fsockopen($host, $port, $errno, $errstr, 0.5);
16 if (!$fp) {
20 if(fwrite($fp, <<<HEADER
28 while (!feof($fp)) {
29 echo fgets($fp);
H A Dphp_cli_server_004.phpt17 $fp = fsockopen($host, $port, $errno, $errstr, 0.5);
18 if (!$fp) {
22 if(fwrite($fp, <<<HEADER
32 while (!feof($fp)) {
33 echo fgets($fp);
H A Dphp_cli_server_005.phpt15 $fp = fsockopen($host, $port, $errno, $errstr, 0.5);
16 if (!$fp) {
34 if(fwrite($fp, <<<HEADER
44 while (!feof($fp)) {
45 echo fgets($fp);
/PHP-5.5/ext/wddx/tests/
H A D003.phpt10 $fp = fopen("php://temp", 'w+');
11 …fputs($fp, "<wddxPacket version='1.0'><header><comment>TEST comment</comment></header><data><struc…
12 rewind($fp);
13 var_dump(wddx_deserialize($fp));
14 fclose($fp);
/PHP-5.5/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-5.5/ext/phar/
H A Dphar.c256 phar->fp = 0; in PHP_INI_END()
438 …if (idata->fp && idata->fp != idata->phar->fp && idata->fp != idata->phar->ufp && idata->fp != ida… in phar_entry_delref()
464 …if (idata->fp && idata->fp != idata->phar->fp && idata->fp != idata->phar->ufp && idata->fp != ida… in phar_entry_remove()
482 if (fp) {\
1197 mydata->fp = fp;
1209 fp = NULL;
1343 if (fp) {
1501 if (!fp) {
2380 if (!fp) {
2412 php_stream *fp = idata->fp; local
[all …]
H A Dphar_internal.h275 php_stream *fp; member
325 php_stream *fp; member
359 php_stream *fp; member
367 return entry->phar->fp; in phar_get_entrypfp()
383 entry->phar->fp = fp; in phar_set_entrypfp()
387 PHAR_GLOBALS->cached_fp[entry->phar->phar_pos].fp = fp; in phar_set_entrypfp()
393 entry->phar->ufp = fp; in phar_set_entrypufp()
403 return phar->fp; in phar_get_pharfp()
419 phar->fp = fp; in phar_set_pharfp()
423 PHAR_GLOBALS->cached_fp[phar->phar_pos].fp = fp; in phar_set_pharfp()
[all …]
/PHP-5.5/ext/standard/tests/streams/
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));
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);
/PHP-5.5/win32/build/
H A Dmkdist.php145 $fp = fopen($dest, "w");
146 fwrite($fp, $text);
147 fclose($fp);
162 $fp = gzopen($tarball, 'rb');
167 $hdr_data = gzread($fp, 512);
203 gzseek($fp, gztell($fp) + $size);
262 fwrite($fp, <<<EOT
277 fprintf($fp, "%s\r\n", $ext);
279 fwrite($fp, "\r\n\r\n");
292 fwrite($fp, "\r\n");
[all …]
/PHP-5.5/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://". dirname(__FILE__). "/../../../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-5.5/ext/curl/tests/
H A Dbug45161.phpt21 $fp = fopen('/dev/null', 'w');
27 curl_setopt($ch, CURLOPT_FILE, $fp);
36 curl_setopt($ch, CURLOPT_FILE, $fp);
45 fclose($fp);
46 unset($fp);
/PHP-5.5/Zend/tests/
H A Dhalt02.phpt6 $fp = fopen(__FILE__, "r");
7 fseek($fp, __COMPILER_HALT_OFFSET__+1);
8 print fread($fp, 1000);
/PHP-5.5/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)
/PHP-5.5/ext/standard/tests/file/
H A Dbug38450.phpt89 $fp = fopen("var://myvar", "r+");
91 fwrite($fp, b"line1\n");
92 fwrite($fp, b"line2\n");
93 fwrite($fp, b"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, b"line1\n");
92 fwrite($fp, b"line2\n");
93 fwrite($fp, b"line3\n");
95 rewind($fp);
96 while (!feof($fp)) {
97 echo fgets($fp);
99 fclose($fp);
H A Dbug38450_3.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 Dfgetss1.phpt20 $fp = fopen($filename, "r");
21 var_dump(fgetss($fp, 1000, "<i>,<b>,<a>"));
22 var_dump(fgetss($fp));
27 $fp = fopen($filename, "r");
28 var_dump(fgetss($fp, 10));
29 var_dump(fgetss($fp, 10, "<script>,<a>"));
/PHP-5.5/ext/standard/tests/image/
H A Diptcembed_001.phpt7 $fp = fopen($file, "w");
8 fwrite($fp, "-1-1");
9 fclose($fp);
/PHP-5.5/ext/zip/lib/
H A Dzip_fdopen.c44 FILE *fp; in zip_fdopen() local
54 if ((fp=fdopen(fd, "rb")) == NULL) { in zip_fdopen()
61 return _zip_open(NULL, fp, flags, ZIP_AFL_RDONLY, zep); in zip_fdopen()

Completed in 47 milliseconds

12345678910>>...37