Home
last modified time | relevance | path

Searched refs:fp (Results 26 – 50 of 909) sorted by last modified time

12345678910>>...37

/PHP-5.5/sapi/cli/tests/
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_008.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_009.phpt19 if (!$fp) {
30 while (!feof($fp)) {
31 echo fgets($fp);
35 fclose($fp);
38 if (!$fp) {
50 while (!feof($fp)) {
51 echo fgets($fp);
55 fclose($fp);
58 if (!$fp) {
71 echo fgets($fp);
[all …]
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_012.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_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 …]
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 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_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_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 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_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);
/PHP-5.5/sapi/cli/
H A Dphp_cli.c631 if (!(file_handle->handle.fp = VCWD_FOPEN(script_file, "rb"))) { in cli_seek_file_begin()
638 c = fgetc(file_handle->handle.fp); in cli_seek_file_begin()
639 if (c == '#' && (c = fgetc(file_handle->handle.fp)) == '!') { in cli_seek_file_begin()
641 c = fgetc(file_handle->handle.fp); /* skip to end of line */ in cli_seek_file_begin()
645 if (fgetc(file_handle->handle.fp) != '\n') { in cli_seek_file_begin()
646 long pos = ftell(file_handle->handle.fp); in cli_seek_file_begin()
647 fseek(file_handle->handle.fp, pos - 1, SEEK_SET); in cli_seek_file_begin()
652 rewind(file_handle->handle.fp); in cli_seek_file_begin()
949 file_handle.handle.fp = stdin; in do_cli()
967 fclose(file_handle.handle.fp); in do_cli()
H A Dphp_cli_server.c2024 zfd.handle.fp = NULL; in php_cli_server_dispatch_script()
2135 zfd.handle.fp = NULL; in php_cli_server_dispatch_router()
/PHP-5.5/sapi/cgi/
H A Dcgi_main.c2318 file_handle.handle.fp = NULL;
2322 file_handle.handle.fp = stdin;
2393 file_handle.handle.fp = fdopen(file_handle.handle.fd, "rb");
2396 if (!file_handle.handle.fp ||
2397 (file_handle.handle.fp == stdin)) {
2400 c = fgetc(file_handle.handle.fp);
2403 c = fgetc(file_handle.handle.fp); /* skip to end of line */
2407 if (fgetc(file_handle.handle.fp) != '\n') {
2408 long pos = ftell(file_handle.handle.fp);
2409 fseek(file_handle.handle.fp, pos - 1, SEEK_SET);
[all …]
/PHP-5.5/
H A Drun-tests.php326 $fp = fopen("php://stdin", "r+");
338 $user_input = fgets($fp, 10);
360 $user_email = trim(fgets($fp, 1024));
443 fclose($fp);
1217 if (!feof($fp)) {
1218 $line = fgets($fp);
1237 while (!feof($fp)) {
1238 $line = fgets($fp);
1314 fclose($fp);
2624 } elseif (!$fp = fopen($JUNIT, 'w')) {
[all …]
/PHP-5.5/pear/
H A Dfetch.php66 $fp = fopen($argv[1], "r", false, $ctx); variable
67 if (is_resource($fp) && file_put_contents($argv[2], $fp)) {
/PHP-5.5/main/streams/
H A Dcast.c356 FILE *fp = NULL; in _php_stream_open_wrapper_as_file() local
365 …STREAM_AS_STDIO|PHP_STREAM_CAST_TRY_HARD|PHP_STREAM_CAST_RELEASE, (void**)&fp, REPORT_ERRORS) == F… in _php_stream_open_wrapper_as_file()
372 return fp; in _php_stream_open_wrapper_as_file()
/PHP-5.5/main/
H A Dphp_ini.c557 fh.handle.fp = VCWD_FOPEN(php_ini_file_name, "r"); in php_init_config()
558 if (fh.handle.fp) { in php_init_config()
566 if (!fh.handle.fp) { in php_init_config()
570 …fh.handle.fp = php_fopen_with_path(ini_fname, "r", php_ini_search_path, &php_ini_opened_path TSRML… in php_init_config()
572 if (fh.handle.fp) { in php_init_config()
578 if (!fh.handle.fp) { in php_init_config()
579 …fh.handle.fp = php_fopen_with_path("php.ini", "r", php_ini_search_path, &php_ini_opened_path TSRML… in php_init_config()
580 if (fh.handle.fp) { in php_init_config()
592 if (fh.handle.fp) { in php_init_config()
671 if ((fh2.handle.fp = VCWD_FOPEN(ini_file, "r"))) { in php_init_config()
[all …]
H A Dphp_open_temporary_file.c314 FILE *fp; in php_open_temporary_file() local
321 fp = fdopen(fd, "r+b"); in php_open_temporary_file()
322 if (fp == NULL) { in php_open_temporary_file()
326 return fp; in php_open_temporary_file()
H A Dfopen_wrappers.c344 FILE *fp; local
349 fp = VCWD_FOPEN(path, mode);
350 if (fp && opened_path) {
353 return fp;
616 FILE *fp; local
675 fp = php_fopen_and_set_opened_path(trypath, mode, opened_path TSRMLS_CC);
676 if (fp) {
678 return fp;
/PHP-5.5/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_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);
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);
H A Dzlib_filter_inflate2.phpt12 $fp = fopen(dirname(__FILE__) . '/test.txt.gz', 'r');
13 stream_filter_append($fp, 'zlib.inflate', STREAM_FILTER_READ);
14 echo fread($fp, 2000);
15 fclose($fp);
17 $fp = fopen(dirname(__FILE__) . '/test.txt.gz', 'r');
19 $fp = fopen(dirname(__FILE__) . '/test.txt.gz', 'r');
22 echo fread($fp, 2000);
23 fclose($fp);
25 $fp = fopen(dirname(__FILE__) . '/test.txt.gz', 'r');
28 echo fread($fp, 2000);
[all …]

Completed in 102 milliseconds

12345678910>>...37