XCache is a fast, stable PHP opcode cacher that has been proven and is now running on production servers under high load.
https://xcache.lighttpd.net/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
562 B
29 lines
562 B
#include "php.h" |
|
#include "xc_trace.h" |
|
#include <stdio.h> |
|
#include <stdarg.h> |
|
#include <string.h> |
|
|
|
const char *xc_trace_get_basename(const char *path) /* {{{ */ |
|
{ |
|
const char *last_separator = strrchr(path, PHP_DIR_SEPARATOR); |
|
return last_separator ? last_separator + 1 : path; |
|
} |
|
/* }}} */ |
|
int xc_vtrace(const char *fmt, va_list args) /* {{{ */ |
|
{ |
|
return vfprintf(stderr, fmt, args); |
|
} |
|
/* }}} */ |
|
int xc_trace(const char *fmt, ...) /* {{{ */ |
|
{ |
|
va_list args; |
|
int ret; |
|
|
|
va_start(args, fmt); |
|
ret = xc_vtrace(fmt, args); |
|
va_end(args); |
|
return ret; |
|
} |
|
/* }}} */ |
|
|
|
|