projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
018b2c5
)
fixed pecl bug #14382 PHP crash after casting scalar argument to an array in...
author
Michael Wallner
<mike@php.net>
Thu, 20 Aug 2009 11:20:23 +0000
(11:20 +0000)
committer
Michael Wallner
<mike@php.net>
Thu, 20 Aug 2009 11:20:23 +0000
(11:20 +0000)
http_querystring_api.c
patch
|
blob
|
history
diff --git
a/http_querystring_api.c
b/http_querystring_api.c
index 4fc3986313bbd2e9a4272f952cf5239730efa486..e6b557adc3f0d5248b3283d761f4734e047f1836 100644
(file)
--- a/
http_querystring_api.c
+++ b/
http_querystring_api.c
@@
-161,6
+161,11
@@
static inline int _http_querystring_modify_array(zval *qarray, zval *params TSRM
static inline int _http_querystring_modify_array_ex(zval *qarray, int key_type, char *key, int keylen, ulong idx, zval *params_entry TSRMLS_DC)
{
zval **qarray_entry;
+
+ /* ensure array type */
+ if (Z_TYPE_P(qarray) != IS_ARRAY) {
+ convert_to_array(qarray);
+ }
/* delete */
if (Z_TYPE_P(params_entry) == IS_NULL) {