/php-src/Zend/ |
H A D | zend_gdb.c | 114 int fd = open("/proc/self/status", O_RDONLY); in zend_gdb_present() local 116 if (fd >= 0) { in zend_gdb_present() 118 ssize_t n = read(fd, buf, sizeof(buf) - 1); in zend_gdb_present() 143 close(fd); in zend_gdb_present()
|
/php-src/ext/standard/tests/file/ |
H A D | bug71882.phpt | 5 $fd = fopen("php://memory", "w+"); 7 var_dump(ftruncate($fd, -1));
|
H A D | file_variation7.phpt | 8 $fd = fopen($filepath, "w+"); 9 fwrite($fd, "Line 1\n\n \n \n\Line 3"); 10 fclose($fd);
|
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);
|
/php-src/ext/mbstring/tests/ |
H A D | casemapping.phpt | 106 fd 107 fd 109 fd 110 fd 111 fd 112 fd
|
/php-src/tests/output/ |
H A D | stream_isatty_non_castable_userwrapper.phpt | 17 $fd = fopen("test://foo","r"); 18 var_dump(stream_isatty($fd));
|
/php-src/ext/phar/ |
H A D | util.c | 1003 fd = PHAR_G(last_phar); in phar_get_archive() 1004 fd_ptr = fd; in phar_get_archive() 1025 fd = fd_ptr; in phar_get_archive() 1026 PHAR_G(last_phar) = fd; in phar_get_archive() 1047 fd = fd_ptr; in phar_get_archive() 1050 …if (!fd->is_temporary_alias && (alias_len != fd->alias_len || memcmp(fd->alias, alias, alias_len))… in phar_get_archive() 1057 …if (fd->alias_len && NULL != (fd_ptr = zend_hash_str_find_ptr(&(PHAR_G(phar_alias_map)), fd->alias… in phar_get_archive() 1058 zend_hash_str_del(&(PHAR_G(phar_alias_map)), fd->alias, fd->alias_len); in phar_get_archive() 1075 fd = fd_ptr; in phar_get_archive() 1080 if (alias_len != fd->alias_len || memcmp(fd->alias, alias, alias_len)) { in phar_get_archive() [all …]
|
/php-src/ext/opcache/ |
H A D | shared_alloc_mmap.c | 182 int flags = PROT_READ | PROT_WRITE, fd = -1; in create_segments() local 195 fd = VM_MAKE_TAG(251U); in create_segments() 236 p = mmap(NULL, requested_size, flags, MAP_SHARED|MAP_ANONYMOUS|MAP_32BIT, fd, 0); in create_segments() 244 p = mmap(NULL, requested_size, flags, MAP_SHARED|MAP_ANONYMOUS|MAP_32BIT, fd, 0); in create_segments() 251 p = mmap(0, requested_size, flags, MAP_SHARED|MAP_ANONYMOUS|MAP_HUGETLB, fd, 0); in create_segments() 257 p = mmap(NULL, requested_size, flags, MAP_SHARED|MAP_ANONYMOUS|MAP_32BIT, fd, 0); in create_segments() 263 p = mmap(0, requested_size, flags, MAP_SHARED|MAP_ANONYMOUS, fd, 0); in create_segments()
|
/php-src/ext/posix/ |
H A D | posix.c | 451 zend_long fd = 0; in PHP_FUNCTION() local 462 if (php_posix_stream_get_fd(z_fd, &fd) == FAILURE) { in PHP_FUNCTION() 469 fd = zval_get_long(z_fd); in PHP_FUNCTION() 472 if (fd < 0 || fd > INT_MAX) { in PHP_FUNCTION() 489 err = ttyname_r(fd, p, buflen); in PHP_FUNCTION() 503 if (NULL == (p = ttyname(fd))) { in PHP_FUNCTION() 516 zend_long fd = 0; in PHP_FUNCTION() local 535 if (fd < 0 || fd > INT_MAX) { in PHP_FUNCTION() 539 if (isatty(fd)) { in PHP_FUNCTION() 1310 zend_long name, ret, fd = 0; in PHP_FUNCTION() local [all …]
|
/php-src/ext/fileinfo/libmagic/ |
H A D | is_simh.c | 190 int fd; in main() local 194 if ((fd = open(argv[1], O_RDONLY)) == -1) in main() 197 if (fstat(fd, &st) == -1) in main() 203 if (read(fd, p, st.st_size) != st.st_size) in main()
|
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-src/ext/standard/tests/image/ |
H A D | iptcembed_002.phpt | 40 $fd=fopen($file,"wb"); 41 if ($fd) { fputs($fd,base64_decode($base64_1x1_jpeg)); fclose($fd); } 71 $fd=fopen($file2,"wb"); 72 if ($fd) { fputs($fd,$content); fclose($fd); }
|
/php-src/ext/standard/tests/http/ |
H A D | ignore_errors.phpt | 24 $fd = fopen("$uri/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));
|
H A D | bug79265.phpt | 26 $fd = fopen($uri, 'rb', false, $context); 29 fclose($fd);
|
H A D | bug79265_2.phpt | 25 $fd = fopen($uri, 'rb', false, $context); 28 fclose($fd);
|
/php-src/ext/standard/ |
H A D | proc_open.c | 86 int fd, sd; in openpty() local 94 if (fd == -1) { in openpty() 98 if (grantpt(fd) != 0 || unlockpt(fd) != 0) { in openpty() 123 *master = fd; in openpty() 129 if (fd != -1) { in openpty() 130 close(fd); in openpty() 486 # define close_descriptor(fd) CloseHandle(fd) argument 488 # define close_descriptor(fd) close(fd) argument 836 return fd; in make_descriptor_cloexec() 900 php_socket_t fd; in set_proc_descriptor_to_file() local [all …]
|
/php-src/main/streams/ |
H A D | php_stream_plain_wrapper.h | 35 PHPAPI php_stream *_php_stream_fopen_from_fd(int fd, const char *mode, const char *persistent_id, b… 36 #define php_stream_fopen_from_fd(fd, mode, persistent_id) _php_stream_fopen_from_fd((fd), (mode), (… argument
|
/php-src/ext/mysqlnd/ |
H A D | mysqlnd_loaddata.c | 50 info->fd = php_stream_open_wrapper_ex((char *)filename, "r", 0, NULL, context); in mysqlnd_local_infile_init() 52 if (info->fd == NULL) { in mysqlnd_local_infile_init() 72 count = (int) php_stream_read(info->fd, (char *) buf, buf_len); in mysqlnd_local_infile_read() 113 if (info->fd) { in mysqlnd_local_infile_end() 114 php_stream_close(info->fd); in mysqlnd_local_infile_end() 115 info->fd = NULL; in mysqlnd_local_infile_end()
|
/php-src/sapi/fpm/fpm/ |
H A D | fpm_log.c | 39 int fd; in fpm_log_open() local 46 fd = open(wp->config->access_log, O_WRONLY | O_APPEND | O_CREAT, S_IRUSR | S_IWUSR); in fpm_log_open() 47 if (0 > fd) { in fpm_log_open() 55 dup2(fd, wp->log_fd); in fpm_log_open() 56 close(fd); in fpm_log_open() 57 fd = wp->log_fd; in fpm_log_open() 60 wp->log_fd = fd; in fpm_log_open() 63 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 *,…
|
/php-src/sapi/litespeed/ |
H A D | lsapilib.c | 864 if ( fd == -1 ) in readSecret() 872 close( fd ); in readSecret() 886 close( fd ); in readSecret() 892 close( fd ); in readSecret() 895 close( fd ); in readSecret() 1500 fd = dup( fd ); in LSAPI_InitRequest() 2588 int fd; in LSAPI_CreateListenSock2() local 2627 close(fd); in LSAPI_CreateListenSock2() 2735 int fd = -1; in LSAPI_CreateListenSock() local 2741 return fd; in LSAPI_CreateListenSock() [all …]
|
/php-src/sapi/fpm/fpm/events/ |
H A D | kqueue.c | 164 EV_SET(&k, ev->fd, EVFILT_READ, flags, 0, 0, (void *)ev); in fpm_event_kqueue_add() 172 ev->index = ev->fd; in fpm_event_kqueue_add() 189 EV_SET(&k, ev->fd, EVFILT_READ, flags, 0, 0, (void *)ev); in fpm_event_kqueue_remove()
|