Commit 1a9a2c7052e for php.net

commit 1a9a2c7052e3e22b21c43b31dda9355b6d975f38
Author: Máté Kocsis <kocsismate@woohoolabs.com>
Date:   Sun Apr 5 10:10:15 2026 +0200

    Fix enum case registration

    An EnumCaseName::__toString() was added to the PHP 8.5 branch returning the FQCN of the enum case, which worked fine, but in the meanwhile, support for enum registration was added to master which implicitly relied on the  EnumCaseName::__toString() method to return only the name of the case.

    That's why the "Verify the generated files are up to date" step was failing until this fix.

diff --git a/build/gen_stub.php b/build/gen_stub.php
index 9c1f797485c..ce1a2386661 100755
--- a/build/gen_stub.php
+++ b/build/gen_stub.php
@@ -3529,7 +3529,7 @@ public function getCDeclarations(): string

         $i = 1;
         foreach ($this->enumCaseInfos as $case) {
-            $cName = 'ZEND_ENUM_' . str_replace('\\', '_', $this->name->toString()) . '_' . $case->name;
+            $cName = 'ZEND_ENUM_' . str_replace('\\', '_', $this->name->toString()) . '_' . $case->name->case;
             $code .= "\t{$cName} = {$i},\n";
             $i++;
         }