php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
phpdbg_out.h File Reference

Go to the source code of this file.

Macros

#define PHPDBG_DEBUG   0
 
#define phpdbg_error(strfmt, ...)
 
#define phpdbg_notice(strfmt, ...)
 
#define phpdbg_writeln(strfmt, ...)
 
#define phpdbg_write(strfmt, ...)
 
#define phpdbg_log(fmt, ...)
 
#define phpdbg_out(fmt, ...)
 
#define phpdbg_script(type, strfmt, ...)
 
#define phpdbg_asprintf(buf, ...)
 
#define phpdbg_debug(strfmt, ...)
 
#define SEPARATE   "------------------------------------------------" /* }}} */
 

Enumerations

enum  {
  P_ERROR = 1 , P_NOTICE , P_WRITELN , P_WRITE ,
  P_STDOUT , P_STDERR , P_LOG
}
 

Functions

PHPDBG_API int phpdbg_print (int severity, int fd, const char *strfmt,...) PHP_ATTRIBUTE_FORMAT(printf
 
PHPDBG_API int PHPDBG_API int phpdbg_log_internal (int fd, const char *fmt,...) PHP_ATTRIBUTE_FORMAT(printf
 
PHPDBG_API int PHPDBG_API int PHPDBG_API int phpdbg_out_internal (int fd, const char *fmt,...) PHP_ATTRIBUTE_FORMAT(printf
 
PHPDBG_API int _phpdbg_asprintf (char **buf, const char *format,...)
 
PHPDBG_API void phpdbg_free_err_buf (void)
 
PHPDBG_API void phpdbg_activate_err_buf (bool active)
 
PHPDBG_API int phpdbg_output_err_buf (const char *strfmt,...)
 
int phpdbg_process_print (int fd, int type, const char *msg, int msglen)
 

Macro Definition Documentation

◆ phpdbg_asprintf

#define phpdbg_asprintf ( buf,
... )
Value:
_phpdbg_asprintf(buf, ##__VA_ARGS__)
zend_ffi_ctype_name_buf buf
Definition ffi.c:4685
PHPDBG_API int _phpdbg_asprintf(char **buf, const char *format,...)
Definition phpdbg_out.c:32

Definition at line 53 of file phpdbg_out.h.

◆ PHPDBG_DEBUG

#define PHPDBG_DEBUG   0

Definition at line 23 of file phpdbg_out.h.

◆ phpdbg_debug

#define phpdbg_debug ( strfmt,
... )

Definition at line 59 of file phpdbg_out.h.

◆ phpdbg_error

#define phpdbg_error ( strfmt,
... )
Value:
phpdbg_print(P_ERROR , PHPDBG_G(io)[PHPDBG_STDOUT].fd, strfmt, ##__VA_ARGS__)
struct @234323133100145062121301312242002332057146367313 io[PHPDBG_IO_FDS]
#define PHPDBG_STDOUT
Definition phpdbg.h:190
#define PHPDBG_G(v)
Definition phpdbg.h:102
int fd
Definition phpdbg.h:282
PHPDBG_API int phpdbg_print(int type, int fd, const char *strfmt,...)
Definition phpdbg_out.c:194
@ P_ERROR
Definition phpdbg_out.h:30

Definition at line 43 of file phpdbg_out.h.

◆ phpdbg_log

#define phpdbg_log ( fmt,
... )
Value:
PHPDBG_API int phpdbg_log_internal(int fd, const char *fmt,...)
Definition phpdbg_out.c:209

Definition at line 48 of file phpdbg_out.h.

◆ phpdbg_notice

#define phpdbg_notice ( strfmt,
... )
Value:
phpdbg_print(P_NOTICE , PHPDBG_G(io)[PHPDBG_STDOUT].fd, strfmt, ##__VA_ARGS__)
@ P_NOTICE
Definition phpdbg_out.h:31

Definition at line 44 of file phpdbg_out.h.

◆ phpdbg_out

#define phpdbg_out ( fmt,
... )
Value:
PHPDBG_API int phpdbg_out_internal(int fd, const char *fmt,...)
Definition phpdbg_out.c:225

Definition at line 49 of file phpdbg_out.h.

◆ phpdbg_script

#define phpdbg_script ( type,
strfmt,
... )
Value:
phpdbg_print(type, PHPDBG_G(io)[PHPDBG_STDOUT].fd, strfmt, ##__VA_ARGS__)
zend_ffi_type * type
Definition ffi.c:3812

Definition at line 51 of file phpdbg_out.h.

◆ phpdbg_write

#define phpdbg_write ( strfmt,
... )
Value:
phpdbg_print(P_WRITE , PHPDBG_G(io)[PHPDBG_STDOUT].fd, strfmt, ##__VA_ARGS__)
@ P_WRITE
Definition phpdbg_out.h:33

Definition at line 46 of file phpdbg_out.h.

◆ phpdbg_writeln

#define phpdbg_writeln ( strfmt,
... )
Value:
phpdbg_print(P_WRITELN, PHPDBG_G(io)[PHPDBG_STDOUT].fd, strfmt, ##__VA_ARGS__)
@ P_WRITELN
Definition phpdbg_out.h:32

Definition at line 45 of file phpdbg_out.h.

◆ SEPARATE

#define SEPARATE   "------------------------------------------------" /* }}} */

Definition at line 70 of file phpdbg_out.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

Error/notice/formatting helpers

Enumerator
P_ERROR 
P_NOTICE 
P_WRITELN 
P_WRITE 
P_STDOUT 
P_STDERR 
P_LOG 

Definition at line 29 of file phpdbg_out.h.

Function Documentation

◆ _phpdbg_asprintf()

PHPDBG_API int _phpdbg_asprintf ( char ** buf,
const char * format,
... )

Definition at line 32 of file phpdbg_out.c.

◆ phpdbg_activate_err_buf()

PHPDBG_API void phpdbg_activate_err_buf ( bool active)

Definition at line 169 of file phpdbg_out.c.

◆ phpdbg_free_err_buf()

PHPDBG_API void phpdbg_free_err_buf ( void )

Definition at line 159 of file phpdbg_out.c.

◆ phpdbg_log_internal()

PHPDBG_API int PHPDBG_API int phpdbg_log_internal ( int fd,
const char * fmt,
... )

◆ phpdbg_out_internal()

PHPDBG_API int PHPDBG_API int PHPDBG_API int phpdbg_out_internal ( int fd,
const char * fmt,
... )

◆ phpdbg_output_err_buf()

PHPDBG_API int phpdbg_output_err_buf ( const char * strfmt,
... )

Definition at line 173 of file phpdbg_out.c.

◆ phpdbg_print()

PHPDBG_API int phpdbg_print ( int severity,
int fd,
const char * strfmt,
... )

◆ phpdbg_process_print()

int phpdbg_process_print ( int fd,
int type,
const char * msg,
int msglen )

Definition at line 43 of file phpdbg_out.c.