summaryrefslogtreecommitdiff
path: root/phpdbg.c
diff options
context:
space:
mode:
Diffstat (limited to 'phpdbg.c')
-rw-r--r--phpdbg.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/phpdbg.c b/phpdbg.c
index c6d44ba3ae..ba40b15d71 100644
--- a/phpdbg.c
+++ b/phpdbg.c
@@ -499,9 +499,14 @@ static inline int php_sapi_phpdbg_ub_write(const char *message, unsigned int len
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]);
} /* }}} */