Predefined Constants
The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime.
The following opcodes are defined as constants by uopz before 5.0.0:
-
ZEND_EXIT
(integer) -
Invoked by exit() and die(), receives no arguments. Return boolean
TRUE
to exit,FALSE
to continue -
ZEND_NEW
(integer) - Invoked by object construction, receives the class of object being created as the only argument
-
ZEND_THROW
(integer) - Invoked by the throw construct, receives the class of exception being thrown as the only argument
-
ZEND_FETCH_CLASS
(integer) - Invoked upon composure, receives the class the name of the class being fetched as the only argument
-
ZEND_ADD_TRAIT
(integer) - Invoked upon composure, receives the class the trait is being added to as the first argument, and the name of the trait as the second argument
-
ZEND_ADD_INTERFACE
(integer) - Invoked upon composure, receives the class the interface is being added to as the first argument, and the name of the interface as the second argument
-
ZEND_INSTANCEOF
(integer) - Invoked by instanceof operator, receives the object being verified as the first argument, and the name of the class which that object should be as the second argument
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) - Advance 1 opcode and continuue
-
ZEND_USER_OPCODE_ENTER
(integer) - Enter into new op_array without recursion
-
ZEND_USER_OPCODE_LEAVE
(integer) - Return to calling op_array within the same executor
-
ZEND_USER_OPCODE_DISPATCH
(integer) - Dispatch to original opcode handler
-
ZEND_USER_OPCODE_DISPATCH_TO
(integer) - Dispatch to a specific handler (OR'd with ZEND opcode constant)
-
ZEND_USER_OPCODE_RETURN
(integer) - Exit from executor (return from function)
The following modifiers are registered as constants by uopz
-
ZEND_ACC_PUBLIC
(integer) - Mark function as public, the default
-
ZEND_ACC_PROTECTED
(integer) - Mark function as protected
-
ZEND_ACC_PRIVATE
(integer) - Mark function as private
-
ZEND_ACC_STATIC
(integer) - Mark function as static
-
ZEND_ACC_FINAL
(integer) - Mark function as final
-
ZEND_ACC_ABSTRACT
(integer) - Mark function as abstract
-
ZEND_ACC_CLASS
(integer) - Dummy registered for consistency, the default kind of class entry. Removed as of uopz 5.0.0.
-
ZEND_ACC_INTERFACE
(integer) - Mark class as interface. Removed as of uopz 5.0.0.
-
ZEND_ACC_TRAIT
(integer) - Mark class as trait. Removed as of uopz 5.0.0.
-
ZEND_ACC_FETCH
(integer) - Used for getting flags only. Removed as of uopz 5.0.0.
English translation
You have asked to visit this site in English. For now, only the interface is translated, but not all the content yet.If you want to help me in translations, your contribution is welcome. All you need to do is register on the site, and send me a message asking me to add you to the group of translators, which will give you the opportunity to translate the pages you want. A link at the bottom of each translated page indicates that you are the translator, and has a link to your profile.
Thank you in advance.
Document created the 30/01/2003, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/php-rf-uopz.constants.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.