return phpdbg_write("%s", message);
} /* }}} */
+#if PHP_VERSION_ID >= 50700
+static inline void php_sapi_phpdbg_flush(void *context TSRMLS_DC) /* {{{ */
+{
+#else
static inline void php_sapi_phpdbg_flush(void *context) /* {{{ */
{
TSRMLS_FETCH();
+#endif
fflush(PHPDBG_G(io)[PHPDBG_STDOUT]);
} /* }}} */
case IN_STRING:
phpdbg_error(
- "Malformed command line (unclosed quote) @ %d: %s!",
+ "Malformed command line (unclosed quote) @ %ld: %s!",
(p - buffer)-1, &buffer[(p - buffer)-1]);
break;
#ifdef ZEND_FAST_CALL
case ZEND_FAST_CALL:
#endif
- asprintf(&decode[1], "J%d", op->op1.jmp_addr - ops->opcodes);
+ asprintf(&decode[1], "J%ld", op->op1.jmp_addr - ops->opcodes);
goto format;
case ZEND_JMPZNZ:
#endif
decode[1] = phpdbg_decode_op(ops, &op->op1, op->op1_type, vars TSRMLS_CC);
asprintf(
- &decode[2], "J%d", op->op2.jmp_addr - ops->opcodes);
+ &decode[2], "J%ld", op->op2.jmp_addr - ops->opcodes);
goto result;
case ZEND_RECV_INIT: