X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=src%2Fphp_pqres.h;h=d2d35d465fa85cdcd73977a5f2e33531b3056366;hp=4afff3948776a303dc9919c59f02b01d04b3a122;hb=da7b5981c5ae28504434c492d468913645111d66;hpb=359b3471d6ed843d8ecf9d5fb0b85f06af446800 diff --git a/src/php_pqres.h b/src/php_pqres.h index 4afff39..d2d35d4 100644 --- a/src/php_pqres.h +++ b/src/php_pqres.h @@ -22,13 +22,14 @@ typedef enum php_pqres_fetch { PHP_PQRES_FETCH_OBJECT } php_pqres_fetch_t; -#define PHP_PQRES_CONV_BOOL 0x01 -#define PHP_PQRES_CONV_INT 0x02 -#define PHP_PQRES_CONV_FLOAT 0x04 -#define PHP_PQRES_CONV_SCALAR 0x0f -#define PHP_PQRES_CONV_ARRAY 0x10 -#define PHP_PQRES_CONV_DATETIME 0x20 -#define PHP_PQRES_CONV_ALL 0xff +#define PHP_PQRES_CONV_BOOL 0x0001 +#define PHP_PQRES_CONV_INT 0x0002 +#define PHP_PQRES_CONV_FLOAT 0x0004 +#define PHP_PQRES_CONV_SCALAR 0x000f +#define PHP_PQRES_CONV_ARRAY 0x0010 +#define PHP_PQRES_CONV_DATETIME 0x0020 +#define PHP_PQRES_CONV_JSON 0x0100 +#define PHP_PQRES_CONV_ALL 0xffff typedef struct php_pqres_iterator { zend_object_iterator zi;