Skip to content

Commit b04efe1

Browse files
committed
Deprecate A and H ZPP specs
As they allow using an object as an array which has special requirements due to Enum and readonly props
1 parent 09b5a5a commit b04efe1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Zend/zend_API.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -925,6 +925,8 @@ static const char *zend_parse_arg_impl(zval *arg, va_list *va, const char **spec
925925
break;
926926

927927
case 'A':
928+
zend_error(E_DEPRECATED, "ZPP spec A is deprecated");
929+
ZEND_FALLTHROUGH;
928930
case 'a':
929931
{
930932
zval **p = va_arg(*va, zval **);
@@ -936,6 +938,8 @@ static const char *zend_parse_arg_impl(zval *arg, va_list *va, const char **spec
936938
break;
937939

938940
case 'H':
941+
zend_error(E_DEPRECATED, "ZPP spec H is deprecated");
942+
ZEND_FALLTHROUGH;
939943
case 'h':
940944
{
941945
HashTable **p = va_arg(*va, HashTable **);

0 commit comments

Comments
 (0)