Skip to content

Commit d529a0c

Browse files
committed
wip
1 parent 316f406 commit d529a0c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/pdo_mysql/mysql_statement.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,7 @@ static int pdo_mysql_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_da
540540

541541
case IS_OBJECT:
542542
if(zend_class_implements_interface(Z_OBJCE_P(parameter), zend_ce_stringable)) {
543+
convert_to_string(parameter);
543544
b->buffer_type = MYSQL_TYPE_STRING;
544545
b->buffer = Z_STRVAL_P(parameter);
545546
b->buffer_length = Z_STRLEN_P(parameter);

0 commit comments

Comments
 (0)