fix raphf dep
[m6w6/ext-pq] / src / php_pq_params.c
index ec915829ed7146bf03911fd7f6eb93d69ddfdaf6..149da750ede70bf98224196e8b7564e8b54690ed 100644 (file)
@@ -24,6 +24,8 @@
 
 #include "php_pq.h"
 #include "php_pq_params.h"
+#undef PHP_PQ_TYPE
+#include "php_pq_type.h"
 
 void php_pq_params_set_type_conv(php_pq_params_t *p, HashTable *conv)
 {
@@ -187,19 +189,11 @@ static void php_pq_params_set_param(php_pq_params_t *p, unsigned index, zval **z
                case IS_DOUBLE:
                        SEPARATE_ZVAL(zp);
                        Z_TYPE_PP(zp) = IS_STRING;
-                       Z_STRLEN_PP(zp) = spprintf(&Z_STRVAL_PP(zp), 0, "%F", Z_DVAL_PP((zval **)p));
+                       Z_STRLEN_PP(zp) = spprintf(&Z_STRVAL_PP(zp), 0, "%F", Z_DVAL_PP(zpp));
                        break;
 
                case IS_ARRAY:
                {
-
-#if HAVE_PHP_PQ_TYPE_H
-#      undef PHP_PQ_TYPE
-#      include "php_pq_type.h"
-#else
-#      define PHP_PQ_TYPE_OF_ARRAY(oid) 0
-#endif
-
                        zval *tmp;
                        MAKE_STD_ZVAL(tmp);
                        Z_TYPE_P(tmp) = IS_STRING;