Skip to content

Commit 60e521d

Browse files
committed
Use 0-based indices
1 parent bfe35a0 commit 60e521d

File tree

6 files changed

+119
-119
lines changed

6 files changed

+119
-119
lines changed

Zend/zend_attributes_arginfo.h

Lines changed: 30 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Zend/zend_builtin_functions_arginfo.h

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/gen_stub.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2662,7 +2662,7 @@ function (Name $item) {
26622662
foreach ($this->attributes as $key => $attribute) {
26632663
$code .= $attribute->generateCode(
26642664
"zend_add_class_attribute(class_entry",
2665-
"class_{$escapedName}_" . ($key + 1),
2665+
"class_{$escapedName}_$key",
26662666
$allConstInfos,
26672667
$this->phpVersionIdMinimumCompatibility
26682668
);
@@ -4307,7 +4307,7 @@ static function (FuncInfo $funcInfo) use ($allConstInfos, $phpVersionIdMinimumCo
43074307
foreach ($funcInfo->attributes as $key => $attribute) {
43084308
$code .= $attribute->generateCode(
43094309
"zend_add_function_attribute(zend_hash_str_find_ptr($functionTable, \"" . $funcInfo->name->getNameForAttributes() . "\", sizeof(\"" . $funcInfo->name->getNameForAttributes() . "\") - 1)",
4310-
"func_" . $funcInfo->name->getNameForAttributes() . "_" . ($key + 1),
4310+
"func_" . $funcInfo->name->getNameForAttributes() . "_$key",
43114311
$allConstInfos,
43124312
$phpVersionIdMinimumCompatibility
43134313
);
@@ -4317,7 +4317,7 @@ static function (FuncInfo $funcInfo) use ($allConstInfos, $phpVersionIdMinimumCo
43174317
foreach ($arg->attributes as $key => $attribute) {
43184318
$code .= $attribute->generateCode(
43194319
"zend_add_parameter_attribute(zend_hash_str_find_ptr($functionTable, \"" . $funcInfo->name->getNameForAttributes() . "\", sizeof(\"" . $funcInfo->name->getNameForAttributes() . "\") - 1), $index",
4320-
"func_{$funcInfo->name->getNameForAttributes()}_arg{$index}_" . ($key + 1),
4320+
"func_{$funcInfo->name->getNameForAttributes()}_arg{$index}_$key",
43214321
$allConstInfos,
43224322
$phpVersionIdMinimumCompatibility
43234323
);
@@ -4348,7 +4348,7 @@ static function (ConstInfo $constInfo) use ($allConstInfos, $phpVersionIdMinimum
43484348
foreach ($constInfo->attributes as $key => $attribute) {
43494349
$code .= $attribute->generateCode(
43504350
"zend_add_class_constant_attribute(class_entry, const_" . $constInfo->name->getDeclarationName(),
4351-
"const_" . $constInfo->name->getDeclarationName() . "_" . ($key + 1),
4351+
"const_" . $constInfo->name->getDeclarationName() . "_$key",
43524352
$allConstInfos,
43534353
$phpVersionIdMinimumCompatibility
43544354
);
@@ -4373,7 +4373,7 @@ function generatePropertyAttributeInitialization(
43734373
foreach ($propertyInfo->attributes as $key => $attribute) {
43744374
$code .= $attribute->generateCode(
43754375
"zend_add_property_attribute(class_entry, property_" . $propertyInfo->name->getDeclarationName(),
4376-
"property_" . $propertyInfo->name->getDeclarationName() . "_" . ($key + 1),
4376+
"property_" . $propertyInfo->name->getDeclarationName() . "_" . $key,
43774377
$allConstInfos,
43784378
$phpVersionIdMinimumCompatibility
43794379
);

ext/oci8/oci8_arginfo.h

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext/standard/basic_functions_arginfo.h

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)