/PHP-7.4/ext/standard/tests/file/ |
H A D | chmod_basic.phpt | 16 $fd = fopen($filename, "w+"); 17 fclose($fd);
|
H A D | file_variation5-win32-mb.phpt | 19 $fd = fopen($filepath, "w+"); 20 fwrite($fd, "Line 1\nLine 2\nLine 3"); 21 fclose($fd);
|
H A D | file_variation5-win32.phpt | 19 $fd = fopen($filepath, "w+"); 20 fwrite($fd, "Line 1\nLine 2\nLine 3"); 21 fclose($fd);
|
H A D | fgets_socket_variation2.phpt | 10 $fd = fopen($filename, "w+"); 15 fwrite($fd, LINE_OF_DATA); 17 fclose($fd);
|
H A D | file_variation5.phpt | 19 $fd = fopen($filepath, "w+"); 20 fwrite($fd, "Line 1\nLine 2\nLine 3"); 21 fclose($fd);
|
/PHP-7.4/sapi/fpm/fpm/ |
H A D | fpm_log.c | 36 int fd; in fpm_log_open() local 43 fd = open(wp->config->access_log, O_WRONLY | O_APPEND | O_CREAT, S_IRUSR | S_IWUSR); in fpm_log_open() 44 if (0 > fd) { in fpm_log_open() 52 dup2(fd, wp->log_fd); in fpm_log_open() 53 close(fd); in fpm_log_open() 54 fd = wp->log_fd; in fpm_log_open() 57 wp->log_fd = fd; in fpm_log_open() 60 if (0 > fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC)) { in fpm_log_open()
|
H A D | fpm_events.h | 14 int fd; /* not set with FPM_EV_TIMEOUT */ member 43 int fpm_event_set(struct fpm_event_s *ev, int fd, int flags, void (*callback)(struct fpm_event_s *,…
|
H A D | fpm_sockets.c | 67 char fd[32]; in fpm_sockets_cleanup() local 68 sprintf(fd, "%d", ls->sock); in fpm_sockets_cleanup() 71 …env_value = realloc(env_value, p + (p ? 1 : 0) + strlen(ls->key) + 1 + strlen(fd) + socket_set_buf… in fpm_sockets_cleanup() 81 …sprintf(env_value + p + socket_set_buf, "%s%s=%s", (p && !socket_set_buf) ? "," : "", ls->key, fd); in fpm_sockets_cleanup() 567 int fd; in fpm_socket_unix_test_connect() local 573 if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) < 0) { in fpm_socket_unix_test_connect() 577 if (connect(fd, (struct sockaddr *)sock, socklen) == -1) { in fpm_socket_unix_test_connect() 578 close(fd); in fpm_socket_unix_test_connect() 582 close(fd); in fpm_socket_unix_test_connect()
|
H A D | zlog.c | 265 struct zlog_stream *stream, int flags, size_t capacity, int fd); 324 zend_quiet_write(stream->fd, buf, len); in zlog_stream_direct_write_ex() 326 zend_quiet_write(stream->fd, append, append_len); in zlog_stream_direct_write_ex() 515 if (fd == 0) { in zlog_stream_init_internal() 516 fd = zlog_fd; in zlog_stream_init_internal() 521 stream->use_syslog = fd == ZLOG_SYSLOG; in zlog_stream_init_internal() 522 stream->use_fd = fd > 0; in zlog_stream_init_internal() 525 stream->use_stderr = fd < 0 || in zlog_stream_init_internal() 527 fd != STDERR_FILENO && fd != STDOUT_FILENO && !launched && in zlog_stream_init_internal() 532 stream->fd = fd > -1 ? fd : STDERR_FILENO; in zlog_stream_init_internal() [all …]
|
H A D | fpm_events.c | 66 int fd = ev->fd; in fpm_got_signal() local 70 res = read(fd, &c, 1); in fpm_got_signal() 486 int fpm_event_set(struct fpm_event_s *ev, int fd, int flags, void (*callback)(struct fpm_event_s *,… in fpm_event_set() argument 488 if (!ev || !callback || fd < -1) { in fpm_event_set() 492 ev->fd = fd; in fpm_event_set()
|
/PHP-7.4/ext/fileinfo/libmagic/ |
H A D | elfclass.h | 43 if (dophn_core(ms, clazz, swap, fd, 58 if (dophn_exec(ms, clazz, swap, fd, 68 if (doshn(ms, clazz, swap, fd,
|
/PHP-7.4/sapi/litespeed/ |
H A D | lsapilib.c | 854 if ( fd == -1 ) in readSecret() 862 close( fd ); in readSecret() 876 close( fd ); in readSecret() 882 close( fd ); in readSecret() 885 close( fd ); in readSecret() 1520 fd = dup( fd ); in LSAPI_InitRequest() 2574 int fd; in LSAPI_CreateListenSock2() local 2613 close(fd); in LSAPI_CreateListenSock2() 2722 int fd = -1; in LSAPI_CreateListenSock() local 2728 return fd; in LSAPI_CreateListenSock() [all …]
|
/PHP-7.4/ext/standard/tests/http/ |
H A D | bug80838.phpt | 26 $fd = fopen('http://127.0.0.1:12342/', 'rb', false, $ctx); 27 fclose($fd);
|
H A D | bug79265_2.phpt | 25 $fd = fopen('http://127.0.0.1:12342/', 'rb', false, $context); 28 fclose($fd);
|
H A D | bug79265.phpt | 26 $fd = fopen('http://127.0.0.1:12342/', 'rb', false, $context); 29 fclose($fd);
|
H A D | bug38802.phpt | 24 $fd = fopen('http://127.0.0.1:12342/foo/bar', 'rb', false, $context); 25 var_dump($fd); 27 if ($fd) { 28 $meta_data = stream_get_meta_data($fd); 31 var_dump(stream_get_contents($fd));
|
/PHP-7.4/sapi/fpm/fpm/events/ |
H A D | kqueue.c | 168 EV_SET(&k, ev->fd, EVFILT_READ, flags, 0, 0, (void *)ev); in fpm_event_kqueue_add() 176 ev->index = ev->fd; in fpm_event_kqueue_add() 193 EV_SET(&k, ev->fd, EVFILT_READ, flags, 0, 0, (void *)ev); in fpm_event_kqueue_remove()
|
/PHP-7.4/ext/standard/tests/array/ |
H A D | bug68553.phpt | 8 $fd = fopen(__FILE__, "r"); 9 fclose($fd);
|
/PHP-7.4/ext/opcache/ |
H A D | zend_file_cache.c | 889 int fd; local 915 close(fd); 962 close(fd); 976 close(fd); 989 close(fd); 1521 int fd; local 1543 close(fd); 1551 close(fd); 1561 close(fd); 1569 close(fd); [all …]
|
H A D | config.m4 | 167 int fd; 175 fd = shm_open(tmpname, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); 176 if (fd == -1) { 179 if (ftruncate(fd, 4096) < 0) { 180 close(fd); 185 shm = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); 190 close(fd);
|
/PHP-7.4/sapi/phpdbg/ |
H A D | phpdbg_sigsafe.c | 16 …zend_quiet_write(PHPDBG_G(io)[PHPDBG_STDERR].fd, ZEND_STRL("Tried to allocate more than " EXP_STR(… in ZEND_EXTERN_MODULE_GLOBALS() 22 …zend_quiet_write(PHPDBG_G(io)[PHPDBG_STDERR].fd, ZEND_STRL("Bailed out without a bailout address i… in ZEND_EXTERN_MODULE_GLOBALS()
|
H A D | phpdbg_sigio_win32.h | 29 int fd; member
|
/PHP-7.4/win32/ |
H A D | ioutil.c | 193 int fd; in php_win32_ioutil_open_w() local 234 if (fd < 0) { in php_win32_ioutil_open_w() 251 _setmode(fd, _O_TEXT); in php_win32_ioutil_open_w() 253 _setmode(fd, _O_BINARY); in php_win32_ioutil_open_w() 256 return fd; in php_win32_ioutil_open_w() 267 if (-1 == fd) { in php_win32_ioutil_close() 272 if (fd > 2) { in php_win32_ioutil_close() 273 result = _close(fd); in php_win32_ioutil_close() 716 if (0 > fd) { in php_win32_ioutil_fopen_w() 722 ret = _wfdopen(fd, mode); in php_win32_ioutil_fopen_w() [all …]
|
/PHP-7.4/sapi/cli/ |
H A D | php_cli_server.c | 844 poller->max_fd = fd; in php_cli_server_poller_add() 858 while (fd > 0) { in php_cli_server_poller_remove() 859 fd--; in php_cli_server_poller_remove() 864 poller->max_fd = fd; in php_cli_server_poller_remove() 881 SOCKET fd; in php_cli_server_poller_iter_on_active() member 898 if (e->fd == fd) { in php_cli_server_poller_iter_on_active() 905 n->fd = fd; in php_cli_server_poller_iter_on_active() 920 php_socket_t fd; in php_cli_server_poller_iter_on_active() local 923 for (fd=0 ; fd<=max_fd ; fd++) { in php_cli_server_poller_iter_on_active() 2113 int fd; in php_cli_server_begin_send_static() local [all …]
|
/PHP-7.4/ext/dba/ |
H A D | dba_dbm.c | 46 if((fd = VCWD_OPEN_MODE(buf, O_CREAT | mode | O_WRONLY, filemode)) == -1) \ 48 close(fd); 57 int fd; in DBA_OPEN_FUNC() local
|