Lines Matching refs:buffer
32 static inline const char *phpdbg_command_name(const phpdbg_command_t *command, char *buffer) { in ZEND_EXTERN_MODULE_GLOBALS()
36 memcpy(&buffer[pos], command->parent->name, command->parent->name_len); in ZEND_EXTERN_MODULE_GLOBALS()
38 memcpy(&buffer[pos], " ", sizeof(" ")-1); in ZEND_EXTERN_MODULE_GLOBALS()
42 memcpy(&buffer[pos], command->name, command->name_len); in ZEND_EXTERN_MODULE_GLOBALS()
44 buffer[pos] = 0; in ZEND_EXTERN_MODULE_GLOBALS()
46 return buffer; in ZEND_EXTERN_MODULE_GLOBALS()
473 char buffer[128] = {0,}; in phpdbg_stack_verify() local
488 phpdbg_command_name(command, buffer)); in phpdbg_stack_verify()
508 phpdbg_command_name(command, buffer), \ in phpdbg_stack_verify()
515 phpdbg_command_name(command, buffer), \ in phpdbg_stack_verify()
563 phpdbg_command_name(command, buffer), in phpdbg_stack_verify()
748 char *buffer = NULL; in phpdbg_read_input() local
760 buffer = estrdup(buf); in phpdbg_read_input()
773 buffer = estrdup(cmd); in phpdbg_read_input()
779 buffer = estrdup(buf); in phpdbg_read_input()
782 buffer = estrdup(buffered); in phpdbg_read_input()
786 if (buffer && isspace(*buffer)) { in phpdbg_read_input()
787 char *trimmed = buffer; in phpdbg_read_input()
792 efree(buffer); in phpdbg_read_input()
793 buffer = trimmed; in phpdbg_read_input()
796 if (buffer && strlen(buffer)) { in phpdbg_read_input()
797 if (PHPDBG_G(buffer)) { in phpdbg_read_input()
798 free(PHPDBG_G(buffer)); in phpdbg_read_input()
800 PHPDBG_G(buffer) = strdup(buffer); in phpdbg_read_input()
801 } else if (PHPDBG_G(buffer)) { in phpdbg_read_input()
802 if (buffer) { in phpdbg_read_input()
803 efree(buffer); in phpdbg_read_input()
805 buffer = estrdup(PHPDBG_G(buffer)); in phpdbg_read_input()
808 return buffer; in phpdbg_read_input()