41 for (i =
len; i <
len + bytes; i++) {
42 if (
buf[i] ==
'\x03') {
43 if (i !=
len + bytes - 1) {
78 }
while (
ret == -1 &&
errno == EINTR);
83static int phpdbg_output_pager(
int fd,
const char *
ptr,
int len) {
84 int count = 0, bytes = 0;
87 while ((
p = memchr(
p,
'\n', endp -
p))) {
92 bytes += write(
fd,
ptr + bytes, (
p -
ptr) - bytes);
94 if (memchr(
p,
'\n', endp -
p)) {
106 bytes += write(
fd,
ptr + bytes,
len - bytes);
117 return phpdbg_output_pager(
fd,
ptr,
len);
count(Countable|array $value, int $mode=COUNT_NORMAL)
zend_ffi_ctype_name_buf buf
struct @234323133100145062121301312242002332057146367313 io[PHPDBG_IO_FDS]
char input_buffer[PHPDBG_MAX_CMD]
#define PHPDBG_HAS_PAGINATION
#define PHPDBG_IS_QUITTING
PHPDBG_API int phpdbg_consume_stdin_line(char *buf)
PHPDBG_API int phpdbg_mixed_write(int fd, const char *ptr, int len)
PHPDBG_API int phpdbg_mixed_read(int fd, char *ptr, int len, int tmo)
#define ZEND_EXTERN_MODULE_GLOBALS(module_name)
#define zend_quiet_write(...)