[wp-trac] [WordPress Trac] #47164: map_deep in formatting.php do not handle null-byte
WordPress Trac
noreply at wordpress.org
Fri Nov 11 08:05:35 UTC 2022
#47164: map_deep in formatting.php do not handle null-byte
---------------------------------------------------+---------------------
Reporter: bitcomplex | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.2
Component: Formatting | Version: 5.2.2
Severity: critical | Resolution:
Keywords: has-patch has-unit-tests dev-feedback | Focuses:
---------------------------------------------------+---------------------
Comment (by costdev):
Alternatively:
The current patch will `continue` on `protected` / `private` properties
using `0 === ord( $property_name )` to detect `NUL`. However, it appears
that this does not detect `NUL` in the `protected` property in PHP 5.6.
I'm not sure if the addition of `NUL` is PHP 7.0+ behaviour, if the
detection method is inaccurate, or something else.
Would appreciate thoughts on this also.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47164#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list