21#define emalloc_rel_orig(size) \
22 ( __php_stream_call_depth == 0 \
23 ? _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_RELAY_CC) \
24 : _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_ORIG_RELAY_CC) )
26#define erealloc_rel_orig(ptr, size) \
27 ( __php_stream_call_depth == 0 \
28 ? _erealloc((ptr), (size), 0 ZEND_FILE_LINE_CC ZEND_FILE_LINE_RELAY_CC) \
29 : _erealloc((ptr), (size), 0 ZEND_FILE_LINE_CC ZEND_FILE_LINE_ORIG_RELAY_CC) )
31#define pemalloc_rel_orig(size, persistent) ((persistent) ? malloc((size)) : emalloc_rel_orig((size)))
32#define perealloc_rel_orig(ptr, size, persistent) ((persistent) ? realloc((ptr), (size)) : erealloc_rel_orig((ptr), (size)))
34# define pemalloc_rel_orig(size, persistent) pemalloc((size), (persistent))
35# define perealloc_rel_orig(ptr, size, persistent) perealloc((ptr), (size), (persistent))
36# define emalloc_rel_orig(size) emalloc((size))
40#define STREAM_WRAPPER_PLAIN_FILES ((php_stream_wrapper*)-1)
43#define MAP_FAILED ((void *) -1)
46#define CHUNK_SIZE 8192
52# define EWOULDBLOCK WSAEWOULDBLOCK
56# define EMSGSIZE WSAEMSGSIZE
struct _php_stream php_stream
void php_stream_mode_sanitize_fdopen_fopencookie(php_stream *stream, char *result)