]> granicus.if.org Git - php/commit
Implemented the RFC `Support Class Constant Visibility`.
authorDmitry Stogov <dmitry@zend.com>
Tue, 8 Dec 2015 09:40:42 +0000 (12:40 +0300)
committerDmitry Stogov <dmitry@zend.com>
Tue, 8 Dec 2015 09:40:42 +0000 (12:40 +0300)
commita75c195000b3226904103244fa9c3d0ce1111838
tree1242c6dc6078647c43a295e4c83d8b6d00e88324
parenta8b7d0c29d13902f748c08d8a58e3d304450a1a2
Implemented the RFC `Support Class Constant Visibility`.

Squashed commit of the following:

commit f11ca0e7a57793fa0e3e7f6d451720e6c42bb0b9
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Tue Dec 8 12:38:42 2015 +0300

    Fixed test expectation

commit 211f873f542504d0a0f72b6b5cb23908a1c99a2d
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Tue Dec 8 12:28:38 2015 +0300

    Embed zend_class_constant.flags into zend_class_constants.value.u2.access_flags

commit 51deab84b2cdbf9cdb1a838cf33b2ee45c61748b
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Mon Dec 7 11:18:55 2015 +0300

    Fixed issues found by Nikita

commit 544dbd5b47e40d38a8ccb96bc5583e9cb7fdd723
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Sat Dec 5 02:41:05 2015 +0300

    Refactored immplementation of https://wiki.php.net/rfc/class_const_visibility
    @reeze created an RFC here and I emailed internals here and didn't get any responses positive/negative.
40 files changed:
Zend/zend_API.c
Zend/zend_API.h
Zend/zend_ast.h
Zend/zend_compile.c
Zend/zend_compile.h
Zend/zend_constants.c
Zend/zend_constants.h
Zend/zend_inheritance.c
Zend/zend_language_parser.y
Zend/zend_opcode.c
Zend/zend_types.h
Zend/zend_vm_def.h
Zend/zend_vm_execute.h
ext/opcache/Optimizer/pass1_5.c
ext/opcache/zend_accelerator_util_funcs.c
ext/opcache/zend_file_cache.c
ext/opcache/zend_persist.c
ext/opcache/zend_persist_calc.c
ext/reflection/php_reflection.c
ext/reflection/tests/017.phpt
ext/reflection/tests/ReflectionClassConstant_basic1.phpt [new file with mode: 0644]
ext/reflection/tests/ReflectionClass_toString_001.phpt
ext/reflection/tests/ReflectionExtension_getClasses_basic.phpt
ext/reflection/tests/bug29986.phpt
ext/reflection/tests/bug45765.phpt
tests/classes/constants_comments_001.phpt [new file with mode: 0644]
tests/classes/constants_visibility_001.phpt [new file with mode: 0644]
tests/classes/constants_visibility_002.phpt [new file with mode: 0644]
tests/classes/constants_visibility_003.phpt [new file with mode: 0644]
tests/classes/constants_visibility_004.phpt [new file with mode: 0644]
tests/classes/constants_visibility_005.phpt [new file with mode: 0644]
tests/classes/constants_visibility_006.phpt [new file with mode: 0644]
tests/classes/constants_visibility_007.phpt [new file with mode: 0644]
tests/classes/constants_visibility_error_001.phpt [new file with mode: 0644]
tests/classes/constants_visibility_error_002.phpt [new file with mode: 0644]
tests/classes/constants_visibility_error_003.phpt [new file with mode: 0644]
tests/classes/constants_visibility_error_004.phpt [new file with mode: 0644]
tests/classes/interface_constant_inheritance_005.phpt [new file with mode: 0644]
tests/classes/interface_constant_inheritance_006.phpt [new file with mode: 0644]
tests/classes/interface_constant_inheritance_007.phpt [new file with mode: 0644]