mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
phpdbg_rlog for logging while in remote mode (only)
This commit is contained in:
parent
4fa2f01c4e
commit
df0091c445
4 changed files with 46 additions and 15 deletions
|
@ -32,7 +32,7 @@ PHPDBG_API char *phpdbg_resolve_path(const char* TSRMLS_DC);
|
|||
PHPDBG_API char *phpdbg_trim(const char*, size_t, size_t*);
|
||||
|
||||
/**
|
||||
* Error/notice/formatting helper
|
||||
* Error/notice/formatting helpers
|
||||
*/
|
||||
enum {
|
||||
P_ERROR = 1,
|
||||
|
@ -48,6 +48,8 @@ PHPDBG_API int phpdbg_print(int TSRMLS_DC, FILE*, const char*, ...) PHP_ATTRIBUT
|
|||
PHPDBG_API int phpdbg_print(int TSRMLS_DC, FILE*, const char*, ...) PHP_ATTRIBUTE_FORMAT(printf, 3, 4);
|
||||
#endif
|
||||
|
||||
PHPDBG_API int phpdbg_rlog(FILE *stream, const char *fmt, ...);
|
||||
|
||||
#define phpdbg_error(fmt, ...) phpdbg_print(P_ERROR TSRMLS_CC, PHPDBG_G(io)[PHPDBG_STDOUT], fmt, ##__VA_ARGS__)
|
||||
#define phpdbg_notice(fmt, ...) phpdbg_print(P_NOTICE TSRMLS_CC, PHPDBG_G(io)[PHPDBG_STDOUT], fmt, ##__VA_ARGS__)
|
||||
#define phpdbg_writeln(fmt, ...) phpdbg_print(P_WRITELN TSRMLS_CC, PHPDBG_G(io)[PHPDBG_STDOUT], fmt, ##__VA_ARGS__)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue