[php-src] PR #25646: Fix GH-25645: Segfault comparing trait values that use parent

From: Date: Sun, 22 Nov 2026 02:38:05 +0000
Subject: [php-src] PR #25646: Fix GH-25645: Segfault comparing trait values that use parent
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-40883@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/25646 Author: lazerg Fixes GH-25645 Since traits are bound before the parent class, ce->parent still holds the parent name while trait constants and properties are bound. When a value has to be evaluated to check it against a second definition, parent reads that string as a class entry and crashes. zend_do_link_class() already has the parent class entry at that point, so I resolve ce->parent before binding the traits. zend_do_inheritance_ex() then skips releasing parent_name when the parent is already resolved.

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