/php-src/ext/standard/tests/general_functions/ |
H A D | ghsa-9fcc-425m-g385_001.phpt | 2 GHSA-9fcc-425m-g385 - bypass CVE-2024-1874 - batch file variation 20 $batch_file_path = __DIR__ . '/ghsa-9fcc-425m-g385_001.bat'; 42 '"%sghsa-9fcc-425m-g385_001.bat."' is not recognized as an internal or external command, 44 %sghsa-9fcc-425m-g385_001.bat 46 %sghsa-9fcc-425m-g385_001.bat. 48 %sghsa-9fcc-425m-g385_001.bat. ... 50 %sghsa-9fcc-425m-g385_001.bat. ... . 52 '"%sghsa-9fcc-425m-g385_001.bat. ... . ."' is not recognized as an internal or external command, 58 @unlink(__DIR__ . '/ghsa-9fcc-425m-g385_001.bat');
|
H A D | ghsa-9fcc-425m-g385_002.phpt | 2 GHSA-9fcc-425m-g385 - bypass CVE-2024-1874 - cmd.exe variation 20 $batch_file_path = __DIR__ . '/ghsa-9fcc-425m-g385_002.bat'; 46 %sghsa-9fcc-425m-g385_002.bat 48 %sghsa-9fcc-425m-g385_002.bat 50 %sghsa-9fcc-425m-g385_002.bat 52 %sghsa-9fcc-425m-g385_002.bat 56 %sghsa-9fcc-425m-g385_002.bat 58 %sghsa-9fcc-425m-g385_002.bat 68 @unlink(__DIR__ . '/ghsa-9fcc-425m-g385_002.bat');
|
H A D | ghsa-9fcc-425m-g385_003.phpt | 2 GHSA-9fcc-425m-g385 - bypass CVE-2024-1874 - exhaustive suffix test 16 $batch_file_path = __DIR__ . '/ghsa-9fcc-425m-g385_003.bat'; 549 @unlink(__DIR__ . '/ghsa-9fcc-425m-g385_003.bat');
|
/php-src/ext/dom/ |
H A D | xpath_callbacks.c | 32 zend_fcc_dtor(fcc); in xpath_callbacks_entry_dtor() 33 efree(fcc); in xpath_callbacks_entry_dtor() 199 efree(fcc); in php_dom_xpath_callback_ns_update_method_handler() 204 zend_fcc_addref(fcc); in php_dom_xpath_callback_ns_update_method_handler() 216 zend_fcc_dtor(fcc); in php_dom_xpath_callback_ns_update_method_handler() 217 efree(fcc); in php_dom_xpath_callback_ns_update_method_handler() 222 zend_fcc_dtor(fcc); in php_dom_xpath_callback_ns_update_method_handler() 223 efree(fcc); in php_dom_xpath_callback_ns_update_method_handler() 244 efree(fcc); in php_dom_xpath_callback_ns_update_method_handler() 248 zend_fcc_addref(fcc); in php_dom_xpath_callback_ns_update_method_handler() [all …]
|
H A D | xpath.c | 461 zend_fcall_info_cache fcc; in PHP_METHOD() local 466 Z_PARAM_FUNC_NO_TRAMPOLINE_FREE(fci, fcc) in PHP_METHOD() 470 zend_release_fcall_info_cache(&fcc); in PHP_METHOD() 480 &fcc, in PHP_METHOD() 484 zend_release_fcall_info_cache(&fcc); in PHP_METHOD()
|
H A D | xpath_callbacks.h | 61 …Ptr ctxt, zend_string *ns, zend_string *name, const zend_fcall_info_cache *fcc, php_dom_xpath_call…
|
/php-src/Zend/ |
H A D | zend_API.c | 3832 fcc->called_scope = fcc->object ? fcc->object->ce : ce; in zend_is_callable_check_class() 3935 fcc->called_scope = fcc->calling_scope; in zend_is_callable_check_func() 3938 fcc->called_scope = fcc->object ? fcc->object->ce : fcc->calling_scope; in zend_is_callable_check_func() 4002 ((fcc->object && fcc->calling_scope->__call) || in zend_is_callable_check_func() 4016 if (fcc->object && fcc->calling_scope == ce_org) { in zend_is_callable_check_func() 4022 fcc->function_handler = fcc->object->handlers->get_method(&fcc->object, mname, NULL); in zend_is_callable_check_func() 4036 fcc->function_handler = fcc->calling_scope->get_static_method(fcc->calling_scope, mname); in zend_is_callable_check_func() 4095 fcc->called_scope = fcc->object->ce; in zend_is_callable_check_func() 4189 fcc->called_scope = fcc->calling_scope; in zend_is_callable_at_frame() 4240 fcc->called_scope = fcc->calling_scope; in zend_is_callable_at_frame() [all …]
|
H A D | zend_lazy_objects.c | 60 zend_fcall_info_cache fcc; member 79 zend_fcc_dtor(&info->u.initializer.fcc); in zend_lazy_object_info_dtor_func() 139 return &info->u.initializer.fcc; in zend_lazy_object_get_initializer_fcc() 361 zend_fcc_dup(&info->u.initializer.fcc, initializer_fcc); in zend_object_make_lazy() 480 zend_fcall_info_cache *initializer = &info->u.initializer.fcc; in zend_lazy_object_init_proxy() 517 zend_fcc_dtor(&info->u.initializer.fcc); in zend_lazy_object_init_proxy() 781 zend_fcall_info_cache *fcc = &info->u.initializer.fcc; in zend_lazy_object_get_gc() local 782 if (fcc->object) { in zend_lazy_object_get_gc() 783 zend_get_gc_buffer_add_obj(gc_buffer, fcc->object); in zend_lazy_object_get_gc() 785 if (fcc->closure) { in zend_lazy_object_get_gc() [all …]
|
H A D | zend_closures.c | 287 zend_fcall_info_cache fcc; in ZEND_NAMED_FUNCTION() local 291 memset(&fcc, 0, sizeof(zend_fcall_info_cache)); in ZEND_NAMED_FUNCTION() 320 fcc.object = fci.object = Z_OBJ_P(ZEND_THIS); in ZEND_NAMED_FUNCTION() 323 zend_call_function(&fci, &fcc); in ZEND_NAMED_FUNCTION() 330 zend_fcall_info_cache fcc; in zend_create_closure_from_callable() local 335 if (!zend_is_callable_ex(callable, NULL, 0, NULL, &fcc, error)) { in zend_create_closure_from_callable() 339 mptr = fcc.function_handler; in zend_create_closure_from_callable() 342 if (fcc.object && fcc.object->ce == zend_ce_closure in zend_create_closure_from_callable() 344 RETVAL_OBJ_COPY(fcc.object); in zend_create_closure_from_callable() 374 if (fcc.object) { in zend_create_closure_from_callable() [all …]
|
H A D | zend_API.h | 341 #define ZEND_FCC_INITIALIZED(fcc) ((fcc).function_handler != NULL) argument 778 if (fcc->object) { in zend_fcc_addref() 779 GC_ADDREF(fcc->object); in zend_fcc_addref() 781 if (fcc->closure) { in zend_fcc_addref() 782 GC_ADDREF(fcc->closure); in zend_fcc_addref() 795 if (fcc->object) { in zend_fcc_dtor() 796 OBJ_RELEASE(fcc->object); in zend_fcc_dtor() 800 if (fcc->closure) { in zend_fcc_dtor() 801 OBJ_RELEASE(fcc->closure); in zend_fcc_dtor() 812 if (fcc->object) { in zend_get_gc_buffer_add_fcc() [all …]
|
/php-src/ext/pdo_pgsql/ |
H A D | pdo_pgsql.c | 152 zend_fcall_info_cache fcc = empty_fcall_info_cache; in PHP_METHOD() local 153 if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS(), "F!", &fci, &fcc)) { in PHP_METHOD() 164 if (ZEND_FCC_INITIALIZED(fcc)) { in PHP_METHOD() 166 zend_fcc_dup(H->notice_callback, &fcc); in PHP_METHOD() 172 zend_release_fcall_info_cache(&fcc); in PHP_METHOD()
|
/php-src/ext/spl/ |
H A D | php_spl.c | 382 zend_fcall_info *fci, zend_fcall_info_cache *fcc) { in autoload_func_info_from_fci() argument 384 alfi->ce = fcc->calling_scope; in autoload_func_info_from_fci() 385 alfi->func_ptr = fcc->function_handler; in autoload_func_info_from_fci() 386 alfi->obj = fcc->object; in autoload_func_info_from_fci() 505 zend_fcall_info_cache fcc; in PHP_FUNCTION() local 510 Z_PARAM_FUNC_OR_NULL(fci, fcc) in PHP_FUNCTION() 529 if (!fcc.function_handler) { in PHP_FUNCTION() 542 alfi = autoload_func_info_from_fci(&fci, &fcc); in PHP_FUNCTION() 577 zend_fcall_info_cache fcc; in PHP_FUNCTION() local 580 Z_PARAM_FUNC(fci, fcc) in PHP_FUNCTION() [all …]
|
/php-src/ext/pdo_sqlite/ |
H A D | sqlite_driver.c | 321 static int do_callback(zend_fcall_info_cache *fcc, int argc, sqlite3_value **argv, sqlite3_context … in do_callback() argument 377 zend_call_known_fcc(fcc, &retval, fake_argc, zargs, /* named_params */ NULL); in do_callback() 498 zend_fcall_info_cache fcc = empty_fcall_info_cache; in pdo_sqlite_create_function_internal() local 508 Z_PARAM_FUNC_NO_TRAMPOLINE_FREE(fci, fcc) in pdo_sqlite_create_function_internal() 525 zend_fcc_dup(&func->func, &fcc); in pdo_sqlite_create_function_internal() 538 zend_release_fcall_info_cache(&fcc); in pdo_sqlite_create_function_internal() 631 zend_fcall_info_cache fcc = empty_fcall_info_cache; in pdo_sqlite_create_collation_internal() local 639 Z_PARAM_FUNC_NO_TRAMPOLINE_FREE(fci, fcc) in pdo_sqlite_create_collation_internal() 653 zend_fcc_dup(&collation->callback, &fcc); in pdo_sqlite_create_collation_internal() 661 zend_release_fcall_info_cache(&fcc); in pdo_sqlite_create_collation_internal()
|
/php-src/win32/ |
H A D | signal.c | 91 zend_fcall_info_cache fcc; in PHP_FUNCTION() local 96 if (zend_parse_parameters(ZEND_NUM_ARGS(), "f!|b", &fci, &fcc, &add) == FAILURE) { in PHP_FUNCTION()
|
/php-src/ext/curl/ |
H A D | curl_private.h | 48 zend_fcall_info_cache fcc; member 56 zend_fcall_info_cache fcc; member
|
H A D | interface.c | 475 if (ZEND_FCC_INITIALIZED(curl->handlers.read->fcc)) { in curl_get_gc() 482 if (ZEND_FCC_INITIALIZED(curl->handlers.write->fcc)) { in curl_get_gc() 1285 if (ZEND_FCC_INITIALIZED(source->handlers.read->fcc)) { in _php_setup_easy_copy_handlers() 1286 zend_fcc_dup(&ch->handlers.read->fcc, &source->handlers.read->fcc); in _php_setup_easy_copy_handlers() 1289 zend_fcc_dup(&ch->handlers.write->fcc, &source->handlers.write->fcc); in _php_setup_easy_copy_handlers() 1292 zend_fcc_dup(&ch->handlers.write_header->fcc, &source->handlers.write_header->fcc); in _php_setup_easy_copy_handlers() 2823 if (ZEND_FCC_INITIALIZED(ch->handlers.write->fcc)) { in curl_free_obj() 2824 zend_fcc_dtor(&ch->handlers.write->fcc); in curl_free_obj() 2827 zend_fcc_dtor(&ch->handlers.write_header->fcc); in curl_free_obj() 2829 if (ZEND_FCC_INITIALIZED(ch->handlers.read->fcc)) { in curl_free_obj() [all …]
|
/php-src/ext/sqlite3/ |
H A D | sqlite3.c | 951 zend_release_fcall_info_cache(&fcc); in PHP_METHOD() 959 zend_release_fcall_info_cache(&fcc); in PHP_METHOD() 967 zend_fcc_dup(&func->func, &fcc); in PHP_METHOD() 976 zend_release_fcall_info_cache(&fcc); in PHP_METHOD() 1054 zend_release_fcall_info_cache(&fcc); in PHP_METHOD() 1062 zend_fcc_dup(&collation->cmp_func, &fcc); in PHP_METHOD() 1070 zend_release_fcall_info_cache(&fcc); in PHP_METHOD() 1313 Z_PARAM_FUNC_NO_TRAMPOLINE_FREE_OR_NULL(fci, fcc) in PHP_METHOD() 1327 zend_fcc_dup(&db_obj->authorizer_fcc, &fcc); in PHP_METHOD() 2234 if (ZEND_FCC_INITIALIZED(*fcc)) { in php_sqlite3_gc_buffer_add_fcc() [all …]
|
/php-src/ext/pcre/pcre2lib/ |
H A D | pcre2_auto_possess.c | 325 get_chr_property_list(PCRE2_SPTR code, BOOL utf, BOOL ucp, const uint8_t *fcc, in get_chr_property_list() argument 419 list[3] = fcc[chr]; in get_chr_property_list() 423 list[3] = (chr < 256) ? fcc[chr] : chr; in get_chr_property_list() 425 list[3] = fcc[chr]; in get_chr_property_list() 719 code = get_chr_property_list(code, utf, ucp, cb->fcc, list); in compare_opcodes() 1158 get_chr_property_list(code, utf, ucp, cb->fcc, list) : NULL; in PRIV() 1218 end = get_chr_property_list(code, utf, ucp, cb->fcc, list); in PRIV()
|
/php-src/ext/readline/ |
H A D | readline.c | 492 zend_fcall_info_cache fcc; in PHP_FUNCTION() local 494 if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS(), "f", &fci, &fcc)) { in PHP_FUNCTION() 533 zend_fcall_info_cache fcc; in PHP_FUNCTION() local 536 if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS(), "sf", &prompt, &prompt_len, &fci, &fcc)) { in PHP_FUNCTION()
|
/php-src/ext/pcre/ |
H A D | php_pcre.c | 1943 fci, fcc, subject, offsets, subpat_names, num_subpats, count, in php_pcre_replace_func_impl() 2049 zend_fcall_info *fci, zend_fcall_info_cache *fcc, in php_pcre_replace_func() argument 2168 zend_fcall_info *fci, zend_fcall_info_cache *fcc, in php_replace_in_subject_func() argument 2175 regex_str, subject, fci, fcc, limit, replace_count, flags); in php_replace_in_subject_func() 2194 regex_entry_str, subject, fci, fcc, limit, replace_count, flags); in php_replace_in_subject_func() 2211 zend_fcall_info *fci, zend_fcall_info_cache *fcc, in preg_replace_func_impl() argument 2404 zend_fcall_info_cache fcc; in PHP_FUNCTION() local 2409 Z_PARAM_FUNC(fci, fcc) in PHP_FUNCTION() 2418 &fci, &fcc, in PHP_FUNCTION() 2435 zend_fcall_info_cache fcc; in PHP_FUNCTION() local [all …]
|
/php-src/ext/intl/converter/ |
H A D | converter.c | 497 zend_fcall_info_cache *fcc, in php_converter_resolve_callback() argument 505 fcc->function_handler = fn; in php_converter_resolve_callback() 506 fcc->object = obj; in php_converter_resolve_callback() 507 fcc->called_scope = obj->ce; in php_converter_resolve_callback() 508 fcc->calling_scope = NULL; in php_converter_resolve_callback() 509 fcc->closure = NULL; in php_converter_resolve_callback()
|
/php-src/ext/xsl/ |
H A D | xsltprocessor.c | 746 zend_fcall_info_cache fcc; in PHP_METHOD() local 751 Z_PARAM_FUNC_NO_TRAMPOLINE_FREE(fci, fcc) in PHP_METHOD() 755 zend_release_fcall_info_cache(&fcc); in PHP_METHOD() 765 &fcc, in PHP_METHOD() 769 zend_release_fcall_info_cache(&fcc); in PHP_METHOD()
|
/php-src/ext/pdo/ |
H A D | pdo_stmt.c | 617 zend_fcall_info_cache *fcc = &stmt->fetch.cls.fcc; in do_fetch_class_prepare() local 634 fcc->function_handler = ce->constructor; in do_fetch_class_prepare() 635 fcc->called_scope = ce; in do_fetch_class_prepare() 650 if (zend_fcall_info_init(callable, 0, fci, fcc, NULL, &is_callable_error) == FAILURE) { in make_callable_ex() 674 zend_fcall_info_cache *fcc = &stmt->fetch.cls.fcc; in do_fetch_func_prepare() local 676 if (!make_callable_ex(stmt, &stmt->fetch.func.function, fci, fcc, stmt->column_count)) { in do_fetch_func_prepare() 844 stmt->fetch.cls.fcc.object = Z_OBJ_P(return_value); in do_fetch() 845 if (zend_call_function(&stmt->fetch.cls.fci, &stmt->fetch.cls.fcc) == FAILURE) { in do_fetch() 1024 stmt->fetch.cls.fcc.object = Z_OBJ_P(return_value); in do_fetch() 1025 if (zend_call_function(&stmt->fetch.cls.fci, &stmt->fetch.cls.fcc) == FAILURE) { in do_fetch() [all …]
|
H A D | php_pdo_driver.h | 617 zend_fcall_info_cache fcc; member 624 zend_fcall_info_cache fcc; member
|
/php-src/ext/com_dotnet/ |
H A D | com_wrapper.c | 259 zend_fcall_info_cache fcc; in disp_invokeex() local 263 …(wFlags & DISPATCH_METHOD && zend_is_callable_ex(name, Z_OBJ(disp->object), 0, NULL, &fcc, NULL)) { in disp_invokeex() 266 zend_call_known_fcc(&fcc, retval, pdp->cArgs, params, NULL); in disp_invokeex()
|