more internal conversions
[m6w6/ext-pq] / src / php_pqconn.c
index c4d6c806341de53295bfec4bc1a2578144a732be..e869d92acd9000ac7f8a2c10561cc96ceb2bca7d 100644 (file)
@@ -458,7 +458,7 @@ static void php_pqconn_object_write_def_auto_conv(zval*object, void *o, zval *va
                }
        }
 
-       obj->intern->default_auto_convert = Z_LVAL_P(zac) & 0xff;
+       obj->intern->default_auto_convert = Z_LVAL_P(zac) & PHP_PQRES_CONV_ALL;
 
        if (zac != value) {
                zval_ptr_dtor(&zac);