/PHP-7.4/ext/bz2/tests/ |
H A D | 003-mb.phpt | 8 $fd = bzopen(__DIR__."/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 D | 003.phpt | 8 $fd = bzopen(__DIR__."/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.4/ext/fileinfo/libmagic/ |
H A D | compress.c | 225 int fd = b->fd; in file_zmagic() local 474 if ((fd = dup2(tfd, fd)) == -1) { in file_pipe2file() 483 return fd; in file_pipe2file() 595 if (fd[i] == -1) in closefd() 597 (void) close(fd[i]); in closefd() 598 fd[i] = -1; in closefd() 602 closep(int *fd) in closep() argument 606 closefd(fd, i); in closep() 612 if (fd == i) in copydesc() 732 if (fd != -1) { in uncompressbuf() [all …]
|
/PHP-7.4/ext/standard/ |
H A D | php_fopen_wrapper.c | 181 int fd = -1; in php_stream_url_wrap_php() local 249 fd = STDIN_FILENO; in php_stream_url_wrap_php() 251 fd = dup(fd); in php_stream_url_wrap_php() 257 fd = dup(STDIN_FILENO); in php_stream_url_wrap_php() 265 fd = STDOUT_FILENO; in php_stream_url_wrap_php() 267 fd = dup(fd); in php_stream_url_wrap_php() 281 fd = STDERR_FILENO; in php_stream_url_wrap_php() 283 fd = dup(fd); in php_stream_url_wrap_php() 335 if (fd == -1) { in php_stream_url_wrap_php() 390 if (fd == -1) { in php_stream_url_wrap_php() [all …]
|
H A D | flock_compat.c | 35 PHPAPI int flock(int fd, int operation) in flock() argument 37 return php_flock(fd, operation); in flock() 41 PHPAPI int php_flock(int fd, int operation) in php_flock() argument 61 ret = fcntl(fd, operation & LOCK_NB ? F_SETLK : F_SETLKW, &flck); in php_flock() 118 HANDLE hdl = (HANDLE) _get_osfhandle(fd);
|
/PHP-7.4/ext/standard/tests/streams/ |
H A D | bug74090.phpt | 21 $fd = stream_socket_client("udp://localhost:$port", $errno, $errstr, 0, STREAM_CLIENT_CONNECT | STR… 22 stream_set_blocking($fd, 0); 23 stream_socket_sendto($fd, $data); 26 $ret = stream_get_contents($fd, 65565); 28 stream_socket_shutdown($fd, STREAM_SHUT_RDWR);
|
/PHP-7.4/sapi/cli/tests/ |
H A D | 022.inc | 6 $fd = fopen("php://stdin","r"); 7 var_dump($fd); 9 $client_socket = stream_socket_accept($fd);
|
/PHP-7.4/main/streams/ |
H A D | plain_wrapper.c | 158 int fd; in do_fstat() local 182 self->fd = fd; in _php_stream_fopen_from_fd_int() 213 int fd; in _php_stream_fopen_temporary_file() local 216 if (fd != -1) { in _php_stream_fopen_temporary_file() 234 close(fd); in _php_stream_fopen_temporary_file() 508 data->fd = -1; in php_stdiop_close() 637 int fd; in php_stdiop_set_option() local 648 if (fd == -1) in php_stdiop_set_option() 935 if (fd == -1) in php_stdiop_set_option() 1047 int fd; in _php_stream_fopen() local [all …]
|
/PHP-7.4/sapi/fpm/fpm/events/ |
H A D | devpoll.c | 96 pollfds[i].fd = -1; in fpm_event_devpoll_init() 177 if (q->ev && q->ev->fd == active_pollfds[i].fd) { in fpm_event_devpoll_wait() 204 pollfd.fd = ev->fd; in fpm_event_devpoll_add() 215 ev->index = ev->fd; in fpm_event_devpoll_add() 229 pollfd.fd = ev->fd; in fpm_event_devpoll_remove()
|
/PHP-7.4/ext/fileinfo/tests/ |
H A D | cve-2014-1943-mb.phpt | 9 $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 D | cve-2014-1943.phpt | 9 $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));
|
/PHP-7.4/ext/standard/tests/file/ |
H A D | userstreams_004.phpt | 19 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 D | fopen_variation1.phpt | 8 $fd = fopen($file, "r", true); 9 var_dump($fd); 10 fclose($fd);
|
H A D | userstreams_006.phpt | 24 $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 D | bug45303.phpt | 5 $fd = fopen("php://stdout","a"); 6 var_dump($fd); 7 var_dump(fseek($fd, 1024*1024, SEEK_SET));
|
H A D | php_fd_wrapper_04.phpt | 2 php://fd wrapper: invalid file descriptor 5 fopen("php://fd/1023", "w"); 9 Warning: fopen(php://fd/1023): failed to open stream: Error duping file descriptor 1023; possibly i…
|
H A D | userstreams_002.phpt | 19 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 D | userstreams_005.phpt | 26 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.4/sapi/fpm/fpm/ |
H A D | fpm_sockets.h | 32 static inline int fd_set_blocked(int fd, int blocked) /* {{{ */ in fd_set_blocked() argument 34 int flags = fcntl(fd, F_GETFL); in fd_set_blocked() 45 return fcntl(fd, F_SETFL, flags); in fd_set_blocked()
|
/PHP-7.4/tests/output/ |
H A D | sapi_windows_vt100_support.inc | 31 'STDIN (php://fd/0)' => fopen('php://fd/0', 'rb'), 34 'STDOUT (php://fd/1)' => fopen('php://fd/1', 'wb'), 37 'STDERR (php://fd/2)' => fopen('php://fd/2', 'wb'),
|
/PHP-7.4/sapi/phpdbg/ |
H A D | phpdbg_io.c | 105 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 D | phpdbg_sigio_win32.c | 36 (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()
|
/PHP-7.4/ext/standard/tests/filters/ |
H A D | bug46164-1.phpt | 16 $fd = fopen('php://memory','w'); 17 $filter = stream_filter_append($fd, 'user_filter'); 19 var_dump(fclose($fd));
|
/PHP-7.4/ext/gd/libgd/ |
H A D | gd_xbm.c | 34 gdImagePtr gdImageCreateFromXbm(FILE * fd) in gdImageCreateFromXbm() argument 51 rewind(fd); in gdImageCreateFromXbm() 52 while (fgets(fline, MAX_XBM_LINE_SIZE, fd)) { in gdImageCreateFromXbm() 109 if ((ch=getc(fd)) == EOF) { in gdImageCreateFromXbm() 121 if ((ch=getc(fd)) == EOF) { in gdImageCreateFromXbm() 125 if ((ch=getc(fd)) == EOF) { in gdImageCreateFromXbm() 130 if ((ch=getc(fd)) == EOF) { in gdImageCreateFromXbm() 134 if ((ch=getc(fd)) == EOF) { in gdImageCreateFromXbm()
|
/PHP-7.4/ext/ftp/ |
H A D | ftp.c | 324 p.fd = ftp->fd; in ftp_login() 1416 fd = ftp->fd; in single_send() 1419 fd = ftp->data->fd; in single_send() 1443 p.fd = fd; in single_send() 1531 fd = ftp->fd; in my_recv() 1534 fd = ftp->data->fd; in my_recv() 1557 p.fd = fd; in my_recv() 1661 int fd = -1; in ftp_getdata() local 1679 data->fd = -1; in ftp_getdata() 1704 data->fd = fd; in ftp_getdata() [all …]
|