Skip to content

Commit e76ddbd

Browse files
committed
Prevent strict interpretation of tentative definition
This header declaration is never supposed to be interpreted as definition; otherwise, the handlers are not properly initialized, what happens, for instance, with ASan instrumented MSVC builds. Closes GH-7827.
1 parent fd3fc5c commit e76ddbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/com_dotnet/php_com_dotnet_internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ zend_class_entry *php_com_variant_class_entry, *php_com_exception_class_entry, *
7272
zend_object* php_com_object_new(zend_class_entry *ce);
7373
zend_object* php_com_object_clone(zend_object *object);
7474
void php_com_object_free_storage(zend_object *object);
75-
zend_object_handlers php_com_object_handlers;
75+
extern zend_object_handlers php_com_object_handlers;
7676
void php_com_object_enable_event_sink(php_com_dotnet_object *obj, int enable);
7777

7878
/* com_saproxy.c */

0 commit comments

Comments
 (0)