1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Make ReflectionConstant non-final

Fixes GH-19747
Closes GH-19901
This commit is contained in:
sasezaki
2025-09-21 22:13:27 +09:00
committed by Ilija Tovilo
parent 83ccc97d80
commit 78c997f36f
4 changed files with 9 additions and 3 deletions

3
NEWS
View File

@@ -53,6 +53,9 @@ PHP NEWS
- MBstring:
. Updated Unicode data tables to Unicode 17.0. (Yuya Hamada)
- Reflection:
. ReflectionConstant is no longer final. (sasezaki)
- Standard:
. Passing strings which are not one byte long to ord() is now deprecated.
(Girgias)

View File

@@ -862,6 +862,9 @@ PHP 8.5 UPGRADE NOTES
readline_callback_handler_install() have been changed to true, rather
than bool.
- Reflection:
. ReflectionConstant is no longer final.
========================================
10. New Global Constants
========================================

View File

@@ -904,7 +904,7 @@ final class ReflectionFiber
* @strict-properties
* @not-serializable
*/
final class ReflectionConstant implements Reflector
class ReflectionConstant implements Reflector
{
public string $name;

View File

@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 0f6ecac0c6c4fb4af140a1be95f6a50c7532dae9 */
* Stub hash: 576229f7a0c4afd2f8902db6ce87daa51256965e */
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Reflection_getModifierNames, 0, 1, IS_ARRAY, 0)
ZEND_ARG_TYPE_INFO(0, modifiers, IS_LONG, 0)
@@ -1894,7 +1894,7 @@ static zend_class_entry *register_class_ReflectionConstant(zend_class_entry *cla
zend_class_entry ce, *class_entry;
INIT_CLASS_ENTRY(ce, "ReflectionConstant", class_ReflectionConstant_methods);
class_entry = zend_register_internal_class_with_flags(&ce, NULL, ZEND_ACC_FINAL|ZEND_ACC_NO_DYNAMIC_PROPERTIES|ZEND_ACC_NOT_SERIALIZABLE);
class_entry = zend_register_internal_class_with_flags(&ce, NULL, ZEND_ACC_NO_DYNAMIC_PROPERTIES|ZEND_ACC_NOT_SERIALIZABLE);
zend_class_implements(class_entry, 1, class_entry_Reflector);
zval property_name_default_value;