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 pq\Result's iterator handling
[m6w6/ext-pq]
/
src
/
php_pq_misc.h
diff --git
a/src/php_pq_misc.h
b/src/php_pq_misc.h
index 2fdb7e1432e76fc5832c90d965fcd4008f916885..bffa9d42d181dce3b8bb089be6134000f779bbfe 100644
(file)
--- a/
src/php_pq_misc.h
+++ b/
src/php_pq_misc.h
@@
-20,8
+20,8
@@
#define z_is_true zend_is_true
#define smart_str_s(ss) (ss)->s
#define z_is_true zend_is_true
#define smart_str_s(ss) (ss)->s
-#define smart_str_v(ss) (s
s)->s->val
-#define smart_str_l(ss) (s
s)->s->len
+#define smart_str_v(ss) (s
mart_str_s(ss)?(ss)->s->val:NULL)
+#define smart_str_l(ss) (s
mart_str_s(ss)?(ss)->s->len:0)
/* clear result object associated with a result handle */
extern void php_pqres_clear(PGresult *r);
/* clear result object associated with a result handle */
extern void php_pqres_clear(PGresult *r);