Back to index

php5  5.3.10
zend_closures.h
Go to the documentation of this file.
00001 /*
00002    +----------------------------------------------------------------------+
00003    | Zend Engine                                                          |
00004    +----------------------------------------------------------------------+
00005    | Copyright (c) 1998-2012 Zend Technologies Ltd. (http://www.zend.com) |
00006    +----------------------------------------------------------------------+
00007    | This source file is subject to version 2.00 of the Zend license,     |
00008    | that is bundled with this package in the file LICENSE, and is        | 
00009    | available through the world-wide-web at the following url:           |
00010    | http://www.zend.com/license/2_00.txt.                                |
00011    | If you did not receive a copy of the Zend license and are unable to  |
00012    | obtain it through the world-wide-web, please send a note to          |
00013    | license@zend.com so we can mail you a copy immediately.              |
00014    +----------------------------------------------------------------------+
00015    | Authors: Christian Seiler <chris_se@gmx.net>                         |
00016    |          Dmitry Stogov <dmitry@zend.com>                             |
00017    +----------------------------------------------------------------------+
00018 */
00019 
00020 /* $Id: zend_closures.h 321634 2012-01-01 13:15:04Z felipe $ */
00021 
00022 #ifndef ZEND_CLOSURES_H
00023 #define ZEND_CLOSURES_H
00024 
00025 BEGIN_EXTERN_C()
00026 
00027 #define ZEND_INVOKE_FUNC_NAME "__invoke"
00028 
00029 void zend_register_closure_ce(TSRMLS_D);
00030 
00031 extern ZEND_API zend_class_entry *zend_ce_closure;
00032 
00033 ZEND_API void zend_create_closure(zval *res, zend_function *op_array TSRMLS_DC);
00034 ZEND_API zend_function *zend_get_closure_invoke_method(zval *obj TSRMLS_DC);
00035 ZEND_API const zend_function *zend_get_closure_method_def(zval *obj TSRMLS_DC);
00036 
00037 END_EXTERN_C()
00038 
00039 #endif
00040 
00041 /*
00042  * Local variables:
00043  * tab-width: 4
00044  * c-basic-offset: 4
00045  * indent-tabs-mode: t
00046  * End:
00047  */