1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Files
archived-php-src/sapi/phpdbg
Nikita Popov 257dbb0450 Add zend_call_known_function() API family
This adds the following APIs:

void zend_call_known_function(
    zend_function *fn, zend_object *object, zend_class_entry *called_scope,
    zval *retval_ptr, int param_count, zval *params);

void zend_call_known_instance_method(
    zend_function *fn, zend_object *object, zval *retval_ptr, int param_count, zval *params);
void zend_call_known_instance_method_with_0_params(
    zend_function *fn, zend_object *object, zval *retval_ptr);
void zend_call_known_instance_method_with_1_params(
    zend_function *fn, zend_object *object, zval *retval_ptr, zval *param);
void zend_call_known_instance_method_with_2_params(
    zend_function *fn, zend_object *object, zval *retval_ptr, zval *param1, zval *param2);

These are used to perform a call if you already have the
zend_function you want to call. zend_call_known_function()
is the base API, the rest are just really thin wrappers around
it for the common case of instance method calls.

Closes GH-5692.
2020-06-09 16:21:54 +02:00
..
2020-06-03 14:50:35 +02:00
2020-02-03 13:42:08 +01:00
2020-05-14 13:35:12 +02:00
2020-06-08 10:38:45 +02:00
2020-06-08 10:38:45 +02:00
2019-11-08 15:15:48 +01:00
2020-06-02 15:19:32 +02:00
2020-05-26 17:46:56 +02:00
2020-06-08 10:38:45 +02:00
2020-05-14 13:35:12 +02:00
2020-02-03 13:41:31 +01:00
2019-10-19 19:19:28 +02:00