Searched defs:class_type (Results 1 - 12 of 12) sorted by relevance

/PHP_TRUNK/ext/spl/
H A Dspl_array.c178 static zend_object *spl_array_object_new_ex(zend_class_entry *class_type, zval *orig, int clone_orig TSRMLS_DC) argument
181 zend_class_entry *parent = class_type;
186 zend_object_std_init(&intern->std, class_type TSRMLS_CC);
187 object_properties_init(&intern->std, class_type);
220 class_type->get_iterator = spl_array_get_iterator;
233 intern->fptr_offset_get = zend_hash_str_find_ptr(&class_type->function_table, "offsetget", sizeof("offsetget") - 1);
237 intern->fptr_offset_set = zend_hash_str_find_ptr(&class_type->function_table, "offsetset", sizeof("offsetset") - 1);
241 intern->fptr_offset_has = zend_hash_str_find_ptr(&class_type->function_table, "offsetexists", sizeof("offsetexists") - 1);
245 intern->fptr_offset_del = zend_hash_str_find_ptr(&class_type->function_table, "offsetunset", sizeof("offsetunset") - 1);
249 intern->fptr_count = zend_hash_str_find_ptr(&class_type
[all...]
H A Dspl_dllist.c370 static zend_object *spl_dllist_object_new_ex(zend_class_entry *class_type, zval *orig, int clone_orig TSRMLS_DC) /* {{{ */ argument
373 zend_class_entry *parent = class_type;
378 zend_object_std_init(&intern->std, class_type TSRMLS_CC);
379 object_properties_init(&intern->std, class_type);
429 intern->fptr_offset_get = zend_hash_str_find_ptr(&class_type->function_table, "offsetget", sizeof("offsetget") - 1);
433 intern->fptr_offset_set = zend_hash_str_find_ptr(&class_type->function_table, "offsetset", sizeof("offsetset") - 1);
437 intern->fptr_offset_has = zend_hash_str_find_ptr(&class_type->function_table, "offsetexists", sizeof("offsetexists") - 1);
441 intern->fptr_offset_del = zend_hash_str_find_ptr(&class_type->function_table, "offsetunset", sizeof("offsetunset") - 1);
445 intern->fptr_count = zend_hash_str_find_ptr(&class_type->function_table, "count", sizeof("count") - 1);
455 static zend_object *spl_dllist_object_new(zend_class_entry *class_type TSRMLS_D
[all...]
H A Dspl_fixedarray.c217 static zend_object *spl_fixedarray_object_new_ex(zend_class_entry *class_type, zval *orig, int clone_orig TSRMLS_DC) /* {{{ */ argument
220 zend_class_entry *parent = class_type;
225 zend_object_std_init(&intern->std, class_type TSRMLS_CC);
226 object_properties_init(&intern->std, class_type);
247 class_type->get_iterator = spl_fixedarray_get_iterator;
259 if (!class_type->iterator_funcs.zf_current) {
260 class_type->iterator_funcs.zf_rewind = zend_hash_str_find_ptr(&class_type->function_table, "rewind", sizeof("rewind") - 1);
261 class_type->iterator_funcs.zf_valid = zend_hash_str_find_ptr(&class_type
[all...]
H A Dspl_heap.c383 static zend_object *spl_heap_object_new_ex(zend_class_entry *class_type, zval *orig, int clone_orig TSRMLS_DC) /* {{{ */ argument
386 zend_class_entry *parent = class_type;
391 zend_object_std_init(&intern->std, class_type TSRMLS_CC);
392 object_properties_init(&intern->std, class_type);
452 intern->fptr_cmp = zend_hash_str_find_ptr(&class_type->function_table, "compare", sizeof("compare") - 1);
456 intern->fptr_count = zend_hash_str_find_ptr(&class_type->function_table, "count", sizeof("count") - 1);
466 static zend_object *spl_heap_object_new(zend_class_entry *class_type TSRMLS_DC) /* {{{ */
468 return spl_heap_object_new_ex(class_type, NULL, 0 TSRMLS_CC);
H A Dspl_iterators.c946 static zend_object *spl_RecursiveIteratorIterator_new_ex(zend_class_entry *class_type, int init_prefix TSRMLS_DC) argument
950 intern = ecalloc(1, sizeof(spl_recursive_it_object) + sizeof(zval) * (class_type->default_properties_count - 1));
963 zend_object_std_init(&intern->std, class_type TSRMLS_CC);
964 object_properties_init(&intern->std, class_type);
972 static zend_object *spl_RecursiveIteratorIterator_new(zend_class_entry *class_type TSRMLS_DC)
974 return spl_RecursiveIteratorIterator_new_ex(class_type, 0 TSRMLS_CC);
979 static zend_object *spl_RecursiveTreeIterator_new(zend_class_entry *class_type TSRMLS_DC)
981 return spl_RecursiveIteratorIterator_new_ex(class_type, 1 TSRMLS_CC);
1337 static int spl_dual_it_gets_implemented(zend_class_entry *interface, zend_class_entry *class_type TSRMLS_DC)
1339 class_type
[all...]
H A Dspl_observer.c254 static zend_object *spl_object_storage_new_ex(zend_class_entry *class_type, zval *orig TSRMLS_DC) /* {{{ */ argument
257 zend_class_entry *parent = class_type;
263 zend_object_std_init(&intern->std, class_type TSRMLS_CC);
264 object_properties_init(&intern->std, class_type);
277 if (class_type != spl_ce_SplObjectStorage) {
278 intern->fptr_get_hash = zend_hash_str_find_ptr(&class_type->function_table, "gethash", sizeof("gethash") - 1);
419 static zend_object *spl_SplObjectStorage_new(zend_class_entry *class_type TSRMLS_DC)
421 return spl_object_storage_new_ex(class_type, NULL TSRMLS_CC);
/PHP_TRUNK/ext/dom/
H A Dphp_dom.c513 static dom_object* dom_objects_set_class(zend_class_entry *class_type, zend_bool hash_copy TSRMLS_DC);
1082 static dom_object* dom_objects_set_class(zend_class_entry *class_type, zend_bool hash_copy TSRMLS_DC) /* {{{ */ argument
1084 dom_object *intern = ecalloc(1, sizeof(dom_object) + sizeof(zval) * (class_type->default_properties_count - 1));
1086 zend_class_entry *base_class = class_type;
1093 zend_object_std_init(&intern->std, class_type TSRMLS_CC);
1095 object_properties_init(&intern->std, class_type);
1103 zend_object *dom_objects_new(zend_class_entry *class_type TSRMLS_DC)
1105 dom_object *intern = dom_objects_set_class(class_type, 1 TSRMLS_CC);
1112 /* {{{ zend_object_value dom_xpath_objects_new(zend_class_entry *class_type TSRMLS_DC) */
1113 zend_object *dom_xpath_objects_new(zend_class_entry *class_type TSRMLS_D
[all...]
/PHP_TRUNK/Zend/
H A Dzend_exceptions.c149 static zend_object *zend_default_exception_new_ex(zend_class_entry *class_type, int skip_top_traces TSRMLS_DC) /* {{{ */ argument
155 Z_OBJ(obj) = object = zend_objects_new(class_type TSRMLS_CC);
158 object_properties_init(object, class_type);
171 static zend_object *zend_default_exception_new(zend_class_entry *class_type TSRMLS_DC) /* {{{ */
173 return zend_default_exception_new_ex(class_type, 0 TSRMLS_CC);
177 static zend_object *zend_error_exception_new(zend_class_entry *class_type TSRMLS_DC) /* {{{ */
179 return zend_default_exception_new_ex(class_type, 2 TSRMLS_CC);
H A Dzend_API.c1162 ZEND_API void zend_update_class_constants(zend_class_entry *class_type TSRMLS_DC) /* {{{ */
1167 if (!CE_STATIC_MEMBERS(class_type) && class_type->default_static_members_count) {
1170 if (class_type->parent) {
1171 zend_update_class_constants(class_type->parent TSRMLS_CC);
1174 CG(static_members_table)[(zend_intptr_t)(class_type->static_members_table)] = emalloc(sizeof(zval*) * class_type->default_static_members_count);
1176 class_type->static_members_table = emalloc(sizeof(zval*) * class_type->default_static_members_count);
1178 for (i = 0; i < class_type
1224 object_properties_init(zend_object *object, zend_class_entry *class_type) argument
1295 _object_and_properties_init(zval *arg, zend_class_entry *class_type, HashTable *properties ZEND_FILE_LINE_DC TSRMLS_DC) argument
1311 object_properties_init(Z_OBJ_P(arg), class_type); local
[all...]
H A Dzend_language_parser.y257 %type <num> returns_ref function is_reference is_variadic class_type variable_modifiers
425 class_type { $<num>$ = CG(zend_lineno); }
435 class_type: label
/PHP_TRUNK/ext/tidy/
H A Dtidy.c674 static zend_object *tidy_object_new(zend_class_entry *class_type, zend_object_handlers *handlers, tidy_obj_type objtype TSRMLS_DC) argument
678 intern = ecalloc(1, sizeof(PHPTidyObj) + sizeof(zval) * (class_type->default_properties_count - 1));
679 zend_object_std_init(&intern->std, class_type TSRMLS_CC);
680 object_properties_init(&intern->std, class_type);
717 static zend_object *tidy_object_new_node(zend_class_entry *class_type TSRMLS_DC)
719 return tidy_object_new(class_type, &tidy_object_handlers_node, is_node TSRMLS_CC);
722 static zend_object *tidy_object_new_doc(zend_class_entry *class_type TSRMLS_DC)
724 return tidy_object_new(class_type, &tidy_object_handlers_doc, is_doc TSRMLS_CC);
/PHP_TRUNK/ext/date/
H A Dphp_date.c625 static zend_object *date_object_new_date(zend_class_entry *class_type TSRMLS_DC);
626 static zend_object *date_object_new_timezone(zend_class_entry *class_type TSRMLS_DC);
627 static zend_object *date_object_new_interval(zend_class_entry *class_type TSRMLS_DC);
628 static zend_object *date_object_new_period(zend_class_entry *class_type TSRMLS_DC);
2105 static inline zend_object *date_object_new_date_ex(zend_class_entry *class_type, int init_props TSRMLS_DC) /* {{{ */ argument
2109 intern = ecalloc(1, sizeof(php_date_obj) + sizeof(zval) * (class_type->default_properties_count - 1));
2111 zend_object_std_init(&intern->std, class_type TSRMLS_CC);
2113 object_properties_init(&intern->std, class_type);
2120 static zend_object *date_object_new_date(zend_class_entry *class_type TSRMLS_DC) /* {{{ */
2122 return date_object_new_date_ex(class_type,
2236 date_object_new_timezone_ex(zend_class_entry *class_type, int init_props TSRMLS_DC) argument
2327 date_object_new_interval_ex(zend_class_entry *class_type, int init_props TSRMLS_DC) argument
2408 date_object_new_period_ex(zend_class_entry *class_type, int init_props TSRMLS_DC) argument
[all...]

Completed in 37 milliseconds