Skip to content

Commit ea3e14b

Browse files
better comment
1 parent 86a9318 commit ea3e14b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

zend/classimpl.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1368,7 +1368,8 @@ zend_class_entry *ClassImpl::initialize(ClassBase *base, const std::string &pref
13681368

13691369
// we need a special constructor, but only for real classes, not for interfaces.
13701370
// (in fact: from php 7.4 onwards the create_object method is part of union
1371-
// together with the interface_gets_implemented method, which causes a crash)
1371+
// together with the interface_gets_implemented method, which causes a crash
1372+
// when the create_object property is set for an interface)
13721373
if (_type != ClassType::Interface) entry.create_object = &ClassImpl::createObject;
13731374

13741375
// register function that is called for static method calls

0 commit comments

Comments
 (0)