diff options
| author | Dmitry Stogov <dmitry@zend.com> | 2017-12-27 15:15:03 +0300 |
|---|---|---|
| committer | Dmitry Stogov <dmitry@zend.com> | 2017-12-27 15:15:03 +0300 |
| commit | d9f5ea691fef7686061e081034bd52c9cc1db444 (patch) | |
| tree | b9097a3113992e415791daba84728014491edf1e /ext | |
| parent | a6fcbb7c8709d20a471d81839e320693f7636a34 (diff) | |
| download | php-git-d9f5ea691fef7686061e081034bd52c9cc1db444.tar.gz | |
zend_fcall_info_cache.initialized is removed (zend_fcall_info_cache is initialized if zend_fcall_info_cache.function_handler is set).
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/mysqli/mysqli.c | 1 | ||||
| -rw-r--r-- | ext/pdo/pdo_dbh.c | 1 | ||||
| -rw-r--r-- | ext/pdo/pdo_stmt.c | 1 | ||||
| -rw-r--r-- | ext/pgsql/pgsql.c | 1 | ||||
| -rw-r--r-- | ext/reflection/php_reflection.c | 6 | ||||
| -rw-r--r-- | ext/spl/php_spl.c | 1 | ||||
| -rw-r--r-- | ext/spl/spl_directory.c | 1 | ||||
| -rw-r--r-- | ext/spl/spl_engine.h | 1 |
8 files changed, 0 insertions, 13 deletions
diff --git a/ext/mysqli/mysqli.c b/ext/mysqli/mysqli.c index 59f324c36e..b5737da56b 100644 --- a/ext/mysqli/mysqli.c +++ b/ext/mysqli/mysqli.c @@ -1303,7 +1303,6 @@ void php_mysqli_fetch_into_hash(INTERNAL_FUNCTION_PARAMETERS, int override_flags } } - fcc.initialized = 1; fcc.function_handler = ce->constructor; fcc.calling_scope = zend_get_executed_scope(); fcc.called_scope = Z_OBJCE_P(return_value); diff --git a/ext/pdo/pdo_dbh.c b/ext/pdo/pdo_dbh.c index f5b822bd73..9fbfc1ff57 100644 --- a/ext/pdo/pdo_dbh.c +++ b/ext/pdo/pdo_dbh.c @@ -442,7 +442,6 @@ static void pdo_stmt_construct(zend_execute_data *execute_data, pdo_stmt_t *stmt zend_fcall_info_args(&fci, ctor_args); - fcc.initialized = 1; fcc.function_handler = dbstmt_ce->constructor; fcc.calling_scope = zend_get_executed_scope(); fcc.called_scope = Z_OBJCE_P(object); diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c index f05cfce9c6..4805af76bf 100644 --- a/ext/pdo/pdo_stmt.c +++ b/ext/pdo/pdo_stmt.c @@ -731,7 +731,6 @@ static int do_fetch_class_prepare(pdo_stmt_t *stmt) /* {{{ */ zend_fcall_info_args_ex(fci, ce->constructor, &stmt->fetch.cls.ctor_args); - fcc->initialized = 1; fcc->function_handler = ce->constructor; fcc->calling_scope = zend_get_executed_scope(); fcc->called_scope = ce; diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 06142f2bba..ac153a68e2 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -2840,7 +2840,6 @@ static void php_pgsql_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, zend_long result_ } } - fcc.initialized = 1; fcc.function_handler = ce->constructor; fcc.calling_scope = zend_get_executed_scope(); fcc.called_scope = Z_OBJCE_P(return_value); diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 4444c6ef7b..4a5674710f 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -1353,7 +1353,6 @@ static void _reflection_export(INTERNAL_FUNCTION_PARAMETERS, zend_class_entry *c fci.params = params; fci.no_separation = 1; - fcc.initialized = 1; fcc.function_handler = ce_ptr->constructor; fcc.calling_scope = ce_ptr; fcc.called_scope = Z_OBJCE(reflector); @@ -1880,7 +1879,6 @@ ZEND_METHOD(reflection_function, invoke) fci.params = params; fci.no_separation = 1; - fcc.initialized = 1; fcc.function_handler = fptr; fcc.calling_scope = zend_get_executed_scope(); fcc.called_scope = NULL; @@ -1941,7 +1939,6 @@ ZEND_METHOD(reflection_function, invokeArgs) fci.params = params; fci.no_separation = 1; - fcc.initialized = 1; fcc.function_handler = fptr; fcc.calling_scope = zend_get_executed_scope(); fcc.called_scope = NULL; @@ -3208,7 +3205,6 @@ static void reflection_method_invoke(INTERNAL_FUNCTION_PARAMETERS, int variadic) fci.params = params; fci.no_separation = 1; - fcc.initialized = 1; fcc.function_handler = mptr; fcc.calling_scope = obj_ce; fcc.called_scope = intern->ce; @@ -4770,7 +4766,6 @@ ZEND_METHOD(reflection_class, newInstance) fci.params = params; fci.no_separation = 1; - fcc.initialized = 1; fcc.function_handler = constructor; fcc.calling_scope = zend_get_executed_scope(); fcc.called_scope = Z_OBJCE_P(return_value); @@ -4872,7 +4867,6 @@ ZEND_METHOD(reflection_class, newInstanceArgs) fci.params = params; fci.no_separation = 1; - fcc.initialized = 1; fcc.function_handler = constructor; fcc.calling_scope = zend_get_executed_scope(); fcc.called_scope = Z_OBJCE_P(return_value); diff --git a/ext/spl/php_spl.c b/ext/spl/php_spl.c index 7abe14b129..9fbf772ffc 100644 --- a/ext/spl/php_spl.c +++ b/ext/spl/php_spl.c @@ -416,7 +416,6 @@ PHP_FUNCTION(spl_autoload_call) fci.no_separation = 1; ZVAL_UNDEF(&fci.function_name); /* Unused */ - fcic.initialized = 1; zend_hash_internal_pointer_reset_ex(SPL_G(autoload_functions), &pos); while (zend_hash_get_current_key_ex(SPL_G(autoload_functions), &func_name, &num_idx, &pos) == HASH_KEY_IS_STRING) { diff --git a/ext/spl/spl_directory.c b/ext/spl/spl_directory.c index 4a012d74ea..be72c75746 100644 --- a/ext/spl/spl_directory.c +++ b/ext/spl/spl_directory.c @@ -2082,7 +2082,6 @@ static int spl_filesystem_file_call(spl_filesystem_object *intern, zend_function fci.no_separation = 1; ZVAL_STR(&fci.function_name, func_ptr->common.function_name); - fcic.initialized = 1; fcic.function_handler = func_ptr; fcic.calling_scope = NULL; fcic.called_scope = NULL; diff --git a/ext/spl/spl_engine.h b/ext/spl/spl_engine.h index 6b50c6bd45..24e9fa965f 100644 --- a/ext/spl/spl_engine.h +++ b/ext/spl/spl_engine.h @@ -69,7 +69,6 @@ static inline void spl_instantiate_arg_n(zend_class_entry *pce, zval *retval, in fci.params = argv; fci.no_separation = 1; - fcc.initialized = 1; fcc.function_handler = func; fcc.calling_scope = zend_get_executed_scope(); fcc.called_scope = pce; |
