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 );As constantes abaixo são definidas por esta extensão e só estarão disponíveis quando a extensão tiver sido compilada no PHP ou tiver sido carregada dinamicamente em tempo de execução.
Os seguintes opcodes são definidos como constantes pelo uopz antes da versão 5.0.0:
ZEND_EXIT
     (int)
    true para sair, false para continuar.
     
    ZEND_NEW
     (int)
    ZEND_THROW
     (int)
    ZEND_FETCH_CLASS
     (int)
    ZEND_ADD_TRAIT
     (int)
    ZEND_ADD_INTERFACE
     (int)
    ZEND_INSTANCEOF
     (int)
    As seguintes constantes controlam o comportamento da máquina virtual após a invocação de um manipulador de usuário. Tenha muito cuidado! Essas constantes foram removidas a partir do uopz 5.0.0.
ZEND_USER_OPCODE_CONTINUE
     (int)
    ZEND_USER_OPCODE_ENTER
     (int)
    ZEND_USER_OPCODE_LEAVE
     (int)
    ZEND_USER_OPCODE_DISPATCH
     (int)
    ZEND_USER_OPCODE_DISPATCH_TO
     (int)
    ZEND_USER_OPCODE_RETURN
     (int)
    Os seguintes modificadores são registrados como constantes pelo uopz:
ZEND_ACC_PUBLIC
     (int)
    ZEND_ACC_PROTECTED
     (int)
    ZEND_ACC_PRIVATE
     (int)
    ZEND_ACC_STATIC
     (int)
    ZEND_ACC_FINAL
     (int)
    ZEND_ACC_ABSTRACT
     (int)
    ZEND_ACC_CLASS
     (int)
    ZEND_ACC_INTERFACE
     (int)
    ZEND_ACC_TRAIT
     (int)
    ZEND_ACC_FETCH
     (int)
    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 );