}
/* }}} */
+static inline int php_sapi_phpdbg_ub_write(const char *message, unsigned int length TSRMLS_DC) /* {{{ */
+{
+ return phpdbg_write(message);
+} /* }}} */
+
+static inline void php_sapi_phpdbg_flush(void *context) /* {{{ */
+{
+ fflush(stdout);
+} /* }}} */
+
/* {{{ sapi_module_struct phpdbg_sapi_module
*/
static sapi_module_struct phpdbg_sapi_module = {
NULL, /* activate */
php_sapi_phpdbg_deactivate, /* deactivate */
- NULL, /* unbuffered write */
- NULL, /* flush */
+ php_sapi_phpdbg_ub_write, /* unbuffered write */
+ php_sapi_phpdbg_flush, /* flush */
NULL, /* get uid */
NULL, /* getenv */
&PHPDBG_G(seek));
zend_try {
+ php_output_activate(TSRMLS_C);
zend_execute(
EG(active_op_array) TSRMLS_CC);
+ php_output_deactivate(TSRMLS_C);
} zend_catch {
EG(active_op_array) = orig_op_array;
EG(opline_ptr) = orig_opline;