At least with uops 5.02 and PHP 7.2 (Win64), the constant ZEND_ACC_FETCH is not defined - while others are.
You can use:
if ( !defined( 'ZEND_ACC_FETCH' ) )
define( 'ZEND_ACC_FETCH', PHP_INT_MAX );
下列常量由此扩展定义,且仅在此扩展编译入 PHP 或在运行时动态载入时可用。
The following opcodes are defined as constants by uopz before 5.0.0:
ZEND_EXIT
(integer)
TRUE
to exit, FALSE
to continue
ZEND_NEW
(integer)
ZEND_THROW
(integer)
ZEND_FETCH_CLASS
(integer)
ZEND_ADD_TRAIT
(integer)
ZEND_ADD_INTERFACE
(integer)
ZEND_INSTANCEOF
(integer)
The following constants control the VM's behaviour after a user handler is invoked, be extremely careful! These constants are removed as of uopz 5.0.0.
ZEND_USER_OPCODE_CONTINUE
(integer)
ZEND_USER_OPCODE_ENTER
(integer)
ZEND_USER_OPCODE_LEAVE
(integer)
ZEND_USER_OPCODE_DISPATCH
(integer)
ZEND_USER_OPCODE_DISPATCH_TO
(integer)
ZEND_USER_OPCODE_RETURN
(integer)
The following modifiers are registered as constants by uopz
ZEND_ACC_PUBLIC
(integer)
ZEND_ACC_PROTECTED
(integer)
ZEND_ACC_PRIVATE
(integer)
ZEND_ACC_STATIC
(integer)
ZEND_ACC_FINAL
(integer)
ZEND_ACC_ABSTRACT
(integer)
ZEND_ACC_CLASS
(integer)
ZEND_ACC_INTERFACE
(integer)
ZEND_ACC_TRAIT
(integer)
ZEND_ACC_FETCH
(integer)
At least with uops 5.02 and PHP 7.2 (Win64), the constant ZEND_ACC_FETCH is not defined - while others are.
You can use:
if ( !defined( 'ZEND_ACC_FETCH' ) )
define( 'ZEND_ACC_FETCH', PHP_INT_MAX );