/php-src/ext/standard/tests/file/ |
H A D | file_variation5.phpt | 19 $fd = fopen($filepath, "w+"); 20 fwrite($fd, "Line 1\nLine 2\nLine 3"); 21 fclose($fd);
|
H A D | move_uploaded_file_basic.phpt | 47 $fd = fopen($destination4, "w"); 48 fclose($fd);
|
H A D | file_variation6.phpt | 7 $fd = fopen($filepath, "w+"); 8 fwrite($fd, "Line 1\nLine 2\nLine 3"); 9 fclose($fd);
|
H A D | chmod_variation2-win32-mb.phpt | 21 $fd = fopen($filepath, "w+"); 22 fclose($fd);
|
H A D | chmod_variation2-win32.phpt | 21 $fd = fopen($filepath, "w+"); 22 fclose($fd);
|
/php-src/ext/opcache/jit/ir/ |
H A D | ir_disasm.c | 759 if (lseek(fd, sect->ofs, SEEK_SET) < 0) { 777 int fd = open("/proc/self/exe", O_RDONLY); local 779 int fd = open("/proc/curproc/exe", O_RDONLY); local 787 int fd = open(path, O_RDONLY); local 789 int fd = open("/proc/self/path/a.out", O_RDONLY); local 797 int fd = open(path, O_RDONLY); local 801 int fd = -1; local 804 if (fd >= 0) { 805 if (read(fd, &hdr, sizeof(hdr)) == sizeof(hdr) 810 && lseek(fd, hdr.shofs, SEEK_SET) >= 0) { [all …]
|
/php-src/sapi/fpm/fpm/ |
H A D | zlog.c | 268 struct zlog_stream *stream, int flags, size_t capacity, int fd); 321 zend_quiet_write(stream->fd, buf, len); in zlog_stream_direct_write_ex() 323 zend_quiet_write(stream->fd, append, append_len); in zlog_stream_direct_write_ex() 512 if (fd == 0) { in zlog_stream_init_internal() 513 fd = zlog_fd; in zlog_stream_init_internal() 518 stream->use_syslog = fd == ZLOG_SYSLOG; in zlog_stream_init_internal() 519 stream->use_fd = fd > 0; in zlog_stream_init_internal() 522 stream->use_stderr = fd < 0 || in zlog_stream_init_internal() 524 fd != STDERR_FILENO && fd != STDOUT_FILENO && !launched && in zlog_stream_init_internal() 529 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() 491 int fpm_event_set(struct fpm_event_s *ev, int fd, int flags, void (*callback)(struct fpm_event_s *,… in fpm_event_set() argument 493 if (!ev || !callback || fd < -1) { in fpm_event_set() 497 ev->fd = fd; in fpm_event_set()
|
H A D | fpm_sockets.c | 71 char fd[32]; in fpm_sockets_cleanup() local 73 sprintf(fd, "%d", ls->sock); in fpm_sockets_cleanup() 76 …tmpenv_value = realloc(env_value, p + (p ? 1 : 0) + strlen(ls->key) + 1 + strlen(fd) + socket_set_… in fpm_sockets_cleanup() 93 …sprintf(env_value + p + socket_set_buf, "%s%s=%s", (p && !socket_set_buf) ? "," : "", ls->key, fd); in fpm_sockets_cleanup() 652 int fd; in fpm_socket_unix_test_connect() local 658 if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) < 0) { in fpm_socket_unix_test_connect() 662 if (connect(fd, (struct sockaddr *)sock, socklen) == -1) { in fpm_socket_unix_test_connect() 663 close(fd); in fpm_socket_unix_test_connect() 667 close(fd); in fpm_socket_unix_test_connect()
|
/php-src/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()
|
/php-src/ext/standard/tests/http/ |
H A D | bug80838.phpt | 28 $fd = fopen($uri, 'rb', false, $ctx); 29 fclose($fd);
|
H A D | bug38802.phpt | 28 $fd = fopen("$uri/foo/bar", 'rb', false, $context); 29 var_dump($fd); 31 if ($fd) { 32 $meta_data = stream_get_meta_data($fd); 35 var_dump(stream_get_contents($fd));
|
/php-src/win32/ |
H A D | ioutil.c | 191 int fd; in php_win32_ioutil_open_w() local 232 if (fd < 0) { in php_win32_ioutil_open_w() 249 _setmode(fd, _O_TEXT); in php_win32_ioutil_open_w() 251 _setmode(fd, _O_BINARY); in php_win32_ioutil_open_w() 254 return fd; in php_win32_ioutil_open_w() 265 if (-1 == fd) { in php_win32_ioutil_close() 270 if (fd > 2) { in php_win32_ioutil_close() 271 result = _close(fd); in php_win32_ioutil_close() 714 if (0 > fd) { in php_win32_ioutil_fopen_w() 720 ret = _wfdopen(fd, mode); in php_win32_ioutil_fopen_w() [all …]
|
/php-src/ext/opcache/ |
H A D | zend_file_cache.c | 1067 int fd; local 1097 close(fd); 1138 close(fd); 1150 close(fd); 1774 int fd; local 1796 close(fd); 1804 close(fd); 1814 close(fd); 1822 close(fd); 1834 close(fd); [all …]
|
/php-src/ext/mbstring/tests/ |
H A D | mb_str_split_jp.phpt | 113 SJIS: [6162, 63fd, feff, 6162, fdfe, ff] 115 SJIS-2004: [6162, 63fd, feff, 6162, fdfe, ff] 117 MacJapanese: [6162, 63fd, feff, 6162, fdfe, ff] 119 SJIS-Mobile#DOCOMO: [6162, 63fd, feff, 6162, fdfe, ff] 121 SJIS-Mobile#KDDI: [6162, 63fd, feff, 6162, fdfe, ff] 123 SJIS-Mobile#SoftBank: [6162, 63fd, feff, 6162, fdfe, ff]
|
/php-src/sapi/cli/tests/ |
H A D | gh8827-003.phpt | 31 file_put_contents('php://fd/1', "Also goes to stdoutFile\n"); 33 file_put_contents('php://fd/2', "Goes to stderrFile\n");
|
/php-src/sapi/cli/ |
H A D | php_cli_server.c | 851 poller->max_fd = fd; in php_cli_server_poller_add() 865 while (fd > 0) { in php_cli_server_poller_remove() 866 fd--; in php_cli_server_poller_remove() 871 poller->max_fd = fd; in php_cli_server_poller_remove() 888 SOCKET fd; in php_cli_server_poller_iter_on_active() member 905 if (e->fd == fd) { in php_cli_server_poller_iter_on_active() 912 n->fd = fd; in php_cli_server_poller_iter_on_active() 927 php_socket_t fd; in php_cli_server_poller_iter_on_active() local 930 for (fd=0 ; fd<=max_fd ; fd++) { in php_cli_server_poller_iter_on_active() 2125 int fd; in php_cli_server_begin_send_static() local [all …]
|
/php-src/ext/pcre/pcre2lib/sljit/allocator_src/ |
H A D | sljitExecAllocatorApple.c | 115 int fd = -1; in alloc_chunk() local 119 retval = mmap(NULL, size, prot, flags, fd, 0); in alloc_chunk()
|
/php-src/ext/zlib/ |
H A D | zlib_fopen_wrapper.c | 131 php_socket_t fd; in php_stream_gzopen() local 133 if (SUCCESS == php_stream_cast(innerstream, PHP_STREAM_AS_FD, (void **) &fd, REPORT_ERRORS)) { in php_stream_gzopen() 136 self->gz_file = gzdopen(dup(fd), mode); in php_stream_gzopen()
|
/php-src/ext/dba/ |
H A D | dba_dbm.c | 41 if((fd = VCWD_OPEN_MODE(buf, O_CREAT | mode | O_WRONLY, filemode)) == -1) \ 43 close(fd); 52 int fd; in DBA_OPEN_FUNC() local
|
/php-src/ext/standard/tests/streams/ |
H A D | gh9590-001.phpt | 2 Bug GH-9590 001 (stream_select does not abort upon exception or empty valid fd set) 31 --enable-fd-setsize=%d is recommended, but you may want to set it
|
H A D | gh9590-002.phpt | 2 Bug GH-9590 002 (stream_select does not abort upon exception or empty valid fd set) 33 --enable-fd-setsize=%d is recommended, but you may want to set it
|
/php-src/sapi/fpm/fpm/events/ |
H A D | port.c | 177 if (port_associate(pfd, PORT_SOURCE_FD, ev->fd, POLLIN, (void *)ev) < 0) { in fpm_event_port_add() 191 if (port_dissociate(pfd, PORT_SOURCE_FD, ev->fd) < 0) { in fpm_event_port_remove()
|
/php-src/ext/standard/tests/array/ |
H A D | bug68553.phpt | 8 $fd = fopen(__FILE__, "r"); 9 fclose($fd);
|
/php-src/ext/bz2/ |
H A D | bz2.c | 225 php_socket_t fd; in _php_stream_bz2open() local 226 if (SUCCESS == php_stream_cast(stream, PHP_STREAM_AS_FD, (void **) &fd, REPORT_ERRORS)) { in _php_stream_bz2open() 227 bz_file = BZ2_bzdopen((int)fd, mode); in _php_stream_bz2open() 365 php_socket_t fd; in PHP_FUNCTION() local 399 if (FAILURE == php_stream_cast(stream, PHP_STREAM_AS_FD, (void *) &fd, REPORT_ERRORS)) { in PHP_FUNCTION() 403 bz = BZ2_bzdopen((int)fd, mode); in PHP_FUNCTION()
|