Skip to content

Commit 06ecf2b

Browse files
committed
fixup! Support arbitrary parameter attributes in stubs
1 parent 13ef586 commit 06ecf2b

13 files changed

+149
-149
lines changed

build/gen_stub.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3915,7 +3915,7 @@ static function (FuncInfo $funcInfo) use ($allConstInfos) {
39153915
}
39163916

39173917
foreach ($arg->attributes as $attribute) {
3918-
$code .= $attribute->generateCode("zend_add_parameter_attribute(zend_hash_str_find_ptr($functionTable, \"" . $funcInfo->name->getNameForAttributes() . "\", strlen(\"" . $funcInfo->name->getNameForAttributes() . "\")), $index", "{$funcInfo->getArgInfoName()}_arg{$index}", $allConstInfos);
3918+
$code .= $attribute->generateCode("zend_add_parameter_attribute(zend_hash_str_find_ptr($functionTable, \"" . $funcInfo->name->getNameForAttributes() . "\", sizeof(\"" . $funcInfo->name->getNameForAttributes() . "\") - 1), $index", "{$funcInfo->getArgInfoName()}_arg{$index}", $allConstInfos);
39193919
}
39203920
}
39213921

ext/ftp/ftp_arginfo.h

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext/hash/hash_arginfo.h

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext/imap/php_imap_arginfo.h

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext/ldap/ldap_arginfo.h

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext/mysqli/mysqli_arginfo.h

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext/oci8/oci8_arginfo.h

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext/odbc/odbc_arginfo.h

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)