Home
last modified time | relevance | path

Searched refs:fd (Results 26 – 50 of 189) sorted by relevance

12345678

/PHP-7.1/ext/bz2/tests/
H A D003-mb.phpt8 $fd = bzopen(dirname(__FILE__)."/003私はガラスを食べられます.txt.bz2","r");
10 var_dump(bzread($fd, 1 ,0));
11 var_dump(bzread($fd, 0));
12 var_dump(bzread($fd, -10));
13 var_dump(bzread($fd, 1));
14 var_dump(bzread($fd, 2));
15 var_dump(bzread($fd, 100000));
H A D003.phpt8 $fd = bzopen(dirname(__FILE__)."/003.txt.bz2","r");
10 var_dump(bzread($fd, 1 ,0));
11 var_dump(bzread($fd, 0));
12 var_dump(bzread($fd, -10));
13 var_dump(bzread($fd, 1));
14 var_dump(bzread($fd, 2));
15 var_dump(bzread($fd, 100000));
/PHP-7.1/ext/standard/
H A Dphp_fopen_wrapper.c181 int fd = -1; in php_stream_url_wrap_php() local
257 fd = STDIN_FILENO; in php_stream_url_wrap_php()
259 fd = dup(fd); in php_stream_url_wrap_php()
265 fd = dup(STDIN_FILENO); in php_stream_url_wrap_php()
273 fd = STDOUT_FILENO; in php_stream_url_wrap_php()
275 fd = dup(fd); in php_stream_url_wrap_php()
289 fd = STDERR_FILENO; in php_stream_url_wrap_php()
291 fd = dup(fd); in php_stream_url_wrap_php()
343 if (fd == -1) { in php_stream_url_wrap_php()
393 if (fd == -1) { in php_stream_url_wrap_php()
[all …]
H A Dflock_compat.c41 PHPAPI int flock(int fd, int operation) in flock() argument
43 return php_flock(fd, operation); in flock()
47 PHPAPI int php_flock(int fd, int operation) in php_flock() argument
67 ret = fcntl(fd, operation & LOCK_NB ? F_SETLK : F_SETLKW, &flck); in php_flock()
124 HANDLE hdl = (HANDLE) _get_osfhandle(fd);
/PHP-7.1/sapi/fpm/fpm/events/
H A Ddevpoll.c98 pollfds[i].fd = -1; in fpm_event_devpoll_init()
179 if (q->ev && q->ev->fd == active_pollfds[i].fd) { in fpm_event_devpoll_wait()
206 pollfd.fd = ev->fd; in fpm_event_devpoll_add()
217 ev->index = ev->fd; in fpm_event_devpoll_add()
231 pollfd.fd = ev->fd; in fpm_event_devpoll_remove()
/PHP-7.1/ext/fileinfo/tests/
H A Dcve-2014-1943-mb.phpt9 $fd = __DIR__.'/cve-2014-1943私はガラスを食べられます.data';
17 file_put_contents($fd, $a);
19 var_dump(finfo_file($fi, $fd));
22 file_put_contents($fd, $b);
25 var_dump(finfo_file($fi, $fd));
H A Dcve-2014-1943.phpt9 $fd = __DIR__.'/cve-2014-1943.data';
17 file_put_contents($fd, $a);
19 var_dump(finfo_file($fi, $fd));
22 file_put_contents($fd, $b);
25 var_dump(finfo_file($fi, $fd));
H A Dcve-2014-3538-mb.phpt9 $fd = __DIR__.'/cve-2014-3538私はガラスを食べられます.data';
11 file_put_contents($fd,
17 var_dump(finfo_file($fi, $fd));
H A Dcve-2014-3538.phpt9 $fd = __DIR__.'/cve-2014-3538.data';
11 file_put_contents($fd,
17 var_dump(finfo_file($fi, $fd));
/PHP-7.1/ext/standard/tests/file/
H A Duserstreams_004.phpt19 function test($name, $fd, $mode) {
21 flock($fd, $mode);
22 $data = stream_get_meta_data($fd);
29 $fd = fopen("test://foo","r");
35 test("fclock($mode)", $fd, constant($mode));
36 test("fclock($mode|LOCK_NB)", $fd, constant($mode)|LOCK_NB);
H A Dfopen_variation1.phpt8 $fd = fopen($file, "r", true);
9 var_dump($fd);
10 fclose($fd);
H A Duserstreams_006.phpt24 $fd = fopen("test://foo","r");
26 var_dump(stream_set_write_buffer($fd, 50));
27 var_dump(stream_set_chunk_size($fd, 42));
29 var_dump(fwrite($fd, str_repeat('0', 70)));
H A Duserstreams_002.phpt19 function test($name, $fd, $return_value) {
21 $data = stream_get_meta_data($fd);
23 $r = array($fd);
31 $fd = fopen("test://foo","r");
34 test("valid stream", $fd, STDIN);
36 test("return value is false", $fd, false);
37 test("return value not a stream resource", $fd, "foo");
38 test("return value is stream itself", $fd, $fd);
39 test("return value cannot be casted", $fd, $fd2);
H A Dbug45303.phpt5 $fd = fopen("php://stdout","a");
6 var_dump($fd);
7 var_dump(fseek($fd, 1024*1024, SEEK_SET));
H A Duserstreams_005.phpt26 function test($name, $fd, $dest_size) {
28 var_dump(ftruncate($fd, $dest_size));
34 $fd = fopen("test://foo","r");
39 test("stream_truncate size 0", $fd, 0);
40 test("stream_truncate size 10", $fd, 10);
41 test("stream_truncate negative size", $fd, -1);
/PHP-7.1/sapi/cli/tests/
H A D022.inc6 $fd = fopen("php://stdin","r");
7 var_dump($fd);
9 $client_socket = stream_socket_accept($fd);
/PHP-7.1/ext/ftp/
H A Dftp.c331 p.fd = ftp->fd; in ftp_login()
1302 fd = ftp->fd; in my_send()
1305 fd = ftp->data->fd; in my_send()
1328 p.fd = fd; in my_send()
1391 fd = ftp->fd; in my_recv()
1394 fd = ftp->data->fd; in my_recv()
1417 p.fd = fd; in my_recv()
1521 int fd = -1; in ftp_getdata() local
1538 data->fd = -1; in ftp_getdata()
1563 data->fd = fd; in ftp_getdata()
[all …]
/PHP-7.1/ext/zip/lib/
H A Dzip_fdopen.c44 int fd; in zip_fdopen() local
58 if ((fd=dup(fd_orig)) < 0) { in zip_fdopen()
63 if ((fp=fdopen(fd, "rb")) == NULL) { in zip_fdopen()
64 close(fd); in zip_fdopen()
/PHP-7.1/sapi/phpdbg/
H A Dphpdbg_io.c105 pfd.fd = sock;
230 && PHPDBG_G(io)[PHPDBG_STDOUT].fd == sock
240 int fd = phpdbg_create_listenable_socket(interface, port, &res); local
242 if (fd == -1) {
246 if (bind(fd, res.ai_addr, res.ai_addrlen) == -1) {
247 phpdbg_close_socket(fd);
251 listen(fd, 5);
253 return fd;
307 zend_quiet_write(PHPDBG_G(io)[PHPDBG_STDERR].fd, buf, strlen(buf));
316 zend_quiet_write(PHPDBG_G(io)[PHPDBG_STDERR].fd, buf, strlen(buf));
[all …]
H A Dphpdbg_sigio_win32.c36 (void)phpdbg_consume_bytes(swd->fd, &sig, 1, -1); in ZEND_EXTERN_MODULE_GLOBALS()
73 PHPDBG_G(swd).fd = PHPDBG_G(io)[PHPDBG_STDIN].fd; in sigio_watcher_start()
109 PHPDBG_G(swd).fd = -1; in sigio_watcher_stop()
H A Dphpdbg_out.c969 phpdbg_mixed_write(fd, ZEND_STRL("\n")); in phpdbg_process_print()
986 phpdbg_mixed_write(fd, ZEND_STRL("\n")); in phpdbg_process_print()
1038 phpdbg_mixed_write(fd, buf, buflen); in phpdbg_process_print()
1041 phpdbg_mixed_write(fd, msg, msglen); in phpdbg_process_print()
1080 phpdbg_mixed_write(fd, xmlout, xmloutlen); in phpdbg_process_print()
1084 phpdbg_mixed_write(fd, msgout, msgoutlen); in phpdbg_process_print()
1124 PHPDBG_G(err_buf).fd = fd; in phpdbg_vprint()
1226 len = phpdbg_mixed_write(fd, buffer, buflen); in phpdbg_xml_internal()
1243 len = phpdbg_mixed_write(fd, buffer, buflen); in phpdbg_log_internal()
1277 len = phpdbg_mixed_write(fd, msg, msglen); in phpdbg_out_internal()
[all …]
/PHP-7.1/sapi/fpm/fpm/
H A Dfpm_sockets.h33 static inline int fd_set_blocked(int fd, int blocked) /* {{{ */ in fd_set_blocked() argument
35 int flags = fcntl(fd, F_GETFL); in fd_set_blocked()
46 return fcntl(fd, F_SETFL, flags); in fd_set_blocked()
/PHP-7.1/ext/gd/libgd/
H A Dxbm.c33 gdImagePtr gdImageCreateFromXbm(FILE * fd) in gdImageCreateFromXbm() argument
50 rewind(fd); in gdImageCreateFromXbm()
51 while (fgets(fline, MAX_XBM_LINE_SIZE, fd)) { in gdImageCreateFromXbm()
108 if ((ch=getc(fd)) == EOF) { in gdImageCreateFromXbm()
120 if ((ch=getc(fd)) == EOF) { in gdImageCreateFromXbm()
124 if ((ch=getc(fd)) == EOF) { in gdImageCreateFromXbm()
129 if ((ch=getc(fd)) == EOF) { in gdImageCreateFromXbm()
133 if ((ch=getc(fd)) == EOF) { in gdImageCreateFromXbm()
/PHP-7.1/ext/standard/tests/filters/
H A Dbug46164-1.phpt16 $fd = fopen('php://memory','w');
17 $filter = stream_filter_append($fd, 'user_filter');
19 var_dump(fclose($fd));
/PHP-7.1/ext/standard/tests/http/
H A Dbug43510.phpt19 $fd = fopen('http://127.0.0.1:12342/', $mode, false);
20 $meta = stream_get_meta_data($fd);
22 fclose($fd);

Completed in 42 milliseconds

12345678