From 2c8731db33528e614c0dd92eac71f94cfa70f156 Mon Sep 17 00:00:00 2001 From: Ilija Tovilo Date: Mon, 6 May 2024 16:03:02 +0200 Subject: [PATCH] Add test for GH-14109 --- ext/zend_test/tests/gh14109.phpt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 ext/zend_test/tests/gh14109.phpt diff --git a/ext/zend_test/tests/gh14109.phpt b/ext/zend_test/tests/gh14109.phpt new file mode 100644 index 00000000000..be8c5a75a7b --- /dev/null +++ b/ext/zend_test/tests/gh14109.phpt @@ -0,0 +1,16 @@ +--TEST-- +GH-14109: User class extending internal class with attributes +--EXTENSIONS-- +zend_test +--FILE-- +getAttributes() as $attribute) { + var_dump($attribute->newInstance()); +} +?> +--EXPECTF-- +object(ZendTestRepeatableAttribute)#%d (0) { +} +object(ZendTestRepeatableAttribute)#%d (0) { +}