Skip to content

Commit

Permalink
better comment
Browse files Browse the repository at this point in the history
  • Loading branch information
EmielBruijntjes committed Jun 10, 2022
1 parent 86a9318 commit ea3e14b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zend/classimpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1368,7 +1368,8 @@ zend_class_entry *ClassImpl::initialize(ClassBase *base, const std::string &pref

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

// register function that is called for static method calls
Expand Down

0 comments on commit ea3e14b

Please sign in to comment.