zts and 5.6 fixes
[m6w6/ext-pq] / src / php_pq_misc.h
index 0ba99a2b8f88c6e362313c1322098d599a9cda0d..919892952e0576d8e7314f1ddc95ad2af13da1e3 100644 (file)
 
 typedef int STATUS; /* SUCCESS/FAILURE */
 
+/* TSRM morony */
+#if PHP_VERSION_ID >= 50700
+#      define z_is_true(z) zend_is_true(z TSRMLS_CC)
+#else
+#      define z_is_true zend_is_true
+#endif
+
 /* trim LF from EOL */
 char *rtrim(char *e);