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

/PHP_5_4/ext/spl/
H A Dspl_heap.c384 static zend_object_value spl_heap_object_new_ex(zend_class_entry *class_type, spl_heap_object **obj, zval *orig, int clone_orig TSRMLS_DC) /* {{{ */ argument
388 zend_class_entry *parent = class_type;
395 zend_object_std_init(&intern->std, class_type TSRMLS_CC);
396 object_properties_init(&intern->std, class_type);
458 zend_hash_find(&class_type->function_table, "compare", sizeof("compare"), (void **) &intern->fptr_cmp);
462 zend_hash_find(&class_type->function_table, "count", sizeof("count"), (void **) &intern->fptr_count);
472 static zend_object_value spl_heap_object_new(zend_class_entry *class_type TSRMLS_DC) /* {{{ */
475 return spl_heap_object_new_ex(class_type, &tmp, NULL, 0 TSRMLS_CC);
H A Dspl_fixedarray.c223 static zend_object_value spl_fixedarray_object_new_ex(zend_class_entry *class_type, spl_fixedarray_object **obj, zval *orig, int clone_orig TSRMLS_DC) /* {{{ */ argument
227 zend_class_entry *parent = class_type;
234 zend_object_std_init(&intern->std, class_type TSRMLS_CC);
235 object_properties_init(&intern->std, class_type);
256 class_type->get_iterator = spl_fixedarray_get_iterator;
269 if (!class_type->iterator_funcs.zf_current) {
270 zend_hash_find(&class_type->function_table, "rewind", sizeof("rewind"), (void **) &class_type->iterator_funcs.zf_rewind);
271 zend_hash_find(&class_type->function_table, "valid", sizeof("valid"), (void **) &class_type
[all...]
H A Dspl_directory.c147 static zend_object_value spl_filesystem_object_new_ex(zend_class_entry *class_type, spl_filesystem_object **obj TSRMLS_DC) argument
159 zend_object_std_init(&intern->std, class_type TSRMLS_CC);
160 object_properties_init(&intern->std, class_type);
170 static zend_object_value spl_filesystem_object_new(zend_class_entry *class_type TSRMLS_DC)
172 return spl_filesystem_object_new_ex(class_type, NULL TSRMLS_CC);
177 static zend_object_value spl_filesystem_object_new_check(zend_class_entry *class_type TSRMLS_DC)
179 zend_object_value ret = spl_filesystem_object_new_ex(class_type, NULL TSRMLS_CC);
H A Dspl_iterators.c910 static zend_object_value spl_RecursiveIteratorIterator_new_ex(zend_class_entry *class_type, int init_prefix TSRMLS_DC) argument
927 zend_object_std_init(&intern->std, class_type TSRMLS_CC);
928 object_properties_init(&intern->std, class_type);
937 static zend_object_value spl_RecursiveIteratorIterator_new(zend_class_entry *class_type TSRMLS_DC)
939 return spl_RecursiveIteratorIterator_new_ex(class_type, 0 TSRMLS_CC);
944 static zend_object_value spl_RecursiveTreeIterator_new(zend_class_entry *class_type TSRMLS_DC)
946 return spl_RecursiveIteratorIterator_new_ex(class_type, 1 TSRMLS_CC);
1272 static int spl_dual_it_gets_implemented(zend_class_entry *interface, zend_class_entry *class_type TSRMLS_DC)
1274 class_type->iterator_funcs.zf_valid = NULL;
1275 class_type
[all...]
H A Dspl_observer.c253 static zend_object_value spl_object_storage_new_ex(zend_class_entry *class_type, spl_SplObjectStorage **obj, 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);
278 if (class_type != spl_ce_SplObjectStorage) {
279 zend_hash_find(&class_type->function_table, "gethash", sizeof("gethash"), (void **) &intern->fptr_get_hash);
432 static zend_object_value spl_SplObjectStorage_new(zend_class_entry *class_type TSRMLS_DC)
435 return spl_object_storage_new_ex(class_type, &tmp, NULL TSRMLS_CC);
H A Dspl_array.c167 static zend_object_value spl_array_object_new_ex(zend_class_entry *class_type, spl_array_object **obj, zval *orig, int clone_orig TSRMLS_DC) argument
172 zend_class_entry * parent = class_type;
180 zend_object_std_init(&intern->std, class_type TSRMLS_CC);
181 object_properties_init(&intern->std, class_type);
217 class_type->get_iterator = spl_array_get_iterator;
230 zend_hash_find(&class_type->function_table, "offsetget", sizeof("offsetget"), (void **) &intern->fptr_offset_get);
234 zend_hash_find(&class_type->function_table, "offsetset", sizeof("offsetset"), (void **) &intern->fptr_offset_set);
238 zend_hash_find(&class_type->function_table, "offsetexists", sizeof("offsetexists"), (void **) &intern->fptr_offset_has);
242 zend_hash_find(&class_type->function_table, "offsetunset", sizeof("offsetunset"), (void **) &intern->fptr_offset_del);
246 zend_hash_find(&class_type
[all...]
H A Dspl_dllist.c367 static zend_object_value spl_dllist_object_new_ex(zend_class_entry *class_type, spl_dllist_object **obj, zval *orig, int clone_orig TSRMLS_DC) /* {{{ */ argument
371 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);
431 zend_hash_find(&class_type->function_table, "offsetget", sizeof("offsetget"), (void **) &intern->fptr_offset_get);
435 zend_hash_find(&class_type->function_table, "offsetset", sizeof("offsetset"), (void **) &intern->fptr_offset_set);
439 zend_hash_find(&class_type->function_table, "offsetexists", sizeof("offsetexists"), (void **) &intern->fptr_offset_has);
443 zend_hash_find(&class_type->function_table, "offsetunset", sizeof("offsetunset"), (void **) &intern->fptr_offset_del);
447 zend_hash_find(&class_type->function_table, "count", sizeof("count"), (void **) &intern->fptr_count);
457 static zend_object_value spl_dllist_object_new(zend_class_entry *class_type TSRMLS_D
[all...]
/PHP_5_4/ext/tidy/
H A Dtidy.c674 static void tidy_object_new(zend_class_entry *class_type, zend_object_handlers *handlers, argument
681 zend_object_std_init(&intern->std, class_type TSRMLS_CC);
682 object_properties_init(&intern->std, class_type);
718 static zend_object_value tidy_object_new_node(zend_class_entry *class_type TSRMLS_DC)
721 tidy_object_new(class_type, &tidy_object_handlers_node, &retval, is_node TSRMLS_CC);
725 static zend_object_value tidy_object_new_doc(zend_class_entry *class_type TSRMLS_DC)
728 tidy_object_new(class_type, &tidy_object_handlers_doc, &retval, is_doc TSRMLS_CC);
/PHP_5_4/Zend/
H A Dzend_API.c1060 ZEND_API void zend_update_class_constants(zend_class_entry *class_type TSRMLS_DC) /* {{{ */
1062 if ((class_type->ce_flags & ZEND_ACC_CONSTANTS_UPDATED) == 0 || (!CE_STATIC_MEMBERS(class_type) && class_type->default_static_members_count)) {
1067 *scope = class_type;
1068 zend_hash_apply_with_argument(&class_type->constants_table, (apply_func_arg_t) zval_update_constant, (void*)1 TSRMLS_CC);
1070 for (i = 0; i < class_type->default_properties_count; i++) {
1071 if (class_type->default_properties_table[i]) {
1072 zval_update_class_constant(&class_type->default_properties_table[i], 0, i TSRMLS_CC);
1076 if (!CE_STATIC_MEMBERS(class_type)
1122 object_properties_init(zend_object *object, zend_class_entry *class_type) argument
1148 _object_and_properties_init(zval *arg, zend_class_entry *class_type, HashTable *properties ZEND_FILE_LINE_DC TSRMLS_DC) argument
[all...]
H A Dzend_exceptions.c147 static zend_object_value zend_default_exception_new_ex(zend_class_entry *class_type, int skip_top_traces TSRMLS_DC) /* {{{ */ argument
153 Z_OBJVAL(obj) = zend_objects_new(&object, class_type TSRMLS_CC);
156 object_properties_init(object, class_type);
171 static zend_object_value 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_value 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_compile.c1827 void zend_do_receive_arg(zend_uchar op, znode *varname, const znode *offset, const znode *initialization, znode *class_type, zend_uchar pass_by_reference TSRMLS_DC) /* {{{ */ argument
1833 if (class_type->op_type == IS_CONST &&
1834 Z_TYPE(class_type->u.constant) == IS_STRING &&
1835 Z_STRLEN(class_type->u.constant) == 0) {
1837 zval_dtor(&class_type->u.constant);
1881 if (class_type->op_type != IS_UNUSED) {
1884 if (class_type->u.constant.type != IS_NULL) {
1885 if (class_type->u.constant.type == IS_ARRAY) {
1894 } else if (class_type->u.constant.type == IS_CALLABLE) {
1905 if (ZEND_FETCH_CLASS_DEFAULT == zend_get_class_fetch_type(Z_STRVAL(class_type
[all...]
/PHP_5_4/ext/date/
H A Dphp_date.c577 static zend_object_value date_object_new_date(zend_class_entry *class_type TSRMLS_DC);
578 static zend_object_value date_object_new_timezone(zend_class_entry *class_type TSRMLS_DC);
579 static zend_object_value date_object_new_interval(zend_class_entry *class_type TSRMLS_DC);
580 static zend_object_value date_object_new_period(zend_class_entry *class_type TSRMLS_DC);
2030 static inline zend_object_value date_object_new_date_ex(zend_class_entry *class_type, php_date_obj **ptr TSRMLS_DC) argument
2041 zend_object_std_init(&intern->std, class_type TSRMLS_CC);
2042 object_properties_init(&intern->std, class_type);
2050 static zend_object_value date_object_new_date(zend_class_entry *class_type TSRMLS_DC)
2052 return date_object_new_date_ex(class_type, NULL TSRMLS_CC);
2164 static inline zend_object_value date_object_new_timezone_ex(zend_class_entry *class_type, php_timezone_ob argument
2219 date_object_new_interval_ex(zend_class_entry *class_type, php_interval_obj **ptr TSRMLS_DC) argument
2308 date_object_new_period_ex(zend_class_entry *class_type, php_period_obj **ptr TSRMLS_DC) argument
[all...]
/PHP_5_4/ext/dom/
H A Dphp_dom.c1138 static dom_object* dom_objects_set_class(zend_class_entry *class_type, zend_bool hash_copy TSRMLS_DC) /* {{{ */ argument
1143 if (instanceof_function(class_type, dom_xpath_class_entry TSRMLS_CC)) {
1153 base_class = class_type;
1160 zend_object_std_init(&intern->std, class_type TSRMLS_CC);
1162 object_properties_init(&intern->std, class_type);
1203 zend_object_value dom_objects_new(zend_class_entry *class_type TSRMLS_DC)
1208 intern = dom_objects_set_class(class_type, 1 TSRMLS_CC);
1219 /* {{{ zend_object_value dom_xpath_objects_new(zend_class_entry *class_type TSRMLS_DC) */
1220 zend_object_value dom_xpath_objects_new(zend_class_entry *class_type TSRMLS_DC)
1225 intern = (dom_xpath_object *)dom_objects_set_class(class_type,
[all...]

Completed in 74 milliseconds