12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- #if ZEND_DEBUG
- #define emalloc_rel_orig(size) \
- ( __php_stream_call_depth == 0 \
- ? _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_RELAY_CC) \
- : _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_ORIG_RELAY_CC) )
- #define erealloc_rel_orig(ptr, size) \
- ( __php_stream_call_depth == 0 \
- ? _erealloc((ptr), (size), 0 ZEND_FILE_LINE_CC ZEND_FILE_LINE_RELAY_CC) \
- : _erealloc((ptr), (size), 0 ZEND_FILE_LINE_CC ZEND_FILE_LINE_ORIG_RELAY_CC) )
- #define pemalloc_rel_orig(size, persistent) ((persistent) ? malloc((size)) : emalloc_rel_orig((size)))
- #define perealloc_rel_orig(ptr, size, persistent) ((persistent) ? realloc((ptr), (size)) : erealloc_rel_orig((ptr), (size)))
- #else
- # define pemalloc_rel_orig(size, persistent) pemalloc((size), (persistent))
- # define perealloc_rel_orig(ptr, size, persistent) perealloc((ptr), (size), (persistent))
- # define emalloc_rel_orig(size) emalloc((size))
- #endif
- #define STREAM_DEBUG 0
- #define STREAM_WRAPPER_PLAIN_FILES ((php_stream_wrapper*)-1)
- #ifndef MAP_FAILED
- #define MAP_FAILED ((void *) -1)
- #endif
- #define CHUNK_SIZE 8192
- #ifdef PHP_WIN32
- # ifdef EWOULDBLOCK
- # undef EWOULDBLOCK
- # endif
- # define EWOULDBLOCK WSAEWOULDBLOCK
- # ifdef EMSGSIZE
- # undef EMSGSIZE
- # endif
- # define EMSGSIZE WSAEMSGSIZE
- #endif
- void php_stream_mode_sanitize_fdopen_fopencookie(php_stream *stream, char *result);
- void php_stream_tidy_wrapper_error_log(php_stream_wrapper *wrapper);
- void php_stream_display_wrapper_errors(php_stream_wrapper *wrapper, const char *path, const char *caption);
|