Home
last modified time | relevance | path

Searched refs:ce (Results 26 – 50 of 188) sorted by relevance

12345678

/PHP-8.0/Zend/
H A Dzend_attributes.h61 zend_class_entry *ce; member
77 ZEND_API zend_internal_attribute *zend_internal_attribute_register(zend_class_entry *ce, uint32_t f…
86 static zend_always_inline zend_attribute *zend_add_class_attribute(zend_class_entry *ce, zend_strin… in END_EXTERN_C()
88 uint32_t flags = ce->type != ZEND_USER_CLASS ? ZEND_ATTRIBUTE_PERSISTENT : 0; in END_EXTERN_C()
89 return zend_add_attribute(&ce->attributes, name, argc, flags, 0, 0); in END_EXTERN_C()
104 static zend_always_inline zend_attribute *zend_add_property_attribute(zend_class_entry *ce, zend_pr… in zend_add_property_attribute() argument
106 uint32_t flags = ce->type != ZEND_USER_CLASS ? ZEND_ATTRIBUTE_PERSISTENT : 0; in zend_add_property_attribute()
110 static zend_always_inline zend_attribute *zend_add_class_constant_attribute(zend_class_entry *ce, z… in zend_add_class_constant_attribute() argument
112 uint32_t flags = ce->type != ZEND_USER_CLASS ? ZEND_ATTRIBUTE_PERSISTENT : 0; in zend_add_class_constant_attribute()
H A Dzend_interfaces.h37 zend_class_entry *ce; member
54 zend_class_entry ce;\
55 INIT_CLASS_ENTRY(ce, # class_name_str, class_ ## class_name_str ## _methods) \
56 zend_ce_ ## class_name = zend_register_internal_interface(&ce);\
70 ZEND_API void zend_user_it_new_iterator(zend_class_entry *ce, zval *object, zval *iterator);
71 ZEND_API zend_object_iterator *zend_user_it_get_new_iterator(zend_class_entry *ce, zval *object, in…
76 ZEND_API int zend_user_unserialize(zval *object, zend_class_entry *ce, const unsigned char *buf, si…
79 ZEND_API int zend_class_unserialize_deny(zval *object, zend_class_entry *ce, const unsigned char *b…
H A Dzend_objects_API.h81 static zend_always_inline size_t zend_object_properties_size(zend_class_entry *ce) in zend_object_properties_size() argument
84 (ce->default_properties_count - in zend_object_properties_size()
85 ((ce->ce_flags & ZEND_ACC_USE_GUARDS) ? 0 : 1)); in zend_object_properties_size()
90 static zend_always_inline void *zend_object_alloc(size_t obj_size, zend_class_entry *ce) { in zend_object_alloc() argument
91 void *obj = emalloc(obj_size + zend_object_properties_size(ce)); in zend_object_alloc()
100 zend_property_info **table = obj->ce->properties_info_table; in zend_get_property_info_for_slot()
102 ZEND_ASSERT(prop_num >= 0 && prop_num < obj->ce->default_properties_count); in zend_get_property_info_for_slot()
H A Dzend_exceptions.c160 DTRACE_EXCEPTION_THROWN(ZSTR_VAL(exception->ce->name)); in zend_throw_exception_internal()
183 …if (exception && (exception->ce == zend_ce_parse_error || exception->ce == zend_ce_compile_error))… in zend_throw_exception_internal()
747 static void declare_exception_properties(zend_class_entry *ce) in declare_exception_properties() argument
770 zend_class_entry ce; in zend_register_default_exception() local
778 INIT_CLASS_ENTRY(ce, "Exception", class_Exception_methods); in zend_register_default_exception()
789 INIT_CLASS_ENTRY(ce, "Error", class_Error_methods); in zend_register_default_exception()
790 zend_ce_error = zend_register_internal_class_ex(&ce, NULL); in zend_register_default_exception()
803 INIT_CLASS_ENTRY(ce, "TypeError", class_TypeError_methods); in zend_register_default_exception()
825 INIT_CLASS_ENTRY(ce, "UnhandledMatchError", NULL); in zend_register_default_exception()
929 ce_exception = ex->ce; in zend_exception_error()
[all …]
H A Dzend_builtin_functions.c622 if (!ce) { in ZEND_FUNCTION()
626 if (ce && ce->parent) { in ZEND_FUNCTION()
639 zend_class_entry *ce; in is_a_impl() local
671 if (!ce) { in is_a_impl()
917 zend_class_entry *ce; in ZEND_FUNCTION() local
988 if (!ce) { in ZEND_FUNCTION()
1001 || property_info->ce == ce)) { in ZEND_FUNCTION()
1041 if (ce) { in class_exists_impl()
1111 if (ce) { in ZEND_FUNCTION()
1283 if ((ce->refcount == 1 && !(ce->ce_flags & ZEND_ACC_IMMUTABLE)) || in copy_class_or_interface_name()
[all …]
H A Dzend_objects.h26 ZEND_API void ZEND_FASTCALL zend_object_std_init(zend_object *object, zend_class_entry *ce);
27 ZEND_API zend_object* ZEND_FASTCALL zend_objects_new(zend_class_entry *ce);
H A Dzend_attributes.c241 ZEND_API zend_internal_attribute *zend_internal_attribute_register(zend_class_entry *ce, uint32_t f… in zend_internal_attribute_register() argument
245 if (ce->type != ZEND_INTERNAL_CLASS) { in zend_internal_attribute_register()
250 internal_attr->ce = ce; in zend_internal_attribute_register()
254 zend_string *lcname = zend_string_tolower_ex(ce->name, 1); in zend_internal_attribute_register()
257 zend_attribute *attr = zend_add_class_attribute(ce, zend_ce_attribute->name, 1); in zend_internal_attribute_register()
272 zend_class_entry ce; in zend_register_attribute_ce() local
278 INIT_CLASS_ENTRY(ce, "Attribute", class_Attribute_methods); in zend_register_attribute_ce()
279 zend_ce_attribute = zend_register_internal_class(&ce); in zend_register_attribute_ce()
/PHP-8.0/ext/intl/calendar/
H A Dcalendar_class.cpp47 zend_class_entry *ce; in calendar_object_create() local
51 ce = GregorianCalendar_ce_ptr; in calendar_object_create()
53 ce = Calendar_ce_ptr; in calendar_object_create()
56 object_init_ex(object, ce); in calendar_object_create()
88 ret_val = Calendar_ce_ptr->create_object(object->ce); in Calendar_clone_obj()
249 static zend_object *Calendar_object_create(zend_class_entry *ce) in Calendar_object_create() argument
255 zend_object_std_init(&intern->zo, ce); in Calendar_object_create()
256 object_properties_init(&intern->zo, ce); in Calendar_object_create()
271 zend_class_entry ce; in calendar_register_IntlCalendar_class() local
275 ce.create_object = Calendar_object_create; in calendar_register_IntlCalendar_class()
[all …]
/PHP-8.0/ext/com_dotnet/
H A Dcom_extension.c162 zend_class_entry ce, *tmp; in PHP_MINIT_FUNCTION() local
167 INIT_CLASS_ENTRY(ce, "com_exception", NULL); in PHP_MINIT_FUNCTION()
172 INIT_CLASS_ENTRY(ce, "com_safearray_proxy", NULL); in PHP_MINIT_FUNCTION()
173 php_com_saproxy_class_entry = zend_register_internal_class(&ce); in PHP_MINIT_FUNCTION()
178 INIT_CLASS_ENTRY(ce, "variant", class_variant_methods); in PHP_MINIT_FUNCTION()
179 ce.create_object = php_com_object_new; in PHP_MINIT_FUNCTION()
180 php_com_variant_class_entry = zend_register_internal_class(&ce); in PHP_MINIT_FUNCTION()
185 INIT_CLASS_ENTRY(ce, "com", class_com_methods); in PHP_MINIT_FUNCTION()
186 ce.create_object = php_com_object_new; in PHP_MINIT_FUNCTION()
193 INIT_CLASS_ENTRY(ce, "dotnet", class_dotnet_methods); in PHP_MINIT_FUNCTION()
[all …]
H A Dphp_com_dotnet_internal.h38 zend_class_entry *ce; member
53 zend_class_entry *ce = Z_OBJCE_P(zv); in php_com_is_valid_object() local
54 return strcmp("com", ce->name->val) == 0 || in php_com_is_valid_object()
55 strcmp("dotnet", ce->name->val) == 0 || in php_com_is_valid_object()
56 strcmp("variant", ce->name->val) == 0; in php_com_is_valid_object()
72 zend_object* php_com_object_new(zend_class_entry *ce);
79 zend_object_iterator *php_com_saproxy_iter_get(zend_class_entry *ce, zval *object, int by_ref);
147 zend_object_iterator *php_com_iter_get(zend_class_entry *ce, zval *object, int by_ref);
/PHP-8.0/ext/opcache/Optimizer/
H A Descape_analysis.c154 if (ce) { in get_class_entry()
155 return ce; in get_class_entry()
158 ce = zend_hash_find_ptr(CG(class_table), lcname); in get_class_entry()
159 if (ce && ce->type == ZEND_INTERNAL_CLASS) { in get_class_entry()
160 return ce; in get_class_entry()
184 if (ce && !ce->parent && !ce->create_object && !ce->constructor && in is_allocation_def()
185 !ce->destructor && !ce->__get && !ce->__set && in is_allocation_def()
186 !(ce->ce_flags & forbidden_flags) && in is_allocation_def()
187 (ce->ce_flags & ZEND_ACC_CONSTANTS_UPDATED)) { in is_allocation_def()
247 if (ce && !ce->create_object && !ce->constructor && in is_local_def()
[all …]
/PHP-8.0/ext/opcache/
H A DZendAccelerator.c625 ce->name = new_interned_string(ce->name); in accel_copy_permanent_strings()
3449 if (ce->parent && (ce->ce_flags & ZEND_ACC_LINKED)) {
3629 if (!ce) {
3634 return ce;
3642 return ce;
3696 if (ce->trait_aliases || ce->trait_precedences) {
3984 ce = prop->ce;
3986 ce = prop->ce->parent;
3990 if (ce) {
3991 return ce;
[all …]
/PHP-8.0/ext/standard/tests/strings/
H A Dstrrchr_variation5.phpt42 ce"
44 ce"
48 ce"
50 ce"
56 ce"
/PHP-8.0/ext/intl/transliterator/
H A Dtransliterator_class.c110 static zend_object *Transliterator_object_create( zend_class_entry *ce ) in Transliterator_object_create() argument
114 intern = zend_object_alloc(sizeof(Transliterator_object), ce); in Transliterator_object_create()
116 zend_object_std_init( &intern->zo, ce ); in Transliterator_object_create()
117 object_properties_init( &intern->zo, ce ); in Transliterator_object_create()
140 ret_val = Transliterator_ce_ptr->create_object( object->ce ); in Transliterator_clone_obj()
261 zend_class_entry ce; in transliterator_register_Transliterator_class() local
264 INIT_CLASS_ENTRY( ce, "Transliterator", class_Transliterator_methods ); in transliterator_register_Transliterator_class()
265 ce.create_object = Transliterator_object_create; in transliterator_register_Transliterator_class()
266 Transliterator_ce_ptr = zend_register_internal_class( &ce ); in transliterator_register_Transliterator_class()
/PHP-8.0/sapi/phpdbg/
H A Dphpdbg_info.c377 …const char *type = (ce->ce_flags & ZEND_ACC_INTERFACE) ? "Interface" : (ce->ce_flags & ZEND_ACC_AB… in phpdbg_print_class_name()
379 …%s %.*s (%d)", visibility, type, (int) ZSTR_LEN(ce->name), ZSTR_VAL(ce->name), zend_hash_num_eleme… in phpdbg_print_class_name()
384 zend_class_entry *ce; in PHPDBG_INFO() local
390 ZEND_HASH_FOREACH_PTR(EG(class_table), ce) { in PHPDBG_INFO()
391 if (ce->type == ZEND_USER_CLASS) { in PHPDBG_INFO()
392 zend_hash_next_index_insert_ptr(&classes, ce); in PHPDBG_INFO()
402 ZEND_HASH_FOREACH_PTR(&classes, ce) { in PHPDBG_INFO()
403 phpdbg_print_class_name(ce); in PHPDBG_INFO()
405 if (ce->parent) { in PHPDBG_INFO()
408 pce = ce->parent; in PHPDBG_INFO()
[all …]
H A Dphpdbg_list.c89 zend_class_entry *ce; in PHPDBG_LIST() local
91 if (phpdbg_safe_class_lookup(param->method.class, strlen(param->method.class), &ce) == SUCCESS) { in PHPDBG_LIST()
95 if ((function = zend_hash_str_find_ptr(&ce->function_table, lcname, strlen(lcname)))) { in PHPDBG_LIST()
111 zend_class_entry *ce; in PHPDBG_LIST() local
113 if (phpdbg_safe_class_lookup(param->str, param->len, &ce) == SUCCESS) { in PHPDBG_LIST()
114 if (ce->type == ZEND_USER_CLASS) { in PHPDBG_LIST()
115 if (ce->info.user.filename) { in PHPDBG_LIST()
116 …phpdbg_list_file(ce->info.user.filename, ce->info.user.line_end - ce->info.user.line_start + 1, ce in PHPDBG_LIST()
118 …rce\" class=\"%s\"", "The source of the requested class (%s) cannot be found", ZSTR_VAL(ce->name)); in PHPDBG_LIST()
121 …internalclass\" class=\"%s\"", "The class requested (%s) is not user defined", ZSTR_VAL(ce->name)); in PHPDBG_LIST()
/PHP-8.0/ext/reflection/tests/
H A Dbug43926.phpt25 $ce = $re->newInstance();
42 print("Is? A ". ($ra->isInstance($ce) ? 'true' : 'false') .", instanceof: ". (($ce instanceof A) ? …
43 print("Is? C ". ($rc->isInstance($ce) ? 'true' : 'false') .", instanceof: ". (($ce instanceof C) ? …
44 print("Is? D ". ($rd->isInstance($ce) ? 'true' : 'false') .", instanceof: ". (($ce instanceof D) ? …
45 print("Is? E ". ($re->isInstance($ce) ? 'true' : 'false') .", instanceof: ". (($ce instanceof E) ? …
/PHP-8.0/
H A D.gdbinit408 set $ce = $arg0
409 if $ce->ce_flags & 0x10 || $ce->ce_flags & 0x20
412 if $ce->ce_flags & 0x40
417 if $ce->parent != 0
431 set $ce = $ce->parent
435 set $ce = $arg0
438 set $ce = $ce->interfaces[0]
441 set $ce = 0
446 set $ce = $arg0
448 while $ce != 0
[all …]
/PHP-8.0/ext/spl/
H A Dphp_spl.c60 zend_class_entry *ce; in spl_find_ce_by_name() local
70 if (ce == NULL) { in spl_find_ce_by_name()
75 return ce; in spl_find_ce_by_name()
99 ce = Z_OBJCE_P(obj); in PHP_FUNCTION()
116 zend_class_entry *ce; in PHP_FUNCTION() local
131 ce = Z_OBJCE_P(obj); in PHP_FUNCTION()
144 zend_class_entry *ce; in PHP_FUNCTION() local
411 && alfi1->ce == alfi2->ce in autoload_func_info_equals()
446 if (ce) { in spl_perform_autoload()
447 return ce; in spl_perform_autoload()
[all …]
H A Dspl_iterators.c254 ce = object->iterators[object->level].ce; in spl_recursive_it_move_forward_ex()
316 ce = object->iterators[object->level].ce; in spl_recursive_it_move_forward_ex()
348 sub_iter = ce->get_iterator(ce, &child, 0); in spl_recursive_it_move_forward_ex()
351 object->iterators[object->level].ce = ce; in spl_recursive_it_move_forward_ex()
465 ce->iterator_funcs_ptr ? &ce->iterator_funcs_ptr->zf_new_iterator : NULL; in spl_get_iterator_from_aggregate()
765 zend_class_entry *ce; in PHP_METHOD() local
776 SPL_FETCH_SUB_ELEMENT(ce, object, ce); in PHP_METHOD()
793 zend_class_entry *ce; in PHP_METHOD() local
800 SPL_FETCH_SUB_ELEMENT(ce, object, ce); in PHP_METHOD()
1358 ce = ce_cast; in spl_dual_it_construct()
[all …]
/PHP-8.0/ext/dom/
H A Dphp_dom.h126 zend_object_iterator *php_dom_get_iterator(zend_class_entry *ce, zval *object, int by_ref);
127 …dom_set_doc_classmap(php_libxml_ref_obj *document, zend_class_entry *basece, zend_class_entry *ce);
135 #define REGISTER_DOM_CLASS(ce, name, parent_ce, funcs, entry) \ argument
136 INIT_CLASS_ENTRY(ce, name, funcs); \
137 ce.create_object = dom_objects_new; \
138 entry = zend_register_internal_class_ex(&ce, parent_ce);
143 zend_throw_error(NULL, "Couldn't fetch %s", ZSTR_VAL(__intern->std.ce->name));\
/PHP-8.0/ext/intl/common/
H A Dcommon_enum.cpp169 zend_class_entry *ce, zval *object, int by_ref) in IntlIterator_get_iterator() argument
190 static zend_object *IntlIterator_object_create(zend_class_entry *ce) in IntlIterator_object_create() argument
194 …intern = (IntlIterator_object*)ecalloc(1, sizeof(IntlIterator_object) + sizeof(zval) * (ce->defaul… in IntlIterator_object_create()
196 zend_object_std_init(&intern->zo, ce); in IntlIterator_object_create()
197 object_properties_init(&intern->zo, ce); in IntlIterator_object_create()
289 zend_class_entry ce; in intl_register_IntlIterator_class() local
292 INIT_CLASS_ENTRY(ce, "IntlIterator", class_IntlIterator_methods); in intl_register_IntlIterator_class()
293 ce.create_object = IntlIterator_object_create; in intl_register_IntlIterator_class()
294 IntlIterator_ce_ptr = zend_register_internal_class(&ce); in intl_register_IntlIterator_class()
/PHP-8.0/ext/mysqli/
H A Dphp_mysqli_structs.h174 extern zend_object_iterator *php_mysqli_result_get_iterator(zend_class_entry *ce, zval *object, int…
189 zend_class_entry ce; \
190 INIT_CLASS_ENTRY(ce, name,class_functions); \
191 ce.create_object = mysqli_objects_new; \
192 mysqli_entry = zend_register_internal_class(&ce); \
217 zend_throw_error(NULL, "%s object is already closed", ZSTR_VAL(intern->zo.ce->name));\
222 zend_throw_error(NULL, "%s object is not fully initialized", ZSTR_VAL(intern->zo.ce->name)); \
231 zend_throw_error(NULL, "%s object is already closed", ZSTR_VAL(intern->zo.ce->name));\
236 zend_throw_error(NULL, "%s object is not fully initialized", ZSTR_VAL(intern->zo.ce->name)); \
/PHP-8.0/ext/xsl/
H A Dphp_xsl.c114 zend_class_entry ce; in PHP_MINIT_FUNCTION() local
121 INIT_CLASS_ENTRY(ce, "XSLTProcessor", class_XSLTProcessor_methods); in PHP_MINIT_FUNCTION()
122 ce.create_object = xsl_objects_new; in PHP_MINIT_FUNCTION()
123 xsl_xsltprocessor_class_entry = zend_register_internal_class(&ce); in PHP_MINIT_FUNCTION()
192 zend_class_entry *ce; in php_xsl_create_object() local
212 ce = xsl_xsltprocessor_class_entry; in php_xsl_create_object()
215 object_init_ex(wrapper, ce); in php_xsl_create_object()
/PHP-8.0/ext/intl/resourcebundle/
H A Dresourcebundle_class.c57 static zend_object *ResourceBundle_object_create( zend_class_entry *ce ) in ResourceBundle_object_create() argument
61 rb = zend_object_alloc(sizeof(ResourceBundle_object), ce); in ResourceBundle_object_create()
63 zend_object_std_init( &rb->zend, ce ); in ResourceBundle_object_create()
64 object_properties_init( &rb->zend, ce); in ResourceBundle_object_create()
369 zend_class_entry ce; in resourcebundle_register_class() local
371 INIT_CLASS_ENTRY( ce, "ResourceBundle", class_ResourceBundle_methods ); in resourcebundle_register_class()
373 ce.create_object = ResourceBundle_object_create; in resourcebundle_register_class()
374 ce.get_iterator = resourcebundle_get_iterator; in resourcebundle_register_class()
376 ResourceBundle_ce_ptr = zend_register_internal_class( &ce ); in resourcebundle_register_class()

Completed in 122 milliseconds

12345678