Skip to content

Commit f45b3ac

Browse files
authored
[ci skip] Add a comment to clarify the value of zend_call_info->num_args (#10812)
This surprised me a couple of times already, and it probably surprised others too. Add a comment to clarify.
1 parent 574e531 commit f45b3ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/Optimizer/zend_call_graph.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ struct _zend_call_info {
3838
bool send_unpack; /* Parameters passed by SEND_UNPACK or SEND_ARRAY */
3939
bool named_args; /* Function has named arguments */
4040
bool is_prototype; /* An overridden child method may be called */
41-
int num_args;
41+
int num_args; /* Number of arguments, excluding named and variadic arguments */
4242
zend_send_arg_info arg_info[1];
4343
};
4444

0 commit comments

Comments
 (0)