[php-src] PR #21412: Fix GH-21411: opcache_compile_file() fails to early-bind classes without parents
| From: | rlerdorf | Date: | Wed, 11 Mar 2026 05:33:48 +0000 |
| Subject: | [php-src] PR #21412: Fix GH-21411: opcache_compile_file() fails to early-bind classes without parents | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-35168@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/21412
Author: rlerdorf
- Add an empty-string
lc_parent_name check in
zend_accel_do_delayed_early_binding() so parentless unlinked classes reach
zend_try_early_bind()
- NULL guards for parent_ce in zend_try_early_bind() since it was never
designed to receive a NULL parent for an unlinked class
- Add a test for this (hard to test for, but I think this works)
Fixes GH-21411