summaryrefslogtreecommitdiff
path: root/zend/classimpl.cpp
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-07-08 15:15:00 +0200
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-07-08 15:15:00 +0200
commit28578382589dab25ea5fbd35b7754687706abc07 (patch)
tree726823bf792fd50d73630acce0f6dd0d7c1815f1 /zend/classimpl.cpp
parentd37fa94d0009a49ba9123f22e042109e041c46f8 (diff)
changed comments to match coding style
Diffstat (limited to 'zend/classimpl.cpp')
-rw-r--r--zend/classimpl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/zend/classimpl.cpp b/zend/classimpl.cpp
index 23c39cf..b2acc24 100644
--- a/zend/classimpl.cpp
+++ b/zend/classimpl.cpp
@@ -1387,12 +1387,12 @@ void ClassImpl::initialize(ClassBase *base, const std::string &prefix TSRMLS_DC)
// register the class
_entry = zend_register_internal_class_ex(&entry, _parent->_entry, const_cast<char*>(_parent->name().c_str()) TSRMLS_CC);
}
-
- // otherwise an error is reported
else
{
+ // report an error - the extension programmer probably made an error
std::cerr << "Derived class " << name() << " is initialized before base class " << _parent->name() << ": base class is ignored" << std::endl;
- // register the class
+
+ // register the class, but without the base class
_entry = zend_register_internal_class(&entry TSRMLS_CC);
}
}