projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
fixed HEAD regression always warning about a partial file transfer
[m6w6/ext-http]
/
php_http_env_request.c
diff --git
a/php_http_env_request.c
b/php_http_env_request.c
index ac0a5e4d23ebe31400f180b4c36512b764736c72..a884d2ffe432d804c145cf2685757049a914fbea 100644
(file)
--- a/
php_http_env_request.c
+++ b/
php_http_env_request.c
@@
-172,7
+172,7
@@
static PHP_METHOD(HttpEnvRequest, __construct)
do {\
zend_fcall_info fci; \
zend_fcall_info_cache fcc; \
do {\
zend_fcall_info fci; \
zend_fcall_info_cache fcc; \
- zval *rv, mn, ***args = ecalloc(sizeof(zval **), ZEND_NUM_ARGS()); \
+ zval *rv
= NULL
, mn, ***args = ecalloc(sizeof(zval **), ZEND_NUM_ARGS()); \
zval *qs = zend_read_property(Z_OBJCE_P(getThis()), getThis(), ZEND_STRL(prop), 0 TSRMLS_CC); \
\
INIT_PZVAL(&mn); \
zval *qs = zend_read_property(Z_OBJCE_P(getThis()), getThis(), ZEND_STRL(prop), 0 TSRMLS_CC); \
\
INIT_PZVAL(&mn); \
@@
-187,7
+187,9
@@
static PHP_METHOD(HttpEnvRequest, __construct)
zend_fcall_info_args_clear(&fci, 1); \
efree(args); \
zval_dtor(&mn); \
zend_fcall_info_args_clear(&fci, 1); \
efree(args); \
zval_dtor(&mn); \
- RETVAL_ZVAL(rv, 0, 1); \
+ if (rv) { \
+ RETVAL_ZVAL(rv, 0, 1); \
+ } \
} while(0);
ZEND_BEGIN_ARG_INFO_EX(ai_HttpEnvRequest_getForm, 0, 0, 0)
} while(0);
ZEND_BEGIN_ARG_INFO_EX(ai_HttpEnvRequest_getForm, 0, 0, 0)