projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
fix leaks
[m6w6/ext-http]
/
php_http_misc.h
diff --git
a/php_http_misc.h
b/php_http_misc.h
index 421c9912cf57082283554c2c4ca759c82a098c4e..e8d900b5813848c48b95b57566c164dd8e7e689f 100644
(file)
--- a/
php_http_misc.h
+++ b/
php_http_misc.h
@@
-139,6
+139,11
@@
static inline const char *php_http_locate_bin_eol(const char *bin, size_t len, i
/* ZEND */
/* ZEND */
+#ifdef PHP_DEBUG
+# undef HASH_OF
+# define HASH_OF(p) ((HashTable*)(Z_TYPE_P(p)==IS_ARRAY ? Z_ARRVAL_P(p) : ((Z_TYPE_P(p)==IS_OBJECT ? Z_OBJ_HT_P(p)->get_properties((p)) : NULL))))
+#endif
+
static inline void *PHP_HTTP_OBJ(zend_object *zo, zval *zv)
{
if (!zo) {
static inline void *PHP_HTTP_OBJ(zend_object *zo, zval *zv)
{
if (!zo) {
@@
-182,12
+187,6
@@
static inline ZEND_RESULT_CODE php_http_ini_entry(const char *name_str, size_t n
#define Z_ISUSER(zv) (Z_TYPE(zv) <= 10)
#define Z_ISUSER_P(zvp) Z_ISUSER(*(zvp))
#define Z_ISUSER(zv) (Z_TYPE(zv) <= 10)
#define Z_ISUSER_P(zvp) Z_ISUSER(*(zvp))
-#define RETVAL_STR_COPY(zs) ZVAL_STR_COPY(return_value, zs)
-#define RETURN_STR_COPY(zs) do { \
- ZVAL_STR_COPY(return_value, zs); \
- return; \
-}
-
/* return object(values) */
#define ZVAL_OBJECT(z, o, addref) \
ZVAL_OBJ(z, o); \
/* return object(values) */
#define ZVAL_OBJECT(z, o, addref) \
ZVAL_OBJ(z, o); \