Skip to content

Conversation

@Girgias
Copy link
Member

@Girgias Girgias commented Oct 22, 2025

A sourcegraph search reveals that nobody uses this API.

@Girgias Girgias marked this pull request as ready for review October 23, 2025 14:38
@Girgias Girgias requested a review from dstogov as a code owner October 23, 2025 14:38
@Girgias Girgias requested review from TimWolla and nielsdos October 23, 2025 14:39
Copy link
Member

@TimWolla TimWolla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's marked internal, so this is reasonable to me. Please fix the style bits, but other than that it LGTM.


ZEND_ASSERT(param_count <= ZEND_CALL_NUM_ARGS(EG(current_execute_data)));

while (param_count-->0) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
while (param_count-->0) {
while (param_count-- > 0) {

Since you made some changes along the way, please also fix the style. Or perhaps rewrite this into a proper for() loop.


static void zend_copy_parameters_array(uint32_t param_count, HashTable *argument_array) /* {{{ */
{
zval *param_ptr = ZEND_CALL_ARG(EG(current_execute_data), 1);;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
zval *param_ptr = ZEND_CALL_ARG(EG(current_execute_data), 1);;
zval *param_ptr = ZEND_CALL_ARG(EG(current_execute_data), 1);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants