/PHP-7.0/ext/zip/lib/ |
H A D | mkstemp.c | 64 int fd; in _zip_mkstemp() 128 if ((fd=open(path, O_CREAT|O_EXCL|O_RDWR|O_BINARY, 0600)) >= 0) in _zip_mkstemp() 129 return (fd); in _zip_mkstemp()
|
/PHP-7.0/ext/standard/tests/file/ |
H A D | bug71882.phpt | 5 $fd = fopen("php://memory", "w+"); 6 var_dump(ftruncate($fd, -1));
|
H A D | file_variation7.phpt | 7 $fd = fopen($filepath, "w+"); 8 fwrite($fd, "Line 1\n\n \n \n\Line 3"); 9 fclose($fd);
|
H A D | php_fd_wrapper_04.phpt | 2 php://fd wrapper: invalid file descriptor 14 fopen("php://fd/12", "w"); 18 Warning: fopen(php://fd/12): failed to open stream: Error duping file descriptor 12; possibly it do…
|
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 | chmod_basic.phpt | 16 $fd = fopen($filename, "w+"); 17 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.0/ext/curl/tests/ |
H A D | bug62839.phpt | 10 $fd = tmpfile(); 11 curl_setopt($curl, CURLOPT_FILE, $fd);
|
/PHP-7.0/main/ |
H A D | fastcgi.c | 48 #define FCGI_LOCK(fd) \ argument 129 # define FCGI_LOCK(fd) argument 215 int fd; member 886 req->fd = -1; in fcgi_init_request() 1308 close(req->fd); in fcgi_close() 1313 req->fd = -1; in fcgi_close() 1370 if (req->fd < 0) { 1415 req->fd = -1; 1436 fds.fd = req->fd; 1485 return req->fd; [all …]
|
/PHP-7.0/ext/mysqlnd/ |
H A D | mysqlnd_loaddata.c | 54 info->fd = php_stream_open_wrapper_ex((char *)filename, "r", 0, NULL, context); in mysqlnd_local_infile_init() 56 if (info->fd == NULL) { in mysqlnd_local_infile_init() 76 count = (int) php_stream_read(info->fd, (char *) buf, buf_len); in mysqlnd_local_infile_read() 117 if (info->fd) { in mysqlnd_local_infile_end() 118 php_stream_close(info->fd); in mysqlnd_local_infile_end() 119 info->fd = NULL; in mysqlnd_local_infile_end()
|
/PHP-7.0/ext/standard/ |
H A D | flock_compat.h | 28 PHPAPI int php_flock(int fd, int operation); 35 PHPAPI int flock(int fd, int operation);
|
/PHP-7.0/ext/phar/ |
H A D | util.c | 1004 fd = PHAR_G(last_phar); in phar_get_archive() 1005 fd_ptr = fd; in phar_get_archive() 1026 fd = fd_ptr; in phar_get_archive() 1027 PHAR_G(last_phar) = fd; in phar_get_archive() 1048 fd = fd_ptr; in phar_get_archive() 1051 …if (!fd->is_temporary_alias && (alias_len != fd->alias_len || memcmp(fd->alias, alias, alias_len))… in phar_get_archive() 1058 …if (fd->alias_len && NULL != (fd_ptr = zend_hash_str_find_ptr(&(PHAR_G(phar_alias_map)), fd->alias… in phar_get_archive() 1059 zend_hash_str_del(&(PHAR_G(phar_alias_map)), fd->alias, fd->alias_len); in phar_get_archive() 1076 fd = fd_ptr; in phar_get_archive() 1081 if (alias_len != fd->alias_len || memcmp(fd->alias, alias, alias_len)) { in phar_get_archive() [all …]
|
/PHP-7.0/ext/opcache/ |
H A D | zend_file_cache.c | 735 int fd; in zend_file_cache_script_store() local 765 close(fd); in zend_file_cache_script_store() 804 close(fd); in zend_file_cache_script_store() 818 close(fd); in zend_file_cache_script_store() 831 close(fd); in zend_file_cache_script_store() 1256 int fd; in zend_file_cache_script_load() local 1277 close(fd); in zend_file_cache_script_load() 1285 close(fd); in zend_file_cache_script_load() 1295 close(fd); in zend_file_cache_script_load() 1303 close(fd); in zend_file_cache_script_load() [all …]
|
/PHP-7.0/sapi/litespeed/ |
H A D | lsapilib.c | 682 if ( fd == -1 ) in readSecret() 690 close( fd ); in readSecret() 704 close( fd ); in readSecret() 710 close( fd ); in readSecret() 713 close( fd ); in readSecret() 1296 fd = dup( fd ); in LSAPI_InitRequest() 2299 int fd; in LSAPI_CreateListenSock2() local 2338 close(fd); in LSAPI_CreateListenSock2() 2445 int fd = -1; in LSAPI_CreateListenSock() local 2451 return fd; in LSAPI_CreateListenSock() [all …]
|
/PHP-7.0/ext/standard/tests/http/ |
H A D | ignore_errors.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.0/sapi/fpm/fpm/ |
H A D | fpm_log.c | 38 int fd; in fpm_log_open() local 45 fd = open(wp->config->access_log, O_WRONLY | O_APPEND | O_CREAT, S_IRUSR | S_IWUSR); in fpm_log_open() 46 if (0 > fd) { in fpm_log_open() 54 dup2(fd, wp->log_fd); in fpm_log_open() 55 close(fd); in fpm_log_open() 56 fd = wp->log_fd; in fpm_log_open() 59 wp->log_fd = fd; in fpm_log_open() 62 if (0 > fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC)) { in fpm_log_open()
|
H A D | fpm_sockets.c | 55 char fd[32]; in fpm_sockets_cleanup() local 56 sprintf(fd, "%d", ls->sock); in fpm_sockets_cleanup() 57 env_value = realloc(env_value, p + (p ? 1 : 0) + strlen(ls->key) + 1 + strlen(fd) + 1); in fpm_sockets_cleanup() 58 p += sprintf(env_value + p, "%s%s=%s", p ? "," : "", ls->key, fd); in fpm_sockets_cleanup() 494 int fd; in fpm_socket_unix_test_connect() local 500 if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) < 0) { in fpm_socket_unix_test_connect() 504 if (connect(fd, (struct sockaddr *)sock, socklen) == -1) { in fpm_socket_unix_test_connect() 505 close(fd); in fpm_socket_unix_test_connect() 509 close(fd); in fpm_socket_unix_test_connect()
|
H A D | fpm_events.h | 16 int fd; /* not set with FPM_EV_TIMEOUT */ member 45 int fpm_event_set(struct fpm_event_s *ev, int fd, int flags, void (*callback)(struct fpm_event_s *,…
|
H A D | fpm_events.c | 60 int fd = ev->fd; in fpm_got_signal() local 64 res = read(fd, &c, 1); in fpm_got_signal() 471 int fpm_event_set(struct fpm_event_s *ev, int fd, int flags, void (*callback)(struct fpm_event_s *,… in fpm_event_set() argument 473 if (!ev || !callback || fd < -1) { in fpm_event_set() 477 ev->fd = fd; in fpm_event_set()
|
/PHP-7.0/main/streams/ |
H A D | php_stream_plain_wrapper.h | 39 PHPAPI php_stream *_php_stream_fopen_from_fd(int fd, const char *mode, const char *persistent_id ST… 40 #define php_stream_fopen_from_fd(fd, mode, persistent_id) _php_stream_fopen_from_fd((fd), (mode), (… argument
|
/PHP-7.0/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.0/sapi/fpm/fpm/events/ |
H A D | kqueue.c | 170 EV_SET(&k, ev->fd, EVFILT_READ, flags, 0, 0, (void *)ev); in fpm_event_kqueue_add() 178 ev->index = ev->fd; in fpm_event_kqueue_add() 195 EV_SET(&k, ev->fd, EVFILT_READ, flags, 0, 0, (void *)ev); in fpm_event_kqueue_remove()
|
/PHP-7.0/sapi/cli/ |
H A D | php_cli_server.c | 755 poller->max_fd = fd; in php_cli_server_poller_add() 769 while (fd > 0) { in php_cli_server_poller_remove() 770 fd--; in php_cli_server_poller_remove() 775 poller->max_fd = fd; in php_cli_server_poller_remove() 792 SOCKET fd; in php_cli_server_poller_iter_on_active() member 809 if (e->fd == fd) { in php_cli_server_poller_iter_on_active() 816 n->fd = fd; in php_cli_server_poller_iter_on_active() 831 php_socket_t fd; in php_cli_server_poller_iter_on_active() local 834 for (fd=0 ; fd<=max_fd ; fd++) { in php_cli_server_poller_iter_on_active() 2010 int fd; in php_cli_server_begin_send_static() local [all …]
|
/PHP-7.0/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()
|