[php-src] PR #14429: Object dumping improvements
| From: | Girgias | Date: | Sun, 02 Jun 2024 03:09:17 +0000 |
| Subject: | [php-src] PR #14429: Object dumping improvements | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-26476@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/14429
Author: Girgias
## Core: convert bail-out for incorrect __debugInfo return type to TypeError
This commit, with the follow-up to fix the semantics of the SensitiveParameter attribute object
handler; should fix issue #7922.
I may need to fix some other extensions with the new object handler semantics.
## Zend: convert debug handler to take a bool pointer
This commit is "just" to use more appropriate types and can be dropped or pushed to a
later release.
## ext/standard/var.c: show unset properties
This commit fixes some of the inconsistencies with the number of properties indicated in var_dump()
and how many are actually displayed. This is because currently uninitialized typed properties do not
"count" but are displayed.
See the change in
Zend/tests/ctor_promotion_untyped_default.phpt for an explanation of
what I mean.
However, for it to be perfectly consistent we need to show properties that have been
unset(), and this what I've done.