projects
/
m6w6
/
ext-pq
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
| inline |
side by side
Fix empty arrays parsing
[m6w6/ext-pq]
/
src
/
php_pq_misc.c
diff --git
a/src/php_pq_misc.c
b/src/php_pq_misc.c
index df07591570153603be6137d5ec62634abc15ecda..619559d0fe724d393d299b72b467c0b84cd5a673 100644
(file)
--- a/
src/php_pq_misc.c
+++ b/
src/php_pq_misc.c
@@
-318,6
+318,9
@@
static ZEND_RESULT_CODE parse_element(ArrayParserState *a, char delim)
case '{':
return parse_array(a);
+ case '}':
+ return SUCCESS;
+
case '"':
a->quotes = 1;
++a->ptr;