[php-src] PR #25343: Fix GH-25340: ReflectionEnumBackedCase::getBackingValue() on non-backed case

From: Date: Mon, 09 Nov 2026 15:32:09 +0000
Subject: [php-src] PR #25343: Fix GH-25340: ReflectionEnumBackedCase::getBackingValue() on non-backed case
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-40467@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/25343 Author: lazerg The constructor check can be skipped by calling ReflectionClassConstant::__construct() from a subclass, so getBackingValue() could run on a case of a non-backed enum (assertion failure) or on a plain constant of a backed enum (segfault, since the value isn't an enum object). getBackingValue() now checks both itself and throws the same ReflectionException the constructor does. Fixes GH-25340

« previous php.git-pulls (#40467) next »