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()
472 char buffer[128] = {0,}; in phpdbg_stack_verify() local
487 phpdbg_command_name(command, buffer)); in phpdbg_stack_verify()
507 phpdbg_command_name(command, buffer), \ in phpdbg_stack_verify()
514 phpdbg_command_name(command, buffer), \ in phpdbg_stack_verify()
562 phpdbg_command_name(command, buffer), in phpdbg_stack_verify()
747 char *buffer = NULL; in phpdbg_read_input() local
759 buffer = estrdup(buf); in phpdbg_read_input()
772 buffer = estrdup(cmd); in phpdbg_read_input()
778 buffer = estrdup(buf); in phpdbg_read_input()
781 buffer = estrdup(buffered); in phpdbg_read_input()
785 if (buffer && isspace(*buffer)) { in phpdbg_read_input()
786 char *trimmed = buffer; in phpdbg_read_input()
791 efree(buffer); in phpdbg_read_input()
792 buffer = trimmed; in phpdbg_read_input()
795 if (buffer && strlen(buffer)) { in phpdbg_read_input()
796 if (PHPDBG_G(buffer)) { in phpdbg_read_input()
797 free(PHPDBG_G(buffer)); in phpdbg_read_input()
799 PHPDBG_G(buffer) = strdup(buffer); in phpdbg_read_input()
800 } else if (PHPDBG_G(buffer)) { in phpdbg_read_input()
801 if (buffer) { in phpdbg_read_input()
802 efree(buffer); in phpdbg_read_input()
804 buffer = estrdup(PHPDBG_G(buffer)); in phpdbg_read_input()
807 return buffer; in phpdbg_read_input()