From 39ede67e17341b1a65ac04d0776d4a96d13993c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Kocsis?= Date: Tue, 31 Aug 2021 14:43:11 +0200 Subject: [PATCH] Fix typo in method name in gen_stub.php --- build/gen_stub.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/gen_stub.php b/build/gen_stub.php index 8096d0088e3..42c7f722729 100755 --- a/build/gen_stub.php +++ b/build/gen_stub.php @@ -397,7 +397,7 @@ class SimpleType { return str_replace('\\', '\\\\', $this->name); } - public function toCVarEscapedName(): string { + public function toVarEscapedName(): string { $name = str_replace('_', '__', $this->name); return str_replace('\\', '_', $this->name); } @@ -1425,7 +1425,7 @@ class PropertyInfo foreach ($arginfoType->classTypes as $classType) { $className = $classType->name; $escapedClassName = $classType->toEscapedName(); - $varEscapedClassName = $classType->toCVarEscapedName(); + $varEscapedClassName = $classType->toVarEscapedName(); $code .= "\tzend_string *property_{$propertyName}_class_{$varEscapedClassName} = zend_string_init(\"{$escapedClassName}\", sizeof(\"{$escapedClassName}\") - 1, 1);\n"; } @@ -1446,7 +1446,7 @@ class PropertyInfo } else { $className = $arginfoType->classTypes[0]->name; $escapedClassName = $arginfoType->classTypes[0]->toEscapedName(); - $varEscapedClassName = $arginfoType->classTypes[0]->toCVarEscapedName(); + $varEscapedClassName = $arginfoType->classTypes[0]->toVarEscapedName(); $code .= "\tzend_string *property_{$propertyName}_class_{$varEscapedClassName} = zend_string_init(\"{$escapedClassName}\", sizeof(\"${escapedClassName}\")-1, 1);\n"; $typeCode = "(zend_type) ZEND_TYPE_INIT_CLASS(property_{$propertyName}_class_{$varEscapedClassName}, 0, " . $arginfoType->toTypeMask() . ")";