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

/PHP_TRUNK/Zend/
H A Dzend_API.c1249 ZEND_API void zend_update_class_constants(zend_class_entry *class_type TSRMLS_DC) /* {{{ */
1254 if (!CE_STATIC_MEMBERS(class_type) && class_type->default_static_members_count) {
1257 if (class_type->parent) {
1258 zend_update_class_constants(class_type->parent TSRMLS_CC);
1261 CG(static_members_table)[(zend_intptr_t)(class_type->static_members_table)] = emalloc(sizeof(zval*) * class_type->default_static_members_count);
1263 class_type->static_members_table = emalloc(sizeof(zval*) * class_type->default_static_members_count);
1265 for (i = 0; i < class_type
1311 object_properties_init(zend_object *object, zend_class_entry *class_type) argument
1384 _object_and_properties_init(zval *arg, zend_class_entry *class_type, HashTable *properties ZEND_FILE_LINE_DC TSRMLS_DC) argument
1400 object_properties_init(Z_OBJ_P(arg), class_type); local
[all...]
H A Dzend_compile.c1834 void zend_do_receive_param(zend_uchar op, znode *varname, znode *initialization, znode *class_type, zend_uchar pass_by_reference, zend_bool is_variadic TSRMLS_DC) /* {{{ */ argument
1898 if (class_type->op_type != IS_UNUSED) {
1901 if (Z_TYPE(class_type->u.constant) != IS_NULL) {
1902 if (Z_TYPE(class_type->u.constant) == IS_ARRAY) {
1911 } else if (Z_TYPE(class_type->u.constant) == IS_CALLABLE) {
1922 if (ZEND_FETCH_CLASS_DEFAULT == zend_get_class_fetch_type(Z_STRVAL(class_type->u.constant), Z_STRSIZE(class_type->u.constant))) {
1923 zend_resolve_class_name(class_type TSRMLS_CC);
1925 Z_STR(class_type->u.constant) = zend_new_interned_string(Z_STR(class_type
[all...]
H A Dzend_exceptions.c151 static zend_object *zend_default_exception_new_ex(zend_class_entry *class_type, int skip_top_traces TSRMLS_DC) /* {{{ */ argument
157 Z_OBJ(obj) = object = zend_objects_new(class_type TSRMLS_CC);
160 object_properties_init(object, class_type);
173 static zend_object *zend_default_exception_new(zend_class_entry *class_type TSRMLS_DC) /* {{{ */
175 return zend_default_exception_new_ex(class_type, 0 TSRMLS_CC);
179 static zend_object *zend_error_exception_new(zend_class_entry *class_type TSRMLS_DC) /* {{{ */
181 return zend_default_exception_new_ex(class_type, 2 TSRMLS_CC);
/PHP_TRUNK/ext/date/
H A Dphp_date.c607 static zend_object *date_object_new_date(zend_class_entry *class_type TSRMLS_DC);
608 static zend_object *date_object_new_timezone(zend_class_entry *class_type TSRMLS_DC);
609 static zend_object *date_object_new_interval(zend_class_entry *class_type TSRMLS_DC);
610 static zend_object *date_object_new_period(zend_class_entry *class_type TSRMLS_DC);
2086 static inline zend_object *date_object_new_date_ex(zend_class_entry *class_type, int init_props TSRMLS_DC) /* {{{ */ argument
2090 intern = ecalloc(1, sizeof(php_date_obj) + sizeof(zval) * (class_type->default_properties_count - 1));
2092 zend_object_std_init(&intern->std, class_type TSRMLS_CC);
2094 object_properties_init(&intern->std, class_type);
2101 static zend_object *date_object_new_date(zend_class_entry *class_type TSRMLS_DC) /* {{{ */
2103 return date_object_new_date_ex(class_type,
2217 date_object_new_timezone_ex(zend_class_entry *class_type, int init_props TSRMLS_DC) argument
2308 date_object_new_interval_ex(zend_class_entry *class_type, int init_props TSRMLS_DC) argument
2389 date_object_new_period_ex(zend_class_entry *class_type, int init_props TSRMLS_DC) argument
[all...]
/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);
1080 static dom_object* dom_objects_set_class(zend_class_entry *class_type, zend_bool hash_copy TSRMLS_DC) /* {{{ */ argument
1082 dom_object *intern = ecalloc(1, sizeof(dom_object) + sizeof(zval) * (class_type->default_properties_count - 1));
1084 zend_class_entry *base_class = class_type;
1091 zend_object_std_init(&intern->std, class_type TSRMLS_CC);
1093 object_properties_init(&intern->std, class_type);
1101 zend_object *dom_objects_new(zend_class_entry *class_type TSRMLS_DC)
1103 dom_object *intern = dom_objects_set_class(class_type, 1 TSRMLS_CC);
1110 /* {{{ zend_object_value dom_xpath_objects_new(zend_class_entry *class_type TSRMLS_DC) */
1111 zend_object *dom_xpath_objects_new(zend_class_entry *class_type TSRMLS_D
[all...]
/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.c372 static zend_object *spl_dllist_object_new_ex(zend_class_entry *class_type, zval *orig, int clone_orig TSRMLS_DC) /* {{{ */ argument
375 zend_class_entry *parent = class_type;
380 zend_object_std_init(&intern->std, class_type TSRMLS_CC);
381 object_properties_init(&intern->std, class_type);
431 intern->fptr_offset_get = zend_hash_str_find_ptr(&class_type->function_table, "offsetget", sizeof("offsetget") - 1);
435 intern->fptr_offset_set = zend_hash_str_find_ptr(&class_type->function_table, "offsetset", sizeof("offsetset") - 1);
439 intern->fptr_offset_has = zend_hash_str_find_ptr(&class_type->function_table, "offsetexists", sizeof("offsetexists") - 1);
443 intern->fptr_offset_del = zend_hash_str_find_ptr(&class_type->function_table, "offsetunset", sizeof("offsetunset") - 1);
447 intern->fptr_count = zend_hash_str_find_ptr(&class_type->function_table, "count", sizeof("count") - 1);
457 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.c943 static zend_object *spl_RecursiveIteratorIterator_new_ex(zend_class_entry *class_type, int init_prefix TSRMLS_DC) argument
947 intern = ecalloc(1, sizeof(spl_recursive_it_object) + sizeof(zval) * (class_type->default_properties_count - 1));
960 zend_object_std_init(&intern->std, class_type TSRMLS_CC);
961 object_properties_init(&intern->std, class_type);
969 static zend_object *spl_RecursiveIteratorIterator_new(zend_class_entry *class_type TSRMLS_DC)
971 return spl_RecursiveIteratorIterator_new_ex(class_type, 0 TSRMLS_CC);
976 static zend_object *spl_RecursiveTreeIterator_new(zend_class_entry *class_type TSRMLS_DC)
978 return spl_RecursiveIteratorIterator_new_ex(class_type, 1 TSRMLS_CC);
1334 static int spl_dual_it_gets_implemented(zend_class_entry *interface, zend_class_entry *class_type TSRMLS_DC)
1336 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/tidy/
H A Dtidy.c672 static zend_object *tidy_object_new(zend_class_entry *class_type, zend_object_handlers *handlers, tidy_obj_type objtype TSRMLS_DC) argument
676 intern = ecalloc(1, sizeof(PHPTidyObj) + sizeof(zval) * (class_type->default_properties_count - 1));
677 zend_object_std_init(&intern->std, class_type TSRMLS_CC);
678 object_properties_init(&intern->std, class_type);
715 static zend_object *tidy_object_new_node(zend_class_entry *class_type TSRMLS_DC)
717 return tidy_object_new(class_type, &tidy_object_handlers_node, is_node TSRMLS_CC);
720 static zend_object *tidy_object_new_doc(zend_class_entry *class_type TSRMLS_DC)
722 return tidy_object_new(class_type, &tidy_object_handlers_doc, is_doc TSRMLS_CC);

Completed in 39 milliseconds