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

/PHP_5_3/ext/dom/
H A Dphp_dom.c1135 static dom_object* dom_objects_set_class(zend_class_entry *class_type, zend_bool hash_copy TSRMLS_DC) /* {{{ */ argument
1141 if (instanceof_function(class_type, dom_xpath_class_entry TSRMLS_CC)) {
1151 base_class = class_type;
1158 zend_object_std_init(&intern->std, class_type TSRMLS_CC);
1160 zend_hash_copy(intern->std.properties, &class_type->default_properties, (copy_ctor_func_t) zval_add_ref, (void *) &tmp, sizeof(zval *));
1201 zend_object_value dom_objects_new(zend_class_entry *class_type TSRMLS_DC)
1206 intern = dom_objects_set_class(class_type, 1 TSRMLS_CC);
1217 /* {{{ zend_object_value dom_xpath_objects_new(zend_class_entry *class_type TSRMLS_DC) */
1218 zend_object_value dom_xpath_objects_new(zend_class_entry *class_type TSRMLS_DC)
1223 intern = (dom_xpath_object *)dom_objects_set_class(class_type,
[all...]
/PHP_5_3/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
389 zend_class_entry *parent = class_type;
396 zend_object_std_init(&intern->std, class_type TSRMLS_CC);
397 zend_hash_copy(intern->std.properties, &class_type->default_properties, (copy_ctor_func_t) zval_property_ctor, (void *) &tmp, sizeof(zval *));
459 zend_hash_find(&class_type->function_table, "compare", sizeof("compare"), (void **) &intern->fptr_cmp);
463 zend_hash_find(&class_type->function_table, "count", sizeof("count"), (void **) &intern->fptr_count);
473 static zend_object_value spl_heap_object_new(zend_class_entry *class_type TSRMLS_DC) /* {{{ */
476 return spl_heap_object_new_ex(class_type, &tmp, NULL, 0 TSRMLS_CC);
H A Dspl_dllist.c366 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 zend_hash_copy(intern->std.properties, &class_type->default_properties, (copy_ctor_func_t) zval_property_ctor, (void *) &tmp, sizeof(zval *));
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...]
H A Dspl_array.c163 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
168 zend_class_entry * parent = class_type;
176 zend_object_std_init(&intern->std, class_type TSRMLS_CC);
177 zend_hash_copy(intern->std.properties, &class_type->default_properties, (copy_ctor_func_t) zval_property_ctor, (void *) &tmp, sizeof(zval *));
215 class_type->get_iterator = spl_array_get_iterator;
228 zend_hash_find(&class_type->function_table, "offsetget", sizeof("offsetget"), (void **) &intern->fptr_offset_get);
232 zend_hash_find(&class_type->function_table, "offsetset", sizeof("offsetset"), (void **) &intern->fptr_offset_set);
236 zend_hash_find(&class_type->function_table, "offsetexists", sizeof("offsetexists"), (void **) &intern->fptr_offset_has);
240 zend_hash_find(&class_type->function_table, "offsetunset", sizeof("offsetunset"), (void **) &intern->fptr_offset_del);
244 zend_hash_find(&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
160 zend_object_std_init(&intern->std, class_type TSRMLS_CC);
161 zend_hash_copy(intern->std.properties, &class_type->default_properties, (copy_ctor_func_t) zval_property_ctor, (void *) &tmp, sizeof(zval *));
171 static zend_object_value spl_filesystem_object_new(zend_class_entry *class_type TSRMLS_DC)
173 return spl_filesystem_object_new_ex(class_type, NULL TSRMLS_CC);
178 static zend_object_value spl_filesystem_object_new_check(zend_class_entry *class_type TSRMLS_DC)
180 zend_object_value ret = spl_filesystem_object_new_ex(class_type, NULL TSRMLS_CC);
H A Dspl_fixedarray.c205 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
210 zend_class_entry *parent = class_type;
217 zend_object_std_init(&intern->std, class_type TSRMLS_CC);
218 zend_hash_copy(intern->std.properties, &class_type->default_properties, (copy_ctor_func_t) zval_property_ctor, (void *) &tmp, sizeof(zval *));
239 class_type->get_iterator = spl_fixedarray_get_iterator;
252 if (!class_type->iterator_funcs.zf_current) {
253 zend_hash_find(&class_type->function_table, "rewind", sizeof("rewind"), (void **) &class_type->iterator_funcs.zf_rewind);
254 zend_hash_find(&class_type->function_table, "valid", sizeof("valid"), (void **) &class_type
[all...]
H A Dspl_iterators.c907 static zend_object_value spl_RecursiveIteratorIterator_new_ex(zend_class_entry *class_type, int init_prefix TSRMLS_DC) argument
925 zend_object_std_init(&intern->std, class_type TSRMLS_CC);
926 zend_hash_copy(intern->std.properties, &class_type->default_properties, (copy_ctor_func_t) zval_property_ctor, (void *) &tmp, sizeof(zval *));
935 static zend_object_value spl_RecursiveIteratorIterator_new(zend_class_entry *class_type TSRMLS_DC)
937 return spl_RecursiveIteratorIterator_new_ex(class_type, 0 TSRMLS_CC);
942 static zend_object_value spl_RecursiveTreeIterator_new(zend_class_entry *class_type TSRMLS_DC)
944 return spl_RecursiveIteratorIterator_new_ex(class_type, 1 TSRMLS_CC);
1270 static int spl_dual_it_gets_implemented(zend_class_entry *interface, zend_class_entry *class_type TSRMLS_DC)
1272 class_type->iterator_funcs.zf_valid = NULL;
1273 class_type
[all...]
H A Dspl_observer.c198 static zend_object_value spl_object_storage_new_ex(zend_class_entry *class_type, spl_SplObjectStorage **obj, zval *orig TSRMLS_DC) /* {{{ */ argument
208 zend_object_std_init(&intern->std, class_type TSRMLS_CC);
209 zend_hash_copy(intern->std.properties, &class_type->default_properties, (copy_ctor_func_t) zval_property_ctor, (void *) &tmp, sizeof(zval *));
370 static zend_object_value spl_SplObjectStorage_new(zend_class_entry *class_type TSRMLS_DC)
373 return spl_object_storage_new_ex(class_type, &tmp, NULL TSRMLS_CC);
/PHP_5_3/ext/sqlite/
H A Dsqlite.c1160 static void sqlite_object_new(zend_class_entry *class_type, zend_object_handlers *handlers, zend_object_value *retval TSRMLS_DC) argument
1168 zend_object_std_init(&intern->std, class_type TSRMLS_CC);
1169 zend_hash_copy(intern->std.properties, &class_type->default_properties, (copy_ctor_func_t) zval_property_ctor, (void *) &tmp, sizeof(zval *));
1175 static zend_object_value sqlite_object_new_db(zend_class_entry *class_type TSRMLS_DC)
1179 sqlite_object_new(class_type, &sqlite_object_handlers_db, &retval TSRMLS_CC);
1183 static zend_object_value sqlite_object_new_query(zend_class_entry *class_type TSRMLS_DC)
1187 sqlite_object_new(class_type, &sqlite_object_handlers_query, &retval TSRMLS_CC);
1191 static zend_object_value sqlite_object_new_ub_query(zend_class_entry *class_type TSRMLS_DC)
1195 sqlite_object_new(class_type, &sqlite_object_handlers_ub_query, &retval TSRMLS_CC);
1199 static zend_object_value sqlite_object_new_exception(zend_class_entry *class_type TSRMLS_D
[all...]
/PHP_5_3/ext/tidy/
H A Dtidy.c680 static void tidy_object_new(zend_class_entry *class_type, zend_object_handlers *handlers, argument
688 zend_object_std_init(&intern->std, class_type TSRMLS_CC);
690 zend_hash_copy(intern->std.properties, &class_type->default_properties, (copy_ctor_func_t) zval_property_ctor, (void *) &tmp, sizeof(zval *));
734 static zend_object_value tidy_object_new_node(zend_class_entry *class_type TSRMLS_DC)
737 tidy_object_new(class_type, &tidy_object_handlers_node, &retval, is_node TSRMLS_CC);
741 static zend_object_value tidy_object_new_doc(zend_class_entry *class_type TSRMLS_DC)
744 tidy_object_new(class_type, &tidy_object_handlers_doc, &retval, is_doc TSRMLS_CC);
/PHP_5_3/Zend/
H A Dzend_API.c1004 ZEND_API void zend_update_class_constants(zend_class_entry *class_type TSRMLS_DC) /* {{{ */
1006 if (!class_type->constants_updated || !CE_STATIC_MEMBERS(class_type)) {
1010 *scope = class_type;
1011 zend_hash_apply_with_argument(&class_type->constants_table, (apply_func_arg_t) zval_update_constant, (void*)1 TSRMLS_CC);
1012 zend_hash_apply_with_argument(&class_type->default_properties, (apply_func_arg_t) zval_update_constant, (void *) 1 TSRMLS_CC);
1014 if (!CE_STATIC_MEMBERS(class_type)) {
1018 if (class_type->parent) {
1019 zend_update_class_constants(class_type->parent TSRMLS_CC);
1022 ALLOC_HASHTABLE(CG(static_members)[(zend_intptr_t)(class_type
1069 _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.c132 static zend_object_value zend_default_exception_new_ex(zend_class_entry *class_type, int skip_top_traces TSRMLS_DC) /* {{{ */ argument
138 Z_OBJVAL(obj) = zend_objects_new(&object, class_type TSRMLS_CC);
143 zend_hash_copy(object->properties, &class_type->default_properties, zval_copy_property_ctor(class_type), (void *) &tmp, sizeof(zval *));
158 static zend_object_value zend_default_exception_new(zend_class_entry *class_type TSRMLS_DC) /* {{{ */
160 return zend_default_exception_new_ex(class_type, 0 TSRMLS_CC);
164 static zend_object_value zend_error_exception_new(zend_class_entry *class_type TSRMLS_DC) /* {{{ */
166 return zend_default_exception_new_ex(class_type, 2 TSRMLS_CC);
H A Dzend_compile.c1473 void zend_do_receive_arg(zend_uchar op, const znode *var, const znode *offset, const znode *initialization, znode *class_type, const znode *varname, zend_uchar pass_by_reference TSRMLS_DC) /* {{{ */ argument
1478 if (class_type->op_type == IS_CONST &&
1479 Z_TYPE(class_type->u.constant) == IS_STRING &&
1480 Z_STRLEN(class_type->u.constant) == 0) {
1482 zval_dtor(&class_type->u.constant);
1521 if (class_type->op_type != IS_UNUSED) {
1523 if (class_type->u.constant.type == IS_STRING) {
1524 if (ZEND_FETCH_CLASS_DEFAULT == zend_get_class_fetch_type(Z_STRVAL(class_type->u.constant), Z_STRLEN(class_type->u.constant))) {
1525 zend_resolve_class_name(class_type,
[all...]
H A Dzend_vm_def.h2918 char *class_type; variable
2921 class_type = "interface";
2923 class_type = "abstract class";
2925 zend_error_noreturn(E_ERROR, "Cannot instantiate %s %s", class_type, EX_T(opline->op1.u.var).class_entry->name);
H A Dzend_vm_execute.h475 char *class_type; local
478 class_type = "interface";
480 class_type = "abstract class";
482 zend_error_noreturn(E_ERROR, "Cannot instantiate %s %s", class_type, EX_T(opline->op1.u.var).class_entry->name);
[all...]
/PHP_5_3/ext/date/
H A Dphp_date.c571 static zend_object_value date_object_new_date(zend_class_entry *class_type TSRMLS_DC);
572 static zend_object_value date_object_new_timezone(zend_class_entry *class_type TSRMLS_DC);
573 static zend_object_value date_object_new_interval(zend_class_entry *class_type TSRMLS_DC);
574 static zend_object_value date_object_new_period(zend_class_entry *class_type TSRMLS_DC);
2048 static inline zend_object_value date_object_new_date_ex(zend_class_entry *class_type, php_date_obj **ptr TSRMLS_DC) argument
2060 zend_object_std_init(&intern->std, class_type TSRMLS_CC);
2061 zend_hash_copy(intern->std.properties, &class_type->default_properties, (copy_ctor_func_t) zval_property_ctor, (void *) &tmp, sizeof(zval *));
2069 static zend_object_value date_object_new_date(zend_class_entry *class_type TSRMLS_DC)
2071 return date_object_new_date_ex(class_type, NULL TSRMLS_CC);
2176 static inline zend_object_value date_object_new_timezone_ex(zend_class_entry *class_type, php_timezone_ob argument
2232 date_object_new_interval_ex(zend_class_entry *class_type, php_interval_obj **ptr TSRMLS_DC) argument
2314 date_object_new_period_ex(zend_class_entry *class_type, php_period_obj **ptr TSRMLS_DC) argument
[all...]

Completed in 111 milliseconds