]> granicus.if.org Git - php/commit
Switch from ZEND_ACC_DYNAMIC to ZEND_ACC_ALLOW_STATIC and disallow calling
authorMarcus Boerger <helly@php.net>
Sat, 24 Jan 2004 16:59:24 +0000 (16:59 +0000)
committerMarcus Boerger <helly@php.net>
Sat, 24 Jan 2004 16:59:24 +0000 (16:59 +0000)
commit3ca44539a13d2815c30a7fd9b172adcb0f2666f0
tree8265b64b46f249c5c5bba412880df609f17002d1
parente36cfeb0a9cda2399627910785e68fa5b3689269
Switch from ZEND_ACC_DYNAMIC to ZEND_ACC_ALLOW_STATIC and disallow calling
internal non-static methods statically.
# As discussed with Zeev:
# - For BC standard userspace methods allow this with an E_STRICT message.
# - If you want to implement an internal method taht can be called both
#   statically and non-statically then use flag ZEND_ACC_ALLOW_STATIC.
# - Magic user space methods __*() cannot and __construct, __destruct,
# __clone can never be called statically.
Zend/zend_API.c
Zend/zend_compile.c
Zend/zend_compile.h
Zend/zend_execute.c
Zend/zend_execute_API.c
tests/lang/bug23384.phpt