[php-src] PR #25366: Include property hooks in phpdbg opcode listings
| From: | crystarm | Date: | Tue, 10 Nov 2026 12:08:20 +0000 |
| Subject: | [php-src] PR #25366: Include property hooks in phpdbg opcode listings | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-40503@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25366
Author: crystarm
Fixes #25338.
phpdbg's opcode listing only iterated the class function table, so property hooks were omitted.
Targeted hook selectors also did not work because the selector parser discarded the hook suffix and
lowercased the case-sensitive property name.
This change:
- includes declared property hooks in class opcode listings;
- adds hooks to the method count and name list;
- supports
-p=Class::$property::get/set;
- preserves property-name case while keeping function and method lookup
case-insensitive;
- avoids duplicate trait-cloned hook op arrays;
- adds PHPT coverage.