Skip to content

Commit 4791772

Browse files
committed
Set called_scope to the return object CE
1 parent f6e74e7 commit 4791772

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/pdo/pdo_stmt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ static bool pdo_call_fetch_object_constructor(zend_function *constructor, HashTa
650650
zend_fcall_info_cache fcc = {
651651
.function_handler = constructor,
652652
.object = Z_OBJ_P(return_value),
653-
.called_scope = NULL,
653+
.called_scope = Z_OBJCE_P(return_value),
654654
.calling_scope = NULL,
655655
.closure = NULL,
656656
};

0 commit comments

Comments
 (0)