[wp-trac] [WordPress Trac] #45374: apply_filters_ref_array() no longer passes arguments by reference
WordPress Trac
noreply at wordpress.org
Tue Dec 4 11:57:03 UTC 2018
#45374: apply_filters_ref_array() no longer passes arguments by reference
------------------------------------------+------------------------------
Reporter: johnbillion | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Plugins | Version: 4.7
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests | Focuses:
------------------------------------------+------------------------------
Comment (by henry.wright):
The example given doesn't attempt to pass a reference at call time. It is
trying to pass a value(s).
This is slightly different to the issue I opened where a reference is
being passed at call time as an array item. Note passing an array item by
reference is allowed in modern PHP. The problem is
`call_user_func_array()`. I added an example to #45480
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45374#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list