]> granicus.if.org Git - php/commitdiff
Export zend_init_func_run_time_cache()
authorDmitry Stogov <dmitry@zend.com>
Mon, 9 Dec 2019 12:58:00 +0000 (15:58 +0300)
committerDmitry Stogov <dmitry@zend.com>
Mon, 9 Dec 2019 12:58:00 +0000 (15:58 +0300)
Zend/zend_execute.c
Zend/zend_execute.h

index 5407d89680876f1267e2d2516140082d8ff2168d..3611c5b008afd605bf0bff0c1a2ec86611830916 100644 (file)
@@ -3606,6 +3606,13 @@ ZEND_API zend_function * ZEND_FASTCALL zend_fetch_function_str(const char *name,
        return NULL;
 } /* }}} */
 
+ZEND_API void ZEND_FASTCALL zend_init_func_run_time_cache(zend_op_array *op_array) /* {{{ */
+{
+       if (!RUN_TIME_CACHE(op_array)) {
+               init_func_run_time_cache_i(op_array);
+       }
+} /* }}} */
+
 static zend_always_inline void i_init_code_execute_data(zend_execute_data *execute_data, zend_op_array *op_array, zval *return_value) /* {{{ */
 {
        ZEND_ASSERT(EX(func) == (zend_function*)op_array);
index 1ff9403f515bac7d9f348ac9188e68efeea15f4b..cb100f55e930b218bf2eb6585d3d913c4c314ee5 100644 (file)
@@ -311,6 +311,7 @@ ZEND_API zend_class_entry *zend_fetch_class_by_name(zend_string *class_name, zen
 
 ZEND_API zend_function * ZEND_FASTCALL zend_fetch_function(zend_string *name);
 ZEND_API zend_function * ZEND_FASTCALL zend_fetch_function_str(const char *name, size_t len);
+ZEND_API void ZEND_FASTCALL zend_init_func_run_time_cache(zend_op_array *op_array);
 
 ZEND_API void zend_fetch_dimension_const(zval *result, zval *container, zval *dim, int type);