com php-src: Make ZEND_ACC_IMMUTABLE and ZEND_ACC_H AS_TYPE_HINTS to be common (for functions and classes): Zend/zend_compile.h

From: Date: Tue, 02 Oct 2018 06:51:06 +0000
Subject: com php-src: Make ZEND_ACC_IMMUTABLE and ZEND_ACC_H AS_TYPE_HINTS to be common (for functions and classes): Zend/zend_compile.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-103299@lists.php.net to get a copy of this message
Commit: f52158681422c15a33d43f31b8dad5d3a5d80bc7 Author: Dmitry Stogov <dmitry@zend.com> Tue, 2 Oct 2018 09:51:06 +0300 Parents: 26065662692f2ce7d1b7ebd1ab6c1c96d177a067 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f52158681422c15a33d43f31b8dad5d3a5d80bc7 Log: Make ZEND_ACC_IMMUTABLE and ZEND_ACC_HAS_TYPE_HINTS to be common (for functions and classes) Changed paths: M Zend/zend_compile.h Diff: diff --git a/Zend/zend_compile.h b/Zend/zend_compile.h index 944d5b2..fa550ff 100644 --- a/Zend/zend_compile.h +++ b/Zend/zend_compile.h @@ -217,7 +217,14 @@ typedef struct _zend_oparray_context { #define ZEND_ACC_ABSTRACT (1 << 6) /* X | X | | */ #define ZEND_ACC_EXPLICIT_ABSTRACT_CLASS (1 << 6) /* X | | | */ /* | | | */ -/* Class Flags (unused: 13...) | | | */ +/* Immutable op_array and class_entrues | | | */ +/* (implemented only for lazy loading of op_arrays) | | | */ +#define ZEND_ACC_IMMUTABLE (1 << 7) /* ? | X | | */ +/* | | | */ +/* Function has typed arguments / class has typed props | | | */ +#define ZEND_ACC_HAS_TYPE_HINTS (1 << 8) /* ? | X | | */ +/* | | | */ +/* Class Flags (unused: 15...) | | | */ /* =========== | | | */ /* | | | */ /* Special class types | | | */ @@ -234,37 +241,31 @@ typedef struct _zend_oparray_context { /* | | | */ /* Class has magic methods __get/__set/__unset/ | | | */ /* __isset that use guards | | | */ -#define ZEND_ACC_USE_GUARDS (1 << 7) /* X | | | */ +#define ZEND_ACC_USE_GUARDS (1 << 9) /* X | | | */ /* | | | */ /* Class constants updated | | | */ -#define ZEND_ACC_CONSTANTS_UPDATED (1 << 8) /* X | | | */ +#define ZEND_ACC_CONSTANTS_UPDATED (1 << 10) /* X | | | */ /* | | | */ /* Class extends another class | | | */ -#define ZEND_ACC_INHERITED (1 << 9) /* X | | | */ +#define ZEND_ACC_INHERITED (1 << 11) /* X | | | */ /* | | | */ /* Class implements interface(s) | | | */ -#define ZEND_ACC_IMPLEMENT_INTERFACES (1 << 10) /* X | | | */ +#define ZEND_ACC_IMPLEMENT_INTERFACES (1 << 12) /* X | | | */ /* | | | */ /* Class uses trait(s) | | | */ -#define ZEND_ACC_IMPLEMENT_TRAITS (1 << 11) /* X | | | */ +#define ZEND_ACC_IMPLEMENT_TRAITS (1 << 13) /* X | | | */ /* | | | */ /* User class has methods with static variables | | | */ -#define ZEND_HAS_STATIC_IN_METHODS (1 << 12) /* X | | | */ +#define ZEND_HAS_STATIC_IN_METHODS (1 << 14) /* X | | | */ /* | | | */ /* Function Flags (unused: 25...30) | | | */ /* ============== | | | */ /* | | | */ -/* Immutable op_array (lazy loading) | | | */ -#define ZEND_ACC_IMMUTABLE (1 << 7) /* | X | | */ -/* | | | */ /* deprecation flag | | | */ -#define ZEND_ACC_DEPRECATED (1 << 8) /* | X | | */ +#define ZEND_ACC_DEPRECATED (1 << 9) /* | X | | */ /* | | | */ /* Function returning by reference | | | */ -#define ZEND_ACC_RETURN_REFERENCE (1 << 9) /* | X | | */ -/* | | | */ -/* Function has typed arguments | | | */ -#define ZEND_ACC_HAS_TYPE_HINTS (1 << 10) /* | X | | */ +#define ZEND_ACC_RETURN_REFERENCE (1 << 10) /* | X | | */ /* | | | */ /* Function has a return type | | | */ #define ZEND_ACC_HAS_RETURN_TYPE (1 << 11) /* | X | | */

« previous php.cvs (#103299) next »