Skip to content

Commit 9eb6a5b

Browse files
committed
Minor nits fixes
1 parent 1c52e37 commit 9eb6a5b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/pdo/pdo_stmt.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ static bool pdo_call_fetch_object_constructor(zend_function *constructor, HashTa
656656
};
657657

658658
zend_call_function(&fci, &fcc);
659-
bool failed = Z_ISUNDEF(retval_constructor_call);;
659+
bool failed = Z_ISUNDEF(retval_constructor_call);
660660
zval_ptr_dtor(&retval_constructor_call);
661661

662662
return failed;
@@ -746,7 +746,7 @@ static bool do_fetch(pdo_stmt_t *stmt, zval *return_value, enum pdo_fetch_type h
746746

747747
case PDO_FETCH_OBJ:
748748
ce = zend_standard_class_def;
749-
object_init_ex(return_value, zend_standard_class_def);
749+
object_init(return_value);
750750
break;
751751

752752
case PDO_FETCH_CLASS:
@@ -838,7 +838,7 @@ static bool do_fetch(pdo_stmt_t *stmt, zval *return_value, enum pdo_fetch_type h
838838
zval unserialization_string;
839839
fetch_value(stmt, &unserialization_string, column_index_to_fetch, NULL);
840840

841-
const unsigned char *str = (unsigned char*) "";
841+
const unsigned char *str = (const unsigned char*) "";
842842
size_t str_len = 0;
843843
if (Z_TYPE(unserialization_string) == IS_STRING) {
844844
str = (unsigned char*) Z_STRVAL(unserialization_string);

0 commit comments

Comments
 (0)