/PHP-7.2/ext/session/ |
H A D | session.c | 2844 zend_class_entry ce; in PHP_MINIT_FUNCTION() local 2861 INIT_CLASS_ENTRY(ce, PS_IFACE_NAME, php_session_iface_functions); in PHP_MINIT_FUNCTION() 2862 php_session_iface_entry = zend_register_internal_class(&ce); in PHP_MINIT_FUNCTION() 2865 INIT_CLASS_ENTRY(ce, PS_SID_IFACE_NAME, php_session_id_iface_functions); in PHP_MINIT_FUNCTION() 2866 php_session_id_iface_entry = zend_register_internal_class(&ce); in PHP_MINIT_FUNCTION() 2869 INIT_CLASS_ENTRY(ce, PS_UPDATE_TIMESTAMP_IFACE_NAME, php_session_update_timestamp_iface_functions); in PHP_MINIT_FUNCTION() 2870 php_session_update_timestamp_iface_entry = zend_register_internal_class(&ce); in PHP_MINIT_FUNCTION() 2874 INIT_CLASS_ENTRY(ce, PS_CLASS_NAME, php_session_class_functions); in PHP_MINIT_FUNCTION() 2875 php_session_class_entry = zend_register_internal_class(&ce); in PHP_MINIT_FUNCTION()
|
/PHP-7.2/ext/phar/ |
H A D | phar_object.c | 1440 zend_class_entry *ce = p_obj->c; in phar_build() local 2050 zend_class_entry *ce; in phar_rename_archive() local 2277 ce = phar_ce_data; in phar_rename_archive() 2279 ce = phar_ce_archive; in phar_rename_archive() 2283 if (SUCCESS != object_init_ex(&ret, ce)) { in phar_rename_archive() 2291 zend_call_method_with_1_params(&ret, ce, &ce->constructor, "__construct", NULL, &arg1); in phar_rename_archive() 5504 zend_class_entry ce; in phar_object_init() local 5506 INIT_CLASS_ENTRY(ce, "PharException", phar_exception_methods); in phar_object_init() 5509 INIT_CLASS_ENTRY(ce, "Phar", php_archive_methods); in phar_object_init() 5514 INIT_CLASS_ENTRY(ce, "PharData", php_data_methods); in phar_object_init() [all …]
|
/PHP-7.2/ext/dom/ |
H A D | document.c | 2238 zend_class_entry *basece = dom_node_class_entry, *ce = NULL; in PHP_METHOD() local 2241 …ters(ZEND_NUM_ARGS(), getThis(), "OCC!", &id, dom_document_class_entry, &basece, &ce) == FAILURE) { in PHP_METHOD() 2245 if (ce == NULL || instanceof_function(ce, basece)) { in PHP_METHOD() 2247 dom_set_doc_classmap(intern->document, basece, ce); in PHP_METHOD() 2251 …zend_throw_error(NULL, "Class %s is not derived from %s.", ZSTR_VAL(ce->name), ZSTR_VAL(basece->na… in PHP_METHOD()
|
/PHP-7.2/ext/spl/ |
H A D | spl_directory.c | 458 ce = ce ? ce : source->info_class; in spl_filesystem_object_create_info() 460 zend_update_class_constants(ce); in spl_filesystem_object_create_info() 467 zend_call_method_with_1_params(return_value, ce, &ce->constructor, "__construct", NULL, &arg1); in spl_filesystem_object_create_info() 500 ce = ce ? ce : source->info_class; in spl_filesystem_object_create_type() 512 zend_call_method_with_1_params(return_value, ce, &ce->constructor, "__construct", NULL, &arg1); in spl_filesystem_object_create_type() 522 ce = ce ? ce : source->file_class; in spl_filesystem_object_create_type() 537 …zend_call_method_with_2_params(return_value, ce, &ce->constructor, "__construct", NULL, &arg1, &ar… in spl_filesystem_object_create_type() 1354 intern->file_class = ce; in SPL_METHOD() 1366 zend_class_entry *ce = spl_ce_SplFileInfo; in SPL_METHOD() local 1372 intern->info_class = ce; in SPL_METHOD() [all …]
|
/PHP-7.2/sapi/phpdbg/ |
H A D | phpdbg_utils.c | 180 zend_class_entry *ce; in phpdbg_get_function() local 185 ce = zend_lookup_class(lcname); in phpdbg_get_function() 189 if (ce) { in phpdbg_get_function() 190 func = zend_hash_find_ptr(&ce->function_table, lfname); in phpdbg_get_function() 400 *ce = zend_hash_str_find_ptr(EG(class_table), lc_name, lc_length); in phpdbg_safe_class_lookup() 408 *ce = zend_lookup_class(str_name); in phpdbg_safe_class_lookup() 412 return *ce ? SUCCESS : FAILURE; in phpdbg_safe_class_lookup() 763 zend_class_entry *ce; in phpdbg_check_caught_ex() local 766 if (!(ce = CACHED_PTR(Z_CACHE_SLOT_P(EX_CONSTANT(cur->op1))))) { in phpdbg_check_caught_ex() 768 CACHE_PTR(Z_CACHE_SLOT_P(EX_CONSTANT(cur->op1)), ce); in phpdbg_check_caught_ex() [all …]
|
H A D | phpdbg_utils.h | 84 int phpdbg_safe_class_lookup(const char *name, int name_length, zend_class_entry **ce);
|
H A D | phpdbg_info.c | 379 …const char *type = (ce->ce_flags & ZEND_ACC_INTERFACE) ? "Interface" : (ce->ce_flags & ZEND_ACC_AB… in phpdbg_print_class_name() 381 …%s %.*s (%d)", visibility, type, (int) ZSTR_LEN(ce->name), ZSTR_VAL(ce->name), zend_hash_num_eleme… in phpdbg_print_class_name() 386 zend_class_entry *ce; in PHPDBG_INFO() local 392 ZEND_HASH_FOREACH_PTR(EG(class_table), ce) { in PHPDBG_INFO() 393 if (ce->type == ZEND_USER_CLASS) { in PHPDBG_INFO() 394 zend_hash_next_index_insert_ptr(&classes, ce); in PHPDBG_INFO() 404 ZEND_HASH_FOREACH_PTR(&classes, ce) { in PHPDBG_INFO() 405 phpdbg_print_class_name(ce); in PHPDBG_INFO() 407 if (ce->parent) { in PHPDBG_INFO() 410 pce = ce->parent; in PHPDBG_INFO() [all …]
|
H A D | phpdbg_list.c | 91 zend_class_entry *ce; in PHPDBG_LIST() local 93 if (phpdbg_safe_class_lookup(param->method.class, strlen(param->method.class), &ce) == SUCCESS) { in PHPDBG_LIST() 97 if ((function = zend_hash_str_find_ptr(&ce->function_table, lcname, strlen(lcname)))) { in PHPDBG_LIST() 113 zend_class_entry *ce; in PHPDBG_LIST() local 115 if (phpdbg_safe_class_lookup(param->str, param->len, &ce) == SUCCESS) { in PHPDBG_LIST() 116 if (ce->type == ZEND_USER_CLASS) { in PHPDBG_LIST() 117 if (ce->info.user.filename) { in PHPDBG_LIST() 118 …phpdbg_list_file(ce->info.user.filename, ce->info.user.line_end - ce->info.user.line_start + 1, ce… in PHPDBG_LIST() 120 …rce\" class=\"%s\"", "The source of the requested class (%s) cannot be found", ZSTR_VAL(ce->name)); in PHPDBG_LIST() 123 …internalclass\" class=\"%s\"", "The class requested (%s) is not user defined", ZSTR_VAL(ce->name)); in PHPDBG_LIST()
|
H A D | phpdbg_print.c | 151 zend_class_entry *ce; in PHPDBG_PRINT() local 162 ZSTR_VAL(ce->name), in PHPDBG_PRINT() 185 zend_class_entry *ce; in PHPDBG_PRINT() local 304 zend_class_entry *ce; in phpdbg_print_opcodes_method() local 310 …if (ce->name->len == strlen(class) && !zend_binary_strcasecmp(class, strlen(class), ce->name->val,… in phpdbg_print_opcodes_method() 335 ZSTR_VAL(ce->name)); in phpdbg_print_opcodes_ce() 362 zend_class_entry *ce; in phpdbg_print_opcodes_class() local 368 …if (ce->name->len == strlen(class) && !zend_binary_strcasecmp(class, strlen(class), ce->name->val,… in phpdbg_print_opcodes_class() 377 phpdbg_print_opcodes_ce(ce); in phpdbg_print_opcodes_class() 388 zend_class_entry *ce; in phpdbg_print_opcodes() local [all …]
|
H A D | phpdbg_prompt.c | 778 zend_call_method_with_0_params(&zv, ex->ce, NULL, "__tostring", &tmp); in phpdbg_handle_exception() 791 …ND_LONG_FMT "\"", "Uncaught %s in %s on line " ZEND_LONG_FMT, ZSTR_VAL(ex->ce->name), ZSTR_VAL(fil… in phpdbg_handle_exception() 1104 if (i < EG(objects_store).top && *obj && IS_OBJ_VALID(*obj) && (*obj)->ce == zend_ce_generator) { in PHPDBG_COMMAND() 1121 if (obj && IS_OBJ_VALID(obj) && obj->ce == zend_ce_generator) { in PHPDBG_COMMAND() 1790 ZSTR_VAL(exception->ce->name), ZSTR_VAL(file), line, in phpdbg_execute_ex()
|
H A D | phpdbg.c | 552 zend_class_entry *ce; in PHP_FUNCTION() local 605 ZEND_HASH_FOREACH_STR_KEY_PTR(EG(class_table), name, ce) { in PHP_FUNCTION() 606 if (ce->type == ZEND_USER_CLASS) { in PHP_FUNCTION() 607 if (zend_hash_exists(files, ce->info.user.filename)) { in PHP_FUNCTION() 608 ZEND_HASH_FOREACH_PTR(&ce->function_table, func) { in PHP_FUNCTION()
|
H A D | phpdbg_bp.c | 609 zend_class_entry *ce; in phpdbg_resolve_opline_break() local 610 …if (!(ce = zend_hash_str_find_ptr(EG(class_table), zend_str_tolower_dup(new_break->class_name, new… in phpdbg_resolve_opline_break() 613 func_table = &ce->function_table; in phpdbg_resolve_opline_break()
|
/PHP-7.2/main/streams/ |
H A D | userspace.c | 44 zend_class_entry *ce; member 286 …if (uwrap->ce->ce_flags & (ZEND_ACC_INTERFACE|ZEND_ACC_TRAIT|ZEND_ACC_IMPLICIT_ABSTRACT_CLASS|ZEND… in user_stream_create_object() 292 if (object_init_ex(object, uwrap->ce) == FAILURE) { in user_stream_create_object() 304 if (uwrap->ce->constructor) { in user_stream_create_object() 318 fcc.function_handler = uwrap->ce->constructor; in user_stream_create_object() 324 …ULL, E_WARNING, "Could not execute %s::%s()", ZSTR_VAL(uwrap->ce->name), ZSTR_VAL(uwrap->ce->const… in user_stream_create_object() 519 if ((uwrap->ce = zend_lookup_class(classname)) != NULL) { in PHP_FUNCTION()
|
/PHP-7.2/ext/zip/ |
H A D | php_zip.c | 3157 zend_class_entry ce; in PHP_MINIT_FUNCTION() local 3170 INIT_CLASS_ENTRY(ce, "ZipArchive", zip_class_functions); in PHP_MINIT_FUNCTION() 3171 ce.create_object = php_zip_object_new; in PHP_MINIT_FUNCTION() 3172 zip_class_entry = zend_register_internal_class(&ce); in PHP_MINIT_FUNCTION()
|
/PHP-7.2/ext/xsl/ |
H A D | xsltprocessor.c | 643 zend_class_entry *curce, *ce; in PHP_FUNCTION() local 652 ce = zend_lookup_class(ret_class); in PHP_FUNCTION() 653 if (ce == NULL || !instanceof_function(ce, curce)) { in PHP_FUNCTION() 660 object_init_ex(return_value, ce); in PHP_FUNCTION()
|
H A D | php_xsl.h | 88 #define REGISTER_XSL_CLASS(ce, name, parent_ce, funcs, entry) \ argument 89 INIT_CLASS_ENTRY(ce, name, funcs); \ 90 ce.create_object = xsl_objects_new; \ 91 entry = zend_register_internal_class_ex(&ce, parent_ce);
|
H A D | php_xsl.c | 131 zend_class_entry ce; in PHP_MINIT_FUNCTION() local 138 …REGISTER_XSL_CLASS(ce, "XSLTProcessor", NULL, php_xsl_xsltprocessor_class_functions, xsl_xsltproce… in PHP_MINIT_FUNCTION() 206 zend_class_entry *ce; in php_xsl_create_object() local 226 ce = xsl_xsltprocessor_class_entry; in php_xsl_create_object() 229 object_init_ex(wrapper, ce); in php_xsl_create_object()
|
/PHP-7.2/ext/zend_test/ |
H A D | test.c | 141 fptr->scope = (*object)->ce; in zend_test_class_method_get() 151 static zend_function *zend_test_class_static_method_get(zend_class_entry *ce, zend_string *name) /*… in zend_test_class_static_method_get() argument 157 fptr->scope = ce; in zend_test_class_static_method_get() 165 return zend_std_get_static_method(ce, name, NULL); in zend_test_class_static_method_get()
|
/PHP-7.2/ext/xmlwriter/ |
H A D | php_xmlwriter.c | 1842 zend_class_entry ce; in PHP_MINIT_FUNCTION() local 1849 INIT_CLASS_ENTRY(ce, "XMLWriter", xmlwriter_class_functions); in PHP_MINIT_FUNCTION() 1850 ce.create_object = xmlwriter_object_new; in PHP_MINIT_FUNCTION() 1851 xmlwriter_class_entry_ce = zend_register_internal_class(&ce); in PHP_MINIT_FUNCTION()
|
/PHP-7.2/ext/xmlreader/ |
H A D | php_xmlreader.c | 1307 zend_class_entry ce; in PHP_MINIT_FUNCTION() local 1318 INIT_CLASS_ENTRY(ce, "XMLReader", xmlreader_functions); in PHP_MINIT_FUNCTION() 1319 ce.create_object = xmlreader_objects_new; in PHP_MINIT_FUNCTION() 1320 xmlreader_class_entry = zend_register_internal_class(&ce); in PHP_MINIT_FUNCTION()
|
/PHP-7.2/ext/wddx/ |
H A D | wddx.c | 463 zend_class_entry *ce; in php_wddx_serialize_object() local 467 ce = Z_OBJCE_P(obj); in php_wddx_serialize_object() 468 if (!ce || ce->serialize || ce->unserialize) { in php_wddx_serialize_object()
|
/PHP-7.2/ext/tidy/ |
H A D | tidy.c | 95 zend_class_entry ce; \ 96 INIT_CLASS_ENTRY(ce, # classname, tidy_funcs_ ## name); \ 97 ce.create_object = tidy_object_new_ ## name; \ 98 tidy_ce_ ## name = zend_register_internal_class_ex(&ce, parent); \
|
/PHP-7.2/ext/standard/ |
H A D | var_unserializer.re | 451 ZSTR_VAL(existing_propinfo->ce->name), ZSTR_LEN(existing_propinfo->ce->name), 533 if (ce->unserialize == NULL) { 535 object_init_ex(rval, ce); 557 if (ce->serialize == NULL) { 558 object_init_ex(rval, ce); 889 zend_class_entry *ce; 935 ce = PHP_IC_ENTRY; 942 if (ce) { 960 ce = PHP_IC_ENTRY; 979 ce = PHP_IC_ENTRY; [all …]
|
H A D | user_filters.c | 33 zend_class_entry *ce; member 317 if (fdat->ce == NULL) { in user_filter_factory_create() 318 if (NULL == (fdat->ce = zend_lookup_class(fdat->classname))) { in user_filter_factory_create() 327 if (object_init_ex(&obj, fdat->ce) == FAILURE) { in user_filter_factory_create()
|
H A D | var.c | 734 zend_class_entry *ce = Z_OBJCE_P(struc); in php_var_serialize_class() local 766 …ZSTR_VAL(ce->name), ZSTR_LEN(ce->name), ZSTR_VAL(name), ZSTR_LEN(name), ce->type & ZEND_INTERNAL_C… in php_var_serialize_class() 785 "*", 1, ZSTR_VAL(name), ZSTR_LEN(name), ce->type & ZEND_INTERNAL_CLASS); in php_var_serialize_class() 870 zend_class_entry *ce = Z_OBJCE_P(struc); in php_var_serialize_intern() local 872 if (ce->serialize != NULL) { in php_var_serialize_intern() 877 …if (ce->serialize(struc, &serialized_data, &serialized_length, (zend_serialize_data *)var_hash) ==… in php_var_serialize_intern() 897 …if (ce != PHP_IC_ENTRY && zend_hash_str_exists(&ce->function_table, "__sleep", sizeof("__sleep")-1… in php_var_serialize_intern()
|