mirror of
https://github.com/php/php-src.git
synced 2026-04-26 17:38:14 +02:00
Fixed info literal
This commit is contained in:
@@ -338,7 +338,7 @@ static void php_sapi_phpdbg_register_vars(zval *track_vars_array TSRMLS_DC) /* {
|
||||
|
||||
static inline int php_sapi_phpdbg_ub_write(const char *message, unsigned int length TSRMLS_DC) /* {{{ */
|
||||
{
|
||||
return phpdbg_write(message);
|
||||
return phpdbg_write("%s", message);
|
||||
} /* }}} */
|
||||
|
||||
static inline void php_sapi_phpdbg_flush(void *context) /* {{{ */
|
||||
|
||||
+7
-5
@@ -172,11 +172,13 @@ PHPDBG_INFO(literal) /* {{{ */
|
||||
}
|
||||
|
||||
while (literal < ops->last_literal) {
|
||||
phpdbg_write("|-------- C%lu -------> [", literal);
|
||||
zend_print_zval(
|
||||
&ops->literals[literal].constant, 0);
|
||||
phpdbg_write("]");
|
||||
phpdbg_writeln(EMPTY);
|
||||
if (Z_TYPE(ops->literals[literal].constant) != IS_NULL) {
|
||||
phpdbg_write("|-------- C%lu -------> [", literal);
|
||||
zend_print_zval(
|
||||
&ops->literals[literal].constant, 0);
|
||||
phpdbg_write("]");
|
||||
phpdbg_writeln(EMPTY);
|
||||
}
|
||||
literal++;
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user