/PHP-7.4/ |
H A D | configure.ac | 994 AC_MSG_CHECKING([how big to make fd sets]) 995 PHP_ARG_ENABLE([fd-setsize],, 996 [AS_HELP_STRING([--enable-fd-setsize], 1006 AC_MSG_ERROR([Invalid value passed to --enable-fd-setsize!])
|
/PHP-7.4/sapi/fpm/fpm/ |
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_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()
|
/PHP-7.4/main/ |
H A D | main.c | 891 int fd = -1; in php_log_err_with_severity() local 909 fd = VCWD_OPEN_MODE(PG(error_log), O_CREAT | O_APPEND | O_WRONLY, 0644); in php_log_err_with_severity() 910 if (fd != -1) { in php_log_err_with_severity() 927 php_flock(fd, 2); in php_log_err_with_severity() 929 php_ignore_value(write(fd, tmp, (unsigned)len)); in php_log_err_with_severity() 931 php_ignore_value(write(fd, tmp, len)); in php_log_err_with_severity() 935 close(fd); in php_log_err_with_severity()
|
H A D | rfc1867.c | 692 int fd = -1; local 971 fd = -1; 1012 …fd = php_open_temporary_fd_ex(PG(upload_tmp_dir), "php", &temp_filename, PHP_TMP_FILE_OPEN_BASEDIR… 1014 if (fd == -1) { 1049 wlen = write(fd, buff, (unsigned int)blen); 1051 wlen = write(fd, buff, blen); 1075 if (fd != -1) { /* may not be initialized if file could not be created */ 1076 close(fd);
|
H A D | php_open_temporary_file.c | 101 int fd = -1; in php_do_open_temporary_file() local 181 fd = mkstemp(opened_path); in php_do_open_temporary_file() 189 if (fd != -1 && opened_path_p) { in php_do_open_temporary_file() 194 if (fd != -1 && opened_path_p) { in php_do_open_temporary_file() 199 return fd; in php_do_open_temporary_file() 290 int fd; in php_open_temporary_fd_ex() local 319 if (fd == -1) { in php_open_temporary_fd_ex() 326 return fd; in php_open_temporary_fd_ex() 339 if (fd == -1) { in php_open_temporary_file() 343 fp = fdopen(fd, "r+b"); in php_open_temporary_file() [all …]
|
/PHP-7.4/ext/standard/tests/filters/ |
H A D | bug54350.phpt | 15 $fd = fopen('php://memory','w'); 16 $filter = stream_filter_append($fd, 'user_filter'); 17 fwrite($fd, "foo");
|
/PHP-7.4/ext/fileinfo/ |
H A D | libmagic.patch | 676 - int fd; 688 - fd = -1; 765 - fd = -1; 842 - if (fd != -1) 881 - int fd = -1; 1027 b->fd = fd; 1030 - else if (b->fd == -1 || fstat(b->fd, &b->st) == -1) 1031 + else if (b->fd == -1 || zend_fstat(b->fd, &b->st) == -1) 1525 return fd; 1742 int fd; [all …]
|
/PHP-7.4/ext/date/lib/ |
H A D | parse_date.re | 133 int fd; 325 if((cnt = read(s->fd, (char*) s->lim, BSIZE)) != BSIZE){
|
H A D | parse_date.c | 135 int fd; member 327 if((cnt = read(s->fd, (char*) s->lim, BSIZE)) != BSIZE){
|
H A D | parse_iso_intervals.c | 74 int fd; member
|
/PHP-7.4/sapi/cli/ |
H A D | php_cli.c | 237 static inline int sapi_cli_select(php_socket_t fd) in sapi_cli_select() argument 245 PHP_SAFE_FD_SET(fd, &wfd); in sapi_cli_select() 250 ret = php_select(fd+1, NULL, &wfd, NULL, &tv); in sapi_cli_select()
|
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/standard/ |
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);
|
H A D | file.c | 822 int fd; in PHP_FUNCTION() local 837 …if ((fd = php_open_temporary_fd_ex(dir, ZSTR_VAL(p), &opened_path, PHP_TMP_FILE_OPEN_BASEDIR_CHECK… in PHP_FUNCTION() 838 close(fd); in PHP_FUNCTION() 1092 zval *fd; in PHP_FUNCTION() local 1102 Z_PARAM_RESOURCE(fd) in PHP_FUNCTION() 1108 PHP_STREAM_TO_ZVAL(stream, fd); in PHP_FUNCTION() 1997 zval *fd, *len_zv = NULL; in PHP_FUNCTION() local 2006 Z_PARAM_RESOURCE(fd) in PHP_FUNCTION() 2063 PHP_STREAM_TO_ZVAL(stream, fd); in PHP_FUNCTION()
|
/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 | port.c | 174 if (port_associate(pfd, PORT_SOURCE_FD, ev->fd, POLLIN, (void *)ev) < 0) { in fpm_event_port_add() 188 if (port_dissociate(pfd, PORT_SOURCE_FD, ev->fd) < 0) { in fpm_event_port_remove()
|
/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 …]
|
/PHP-7.4/ext/posix/ |
H A D | posix.c | 146 ZEND_ARG_INFO(0, fd) 150 ZEND_ARG_INFO(0, fd) 804 int fd; in PHP_FUNCTION() local 815 if (!php_posix_stream_get_fd(z_fd, &fd)) { in PHP_FUNCTION() 820 fd = zval_get_long(z_fd); in PHP_FUNCTION() 829 if (ttyname_r(fd, p, buflen)) { in PHP_FUNCTION() 837 if (NULL == (p = ttyname(fd))) { in PHP_FUNCTION() 851 int fd; in PHP_FUNCTION() local 859 if (!php_posix_stream_get_fd(z_fd, &fd)) { in PHP_FUNCTION() 864 fd = zval_get_long(z_fd); in PHP_FUNCTION() [all …]
|
/PHP-7.4/sapi/fpm/tests/ |
H A D | logtool.inc | 301 if (!$this->expectNotice($lines[$i], 'using inherited socket fd=\d+, "[^"]+"')) {
|
/PHP-7.4/ext/dba/ |
H A D | dba.c | 961 if (SUCCESS != php_stream_cast(info->fp, PHP_STREAM_AS_FD, (void*)&info->fd, 1)) { in php_dba_open() 968 int flags = fcntl(info->fd, F_GETFL); in php_dba_open() 969 fcntl(info->fd, F_SETFL, flags & ~O_APPEND); in php_dba_open() 981 info->fd = -1; in php_dba_open()
|
/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);
|
/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/sapi/phpdbg/ |
H A D | phpdbg_prompt.c | 506 …} while ((bytes = phpdbg_mixed_read(PHPDBG_G(io)[PHPDBG_STDIN].fd, PHPDBG_G(input_buffer) + PHPDBG… in PHPDBG_COMMAND() 1217 FILE *fd = NULL; in PHPDBG_COMMAND() local 1218 if ((fd=VCWD_POPEN((char*)param->str, "w"))) { in PHPDBG_COMMAND() 1220 pclose(fd); in PHPDBG_COMMAND()
|
/PHP-7.4/ext/phar/ |
H A D | util.c | 993 fd = PHAR_G(last_phar); in phar_get_archive() 994 fd_ptr = fd; in phar_get_archive() 1015 fd = fd_ptr; in phar_get_archive() 1016 PHAR_G(last_phar) = fd; in phar_get_archive() 1037 fd = fd_ptr; in phar_get_archive() 1040 …if (!fd->is_temporary_alias && (alias_len != fd->alias_len || memcmp(fd->alias, alias, alias_len))… in phar_get_archive() 1047 …if (fd->alias_len && NULL != (fd_ptr = zend_hash_str_find_ptr(&(PHAR_G(phar_alias_map)), fd->alias… in phar_get_archive() 1048 zend_hash_str_del(&(PHAR_G(phar_alias_map)), fd->alias, fd->alias_len); in phar_get_archive() 1065 fd = fd_ptr; in phar_get_archive() 1070 if (alias_len != fd->alias_len || memcmp(fd->alias, alias, alias_len)) { in phar_get_archive() [all …]
|