in an OOP extension using methods tagged as ZEND_ACC_STATIC, does ZE2
prevent them from being called statically or do i always need to do :
if (!getThis()) {
ERROR("Cannot call this method statically");
RETURN_FALSE;
}
l0t3k
lets try again
in an OOP extension using methods <em>NOT</em> tagged as ZEND_ACC_STATIC,
does ZE2
prevent them from being called statically or do i always need to do :
if (!getThis()) {
ERROR("Cannot call this method statically");
RETURN_FALSE;
}
l0t3k
Um, that's the type of thing that a quick test could tell you, isn't it?
John
lets try again
in an OOP extension using methods <em>NOT</em> tagged as ZEND_ACC_STATIC,
does ZE2
prevent them from being called statically or do i always need to do :if (!getThis()) { ERROR("Cannot call this method statically"); RETURN_FALSE; }
l0t3k
--
-=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=-
John Coggeshall http://www.coggeshall.org/
The PHP Developer's Handbook http://www.php-handbook.com/
-=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=