1
0
mirror of https://github.com/danog/ext-pq.git synced 2024-11-30 04:19:49 +01:00

Improvements

This commit is contained in:
Daniil Gentili 2020-10-27 19:33:06 +01:00
parent 6b853f5e9b
commit 87bfb48247
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
3 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@
#ifndef PHP_PQ_H #ifndef PHP_PQ_H
#define PHP_PQ_H #define PHP_PQ_H
#define PHP_PQ_VERSION "2.1.10dev" #define PHP_PQ_VERSION "2.1.9dev"
#ifdef PHP_WIN32 #ifdef PHP_WIN32
# define PHP_PQ_API __declspec(dllexport) # define PHP_PQ_API __declspec(dllexport)

View File

@ -165,7 +165,7 @@ zval *php_pqres_typed_zval(php_pqres_t *res, Oid typ, zval *zv)
ZVAL_NULL(zv); ZVAL_NULL(zv);
} else { } else {
ZVAL_STRINGL(zv, unescaped_str, unescaped_len); ZVAL_STRINGL(zv, unescaped_str, unescaped_len);
free(unescaped_str); PQfreemem(unescaped_str);
} }
break; break;
case PHP_PQ_OID_INT8: case PHP_PQ_OID_INT8:

View File

@ -25,10 +25,10 @@ typedef enum php_pqres_fetch {
#define PHP_PQRES_CONV_BOOL 0x0001 #define PHP_PQRES_CONV_BOOL 0x0001
#define PHP_PQRES_CONV_INT 0x0002 #define PHP_PQRES_CONV_INT 0x0002
#define PHP_PQRES_CONV_FLOAT 0x0004 #define PHP_PQRES_CONV_FLOAT 0x0004
#define PHP_PQRES_CONV_BYTEA 0x0008
#define PHP_PQRES_CONV_SCALAR 0x000f #define PHP_PQRES_CONV_SCALAR 0x000f
#define PHP_PQRES_CONV_ARRAY 0x0010 #define PHP_PQRES_CONV_ARRAY 0x0010
#define PHP_PQRES_CONV_DATETIME 0x0020 #define PHP_PQRES_CONV_DATETIME 0x0020
#define PHP_PQRES_CONV_BYTEA 0x0030
#define PHP_PQRES_CONV_JSON 0x0100 #define PHP_PQRES_CONV_JSON 0x0100
#define PHP_PQRES_CONV_ALL 0xffff #define PHP_PQRES_CONV_ALL 0xffff