mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
Pssst, compiler!
This commit is contained in:
parent
fcdae5867f
commit
2800af6e47
4 changed files with 6 additions and 6 deletions
2
phpdbg.c
2
phpdbg.c
|
@ -286,7 +286,7 @@ static void php_sapi_phpdbg_send_header(sapi_header_struct *sapi_header, void *s
|
||||||
|
|
||||||
static void php_sapi_phpdbg_log_message(char *message TSRMLS_DC) /* {{{ */
|
static void php_sapi_phpdbg_log_message(char *message TSRMLS_DC) /* {{{ */
|
||||||
{
|
{
|
||||||
phpdbg_error(message);
|
phpdbg_error("%s", message);
|
||||||
}
|
}
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
|
|
|
@ -192,7 +192,7 @@ PHPDBG_API phpdbg_input_t **phpdbg_read_argv(char *buffer, int *argc TSRMLS_DC)
|
||||||
|
|
||||||
case IN_STRING:
|
case IN_STRING:
|
||||||
phpdbg_error(
|
phpdbg_error(
|
||||||
"Malformed command line (unclosed quote) @ %d: %s!",
|
"Malformed command line (unclosed quote) @ %ld: %s!",
|
||||||
(p - buffer)-1, &buffer[(p - buffer)-1]);
|
(p - buffer)-1, &buffer[(p - buffer)-1]);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -152,7 +152,7 @@ void phpdbg_print_opline_ex(zend_execute_data *execute_data, HashTable *vars, ze
|
||||||
(!(PHPDBG_G(flags) & PHPDBG_IS_QUIET) ||
|
(!(PHPDBG_G(flags) & PHPDBG_IS_QUIET) ||
|
||||||
(PHPDBG_G(flags) & PHPDBG_IS_STEPPING))) {
|
(PHPDBG_G(flags) & PHPDBG_IS_STEPPING))) {
|
||||||
/* output line info */
|
/* output line info */
|
||||||
phpdbg_notice("#%- 5lu %16p %-30s %s %s",
|
phpdbg_notice("#%-5u %16p %-30s %s %s",
|
||||||
opline->lineno,
|
opline->lineno,
|
||||||
opline,
|
opline,
|
||||||
phpdbg_decode_opcode(opline->opcode),
|
phpdbg_decode_opcode(opline->opcode),
|
||||||
|
@ -161,7 +161,7 @@ void phpdbg_print_opline_ex(zend_execute_data *execute_data, HashTable *vars, ze
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!ignore_flags && PHPDBG_G(oplog)) {
|
if (!ignore_flags && PHPDBG_G(oplog)) {
|
||||||
phpdbg_log_ex(PHPDBG_G(oplog), "#%- 5lu %16p %-30s %s %s",
|
phpdbg_log_ex(PHPDBG_G(oplog), "#%-5u %16p %-30s %s %s",
|
||||||
opline->lineno,
|
opline->lineno,
|
||||||
opline,
|
opline,
|
||||||
phpdbg_decode_opcode(opline->opcode),
|
phpdbg_decode_opcode(opline->opcode),
|
||||||
|
|
|
@ -70,12 +70,12 @@ static inline void phpdbg_print_function_helper(zend_function *method TSRMLS_DC)
|
||||||
char *decode = phpdbg_decode_opline(op_array, opline, &vars TSRMLS_CC);
|
char *decode = phpdbg_decode_opline(op_array, opline, &vars TSRMLS_CC);
|
||||||
if (decode != NULL) {
|
if (decode != NULL) {
|
||||||
phpdbg_writeln(
|
phpdbg_writeln(
|
||||||
"\t\t#%lu\t%p %-30s %s",
|
"\t\t#%u\t%p %-30s %s",
|
||||||
opline->lineno,
|
opline->lineno,
|
||||||
opline,
|
opline,
|
||||||
phpdbg_decode_opcode(opline->opcode),
|
phpdbg_decode_opcode(opline->opcode),
|
||||||
decode);
|
decode);
|
||||||
} else phpdbg_error("\tFailed to decode opline @ %ld", opline);
|
} else phpdbg_error("\tFailed to decode opline %16p", opline);
|
||||||
free(decode);
|
free(decode);
|
||||||
opline++;
|
opline++;
|
||||||
} while (++opcode < end);
|
} while (++opcode < end);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue