File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -338,7 +338,7 @@ static void php_sapi_phpdbg_register_vars(zval *track_vars_array TSRMLS_DC) /* {
338
338
339
339
static inline int php_sapi_phpdbg_ub_write (const char * message , unsigned int length TSRMLS_DC ) /* {{{ */
340
340
{
341
- return phpdbg_write (message );
341
+ return phpdbg_write ("%s" , message );
342
342
} /* }}} */
343
343
344
344
static inline void php_sapi_phpdbg_flush (void * context ) /* {{{ */
Original file line number Diff line number Diff line change @@ -172,11 +172,13 @@ PHPDBG_INFO(literal) /* {{{ */
172
172
}
173
173
174
174
while (literal < ops -> last_literal ) {
175
- phpdbg_write ("|-------- C%lu -------> [" , literal );
176
- zend_print_zval (
177
- & ops -> literals [literal ].constant , 0 );
178
- phpdbg_write ("]" );
179
- phpdbg_writeln (EMPTY );
175
+ if (Z_TYPE (ops -> literals [literal ].constant ) != IS_NULL ) {
176
+ phpdbg_write ("|-------- C%lu -------> [" , literal );
177
+ zend_print_zval (
178
+ & ops -> literals [literal ].constant , 0 );
179
+ phpdbg_write ("]" );
180
+ phpdbg_writeln (EMPTY );
181
+ }
180
182
literal ++ ;
181
183
}
182
184
} else {
You can’t perform that action at this time.
0 commit comments