Skip to content

Commit 08dd9ab

Browse files
author
Martin Köditz
committed
Used Z_LVAL_P instead of Z_BVAL_P since Windows throws error unresolved symbol.
1 parent 39ace8b commit 08dd9ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ibase_query.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,8 @@ static int _php_ibase_bind_array(zval *val, char *buf, zend_ulong buf_size, /* {
583583
break;
584584
case SQL_BOOLEAN:
585585
convert_to_boolean(val);
586-
*(zend_bool*) buf = Z_BVAL_P(val);
586+
// On Windows error unresolved symbol Z_BVAL_P is thrown, so we use Z_LVAL_P
587+
*(zend_bool*) buf = Z_LVAL_P(val);
587588
break;
588589
case SQL_DOUBLE:
589590
convert_to_double(val);

0 commit comments

Comments
 (0)