mirror of
https://github.com/php/php-src.git
synced 2026-04-21 23:18:13 +02:00
bf1cfc0753
Cf. <https://github.com/php/php-src/pull/10220#issuecomment-1383739816>. This reverts commit68ada76f9a. his reverts commit45384c6e20. This reverts commitef7fbfd710. This reverts commit9b9ea0d7c6. This reverts commitf15747c26b. This reverts commite883ba93c4. This reverts commit7e87551c37. This reverts commit921274d2b8. This reverts commitfc1f528e5e. This reverts commit0961715cda. This reverts commita93f264526. This reverts commit72dd94e1c6. This reverts commit29b2dc8964. This reverts commit05c7653bba. This reverts commit5190e5c260. This reverts commit6b55bf228c. This reverts commit184b4a12d3. This reverts commit4c31b7888a. This reverts commitd44e9680f0. This reverts commit4069a5c43f.
45 lines
2.2 KiB
C
45 lines
2.2 KiB
C
/*
|
|
+----------------------------------------------------------------------+
|
|
| Zend Engine |
|
|
+----------------------------------------------------------------------+
|
|
| Copyright (c) Zend Technologies Ltd. (http://www.zend.com) |
|
|
+----------------------------------------------------------------------+
|
|
| This source file is subject to version 2.00 of the Zend license, |
|
|
| that is bundled with this package in the file LICENSE, and is |
|
|
| available through the world-wide-web at the following url: |
|
|
| http://www.zend.com/license/2_00.txt. |
|
|
| If you did not receive a copy of the Zend license and are unable to |
|
|
| obtain it through the world-wide-web, please send a note to |
|
|
| license@zend.com so we can mail you a copy immediately. |
|
|
+----------------------------------------------------------------------+
|
|
| Authors: Christian Seiler <chris_se@gmx.net> |
|
|
| Dmitry Stogov <dmitry@php.net> |
|
|
+----------------------------------------------------------------------+
|
|
*/
|
|
|
|
#ifndef ZEND_CLOSURES_H
|
|
#define ZEND_CLOSURES_H
|
|
|
|
BEGIN_EXTERN_C()
|
|
|
|
/* This macro depends on zend_closure structure layout */
|
|
#define ZEND_CLOSURE_OBJECT(op_array) \
|
|
((zend_object*)((char*)(op_array) - sizeof(zend_object)))
|
|
|
|
void zend_register_closure_ce(void);
|
|
void zend_closure_bind_var(zval *closure_zv, zend_string *var_name, zval *var);
|
|
void zend_closure_bind_var_ex(zval *closure_zv, uint32_t offset, zval *val);
|
|
void zend_closure_from_frame(zval *closure_zv, zend_execute_data *frame);
|
|
|
|
extern ZEND_API zend_class_entry *zend_ce_closure;
|
|
|
|
ZEND_API void zend_create_closure(zval *res, zend_function *op_array, zend_class_entry *scope, zend_class_entry *called_scope, zval *this_ptr);
|
|
ZEND_API void zend_create_fake_closure(zval *res, zend_function *op_array, zend_class_entry *scope, zend_class_entry *called_scope, zval *this_ptr);
|
|
ZEND_API zend_function *zend_get_closure_invoke_method(zend_object *obj);
|
|
ZEND_API const zend_function *zend_get_closure_method_def(zend_object *obj);
|
|
ZEND_API zval* zend_get_closure_this_ptr(zval *obj);
|
|
|
|
END_EXTERN_C()
|
|
|
|
#endif
|