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

/PHP_TRUNK/ext/xmlreader/
H A Dphp_xmlreader.c385 zend_object *xmlreader_objects_new(zend_class_entry *class_type) argument
389 intern = ecalloc(1, sizeof(xmlreader_object) + zend_object_properties_size(class_type));
390 zend_object_std_init(&intern->std, class_type);
391 object_properties_init(&intern->std, class_type);
/PHP_TRUNK/ext/xsl/
H A Dphp_xsl.c107 zend_object *xsl_objects_new(zend_class_entry *class_type) argument
111 intern = ecalloc(1, sizeof(xsl_object) + zend_object_properties_size(class_type));
114 zend_object_std_init(&intern->std, class_type);
115 object_properties_init(&intern->std, class_type);
/PHP_TRUNK/ext/xmlwriter/
H A Dphp_xmlwriter.c140 static zend_object *xmlwriter_object_new(zend_class_entry *class_type) argument
144 intern = ecalloc(1, sizeof(ze_xmlwriter_object) + zend_object_properties_size(class_type));
145 zend_object_std_init(&intern->std, class_type);
146 object_properties_init(&intern->std, class_type);
/PHP_TRUNK/ext/fileinfo/
H A Dfileinfo.c99 PHP_FILEINFO_API zend_object *finfo_objects_new(zend_class_entry *class_type) argument
103 intern = ecalloc(1, sizeof(finfo_object) + zend_object_properties_size(class_type));
105 zend_object_std_init(&intern->zo, class_type);
106 object_properties_init(&intern->zo, class_type);
/PHP_TRUNK/ext/date/
H A Dphp_date.c628 static zend_object *date_object_new_date(zend_class_entry *class_type);
629 static zend_object *date_object_new_timezone(zend_class_entry *class_type);
630 static zend_object *date_object_new_interval(zend_class_entry *class_type);
631 static zend_object *date_object_new_period(zend_class_entry *class_type);
2081 static inline zend_object *date_object_new_date_ex(zend_class_entry *class_type, int init_props) /* {{{ */ argument
2085 intern = ecalloc(1, sizeof(php_date_obj) + zend_object_properties_size(class_type));
2087 zend_object_std_init(&intern->std, class_type);
2089 object_properties_init(&intern->std, class_type);
2096 static zend_object *date_object_new_date(zend_class_entry *class_type) /* {{{ */ argument
2098 return date_object_new_date_ex(class_type,
2212 date_object_new_timezone_ex(zend_class_entry *class_type, int init_props) argument
2227 date_object_new_timezone(zend_class_entry *class_type) argument
2303 date_object_new_interval_ex(zend_class_entry *class_type, int init_props) argument
2318 date_object_new_interval(zend_class_entry *class_type) argument
2384 date_object_new_period_ex(zend_class_entry *class_type, int init_props) argument
2400 date_object_new_period(zend_class_entry *class_type) argument
[all...]
/PHP_TRUNK/ext/standard/
H A Dincomplete_class.c102 static zend_object *php_create_incomplete_object(zend_class_entry *class_type) argument
106 object = zend_objects_new( class_type);
109 object_properties_init(object, class_type);
/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) argument
678 intern = ecalloc(1, sizeof(PHPTidyObj) + zend_object_properties_size(class_type));
679 zend_object_std_init(&intern->std, class_type);
680 object_properties_init(&intern->std, class_type);
717 static zend_object *tidy_object_new_node(zend_class_entry *class_type) argument
719 return tidy_object_new(class_type, &tidy_object_handlers_node, is_node);
722 static zend_object *tidy_object_new_doc(zend_class_entry *class_type) argument
724 return tidy_object_new(class_type, &tidy_object_handlers_doc, is_doc);
/PHP_TRUNK/ext/zip/
H A Dphp_zip.c1021 static zend_object *php_zip_object_new(zend_class_entry *class_type) /* {{{ */ argument
1025 intern = ecalloc(1, sizeof(ze_zip_object) + zend_object_properties_size(class_type));
1027 zend_object_std_init(&intern->zo, class_type);
1028 object_properties_init(&intern->zo, class_type);
/PHP_TRUNK/Zend/
H A Dzend_API.c1112 ZEND_API int zend_update_class_constants(zend_class_entry *class_type) /* {{{ */ argument
1114 if (!(class_type->ce_flags & ZEND_ACC_CONSTANTS_UPDATED)) {
1115 class_type->ce_flags |= ZEND_ACC_CONSTANTS_UPDATED;
1117 if (class_type->parent) {
1118 if (UNEXPECTED(zend_update_class_constants(class_type->parent) != SUCCESS)) {
1123 if (!CE_STATIC_MEMBERS(class_type) && class_type->default_static_members_count) {
1129 CG(static_members_table)[(zend_intptr_t)(class_type->static_members_table)] = emalloc(sizeof(zval) * class_type->default_static_members_count);
1131 class_type
1195 object_properties_init(zend_object *object, zend_class_entry *class_type) argument
1272 _object_and_properties_init(zval *arg, zend_class_entry *class_type, HashTable *properties ZEND_FILE_LINE_DC) argument
1300 object_properties_init(Z_OBJ_P(arg), class_type); local
2793 display_disabled_class(zend_class_entry *class_type) argument
[all...]
H A Dzend_closures.c332 static zend_object *zend_closure_new(zend_class_entry *class_type) /* {{{ */ argument
339 zend_object_std_init(&closure->std, class_type);
H A Dzend_interfaces.c306 static int zend_implement_traversable(zend_class_entry *interface, zend_class_entry *class_type) argument
308 /* check that class_type is traversable at c-level or implements at least one of 'aggregate' and 'Iterator' */
311 if (class_type->get_iterator || (class_type->parent && class_type->parent->get_iterator)) {
314 for (i = 0; i < class_type->num_interfaces; i++) {
315 if (class_type->interfaces[i] == zend_ce_aggregate || class_type->interfaces[i] == zend_ce_iterator) {
320 ZSTR_VAL(class_type->name),
329 static int zend_implement_aggregate(zend_class_entry *interface, zend_class_entry *class_type) argument
366 zend_implement_iterator(zend_class_entry *interface, zend_class_entry *class_type) argument
397 zend_implement_arrayaccess(zend_class_entry *interface, zend_class_entry *class_type) argument
488 zend_implement_serializable(zend_class_entry *interface, zend_class_entry *class_type) argument
[all...]
H A Dzend_exceptions.c47 static int zend_implement_throwable(zend_class_entry *interface, zend_class_entry *class_type) argument
49 if (instanceof_function(class_type, zend_ce_exception) || instanceof_function(class_type, zend_ce_error)) {
53 ZSTR_VAL(class_type->name),
187 static zend_object *zend_default_exception_new_ex(zend_class_entry *class_type, int skip_top_traces) /* {{{ */ argument
195 Z_OBJ(obj) = object = zend_objects_new(class_type);
198 object_properties_init(object, class_type);
209 if (EXPECTED(class_type != zend_ce_parse_error || !(filename = zend_get_compiled_filename()))) {
222 static zend_object *zend_default_exception_new(zend_class_entry *class_type) /* {{{ */ argument
224 return zend_default_exception_new_ex(class_type,
228 zend_error_exception_new(zend_class_entry *class_type) argument
[all...]
H A Dzend_generators.c32 static zend_object *zend_generator_create(zend_class_entry *class_type);
202 static zend_object *zend_generator_create(zend_class_entry *class_type) /* {{{ */ argument
220 zend_object_std_init(&generator->std, class_type);
/PHP_TRUNK/ext/spl/
H A Dspl_array.c143 static zend_object *spl_array_object_new_ex(zend_class_entry *class_type, zval *orig, int clone_orig) argument
146 zend_class_entry *parent = class_type;
151 zend_object_std_init(&intern->std, class_type);
152 object_properties_init(&intern->std, class_type);
182 class_type->get_iterator = spl_array_get_iterator;
195 intern->fptr_offset_get = zend_hash_str_find_ptr(&class_type->function_table, "offsetget", sizeof("offsetget") - 1);
199 intern->fptr_offset_set = zend_hash_str_find_ptr(&class_type->function_table, "offsetset", sizeof("offsetset") - 1);
203 intern->fptr_offset_has = zend_hash_str_find_ptr(&class_type->function_table, "offsetexists", sizeof("offsetexists") - 1);
207 intern->fptr_offset_del = zend_hash_str_find_ptr(&class_type->function_table, "offsetunset", sizeof("offsetunset") - 1);
211 intern->fptr_count = zend_hash_str_find_ptr(&class_type
241 spl_array_object_new(zend_class_entry *class_type) argument
[all...]
H A Dspl_dllist.c370 static zend_object *spl_dllist_object_new_ex(zend_class_entry *class_type, zval *orig, int clone_orig) /* {{{ */ argument
373 zend_class_entry *parent = class_type;
378 zend_object_std_init(&intern->std, class_type);
379 object_properties_init(&intern->std, class_type);
428 intern->fptr_offset_get = zend_hash_str_find_ptr(&class_type->function_table, "offsetget", sizeof("offsetget") - 1);
432 intern->fptr_offset_set = zend_hash_str_find_ptr(&class_type->function_table, "offsetset", sizeof("offsetset") - 1);
436 intern->fptr_offset_has = zend_hash_str_find_ptr(&class_type->function_table, "offsetexists", sizeof("offsetexists") - 1);
440 intern->fptr_offset_del = zend_hash_str_find_ptr(&class_type->function_table, "offsetunset", sizeof("offsetunset") - 1);
444 intern->fptr_count = zend_hash_str_find_ptr(&class_type->function_table, "count", sizeof("count") - 1);
454 static zend_object *spl_dllist_object_new(zend_class_entry *class_type) /* {{{ */ argument
[all...]
H A Dspl_fixedarray.c215 static zend_object *spl_fixedarray_object_new_ex(zend_class_entry *class_type, zval *orig, int clone_orig) /* {{{ */ argument
218 zend_class_entry *parent = class_type;
223 zend_object_std_init(&intern->std, class_type);
224 object_properties_init(&intern->std, class_type);
245 class_type->get_iterator = spl_fixedarray_get_iterator;
257 if (!class_type->iterator_funcs.zf_current) {
258 class_type->iterator_funcs.zf_rewind = zend_hash_str_find_ptr(&class_type->function_table, "rewind", sizeof("rewind") - 1);
259 class_type->iterator_funcs.zf_valid = zend_hash_str_find_ptr(&class_type
307 spl_fixedarray_new(zend_class_entry *class_type) argument
[all...]
H A Dspl_heap.c362 static zend_object *spl_heap_object_new_ex(zend_class_entry *class_type, zval *orig, int clone_orig) /* {{{ */ argument
365 zend_class_entry *parent = class_type;
370 zend_object_std_init(&intern->std, class_type);
371 object_properties_init(&intern->std, class_type);
430 intern->fptr_cmp = zend_hash_str_find_ptr(&class_type->function_table, "compare", sizeof("compare") - 1);
434 intern->fptr_count = zend_hash_str_find_ptr(&class_type->function_table, "count", sizeof("count") - 1);
444 static zend_object *spl_heap_object_new(zend_class_entry *class_type) /* {{{ */ argument
446 return spl_heap_object_new_ex(class_type, NULL, 0);
H A Dspl_iterators.c951 static zend_object *spl_RecursiveIteratorIterator_new_ex(zend_class_entry *class_type, int init_prefix) argument
955 intern = ecalloc(1, sizeof(spl_recursive_it_object) + zend_object_properties_size(class_type));
968 zend_object_std_init(&intern->std, class_type);
969 object_properties_init(&intern->std, class_type);
977 static zend_object *spl_RecursiveIteratorIterator_new(zend_class_entry *class_type) argument
979 return spl_RecursiveIteratorIterator_new_ex(class_type, 0);
984 static zend_object *spl_RecursiveTreeIterator_new(zend_class_entry *class_type) argument
986 return spl_RecursiveIteratorIterator_new_ex(class_type, 1);
1344 static int spl_dual_it_gets_implemented(zend_class_entry *interface, zend_class_entry *class_type) argument
1346 class_type
2361 spl_dual_it_new(zend_class_entry *class_type) argument
[all...]
H A Dspl_observer.c255 static zend_object *spl_object_storage_new_ex(zend_class_entry *class_type, zval *orig) /* {{{ */ argument
258 zend_class_entry *parent = class_type;
264 zend_object_std_init(&intern->std, class_type);
265 object_properties_init(&intern->std, class_type);
278 if (class_type != spl_ce_SplObjectStorage) {
279 intern->fptr_get_hash = zend_hash_str_find_ptr(&class_type->function_table, "gethash", sizeof("gethash") - 1);
401 static zend_object *spl_SplObjectStorage_new(zend_class_entry *class_type) argument
403 return spl_object_storage_new_ex(class_type, NULL);
H A Dspl_directory.c142 static zend_object *spl_filesystem_object_new_ex(zend_class_entry *class_type) argument
146 intern = ecalloc(1, sizeof(spl_filesystem_object) + zend_object_properties_size(class_type));
151 zend_object_std_init(&intern->std, class_type);
152 object_properties_init(&intern->std, class_type);
161 static zend_object *spl_filesystem_object_new(zend_class_entry *class_type) argument
163 return spl_filesystem_object_new_ex(class_type);
168 static zend_object *spl_filesystem_object_new_check(zend_class_entry *class_type) argument
170 spl_filesystem_object *ret = spl_filesystem_from_obj(spl_filesystem_object_new_ex(class_type));
/PHP_TRUNK/ext/dom/
H A Dphp_dom.c502 static dom_object* dom_objects_set_class(zend_class_entry *class_type, zend_bool hash_copy);
1071 static dom_object* dom_objects_set_class(zend_class_entry *class_type, zend_bool hash_copy) /* {{{ */ argument
1073 dom_object *intern = ecalloc(1, sizeof(dom_object) + zend_object_properties_size(class_type));
1075 zend_class_entry *base_class = class_type;
1082 zend_object_std_init(&intern->std, class_type);
1084 object_properties_init(&intern->std, class_type);
1092 zend_object *dom_objects_new(zend_class_entry *class_type) argument
1094 dom_object *intern = dom_objects_set_class(class_type, 1);
1101 /* {{{ zend_object_value dom_xpath_objects_new(zend_class_entry *class_type) */
1102 zend_object *dom_xpath_objects_new(zend_class_entry *class_type) argument
1154 dom_nnodemap_objects_new(zend_class_entry *class_type) argument
[all...]
/PHP_TRUNK/ext/mysqli/
H A Dmysqli.c445 PHP_MYSQLI_EXPORT(zend_object *) mysqli_objects_new(zend_class_entry *class_type) argument
451 intern = ecalloc(1, sizeof(mysqli_object) + zend_object_properties_size(class_type));
453 mysqli_base_class = class_type;
460 zend_object_std_init(&intern->zo, class_type);
461 object_properties_init(&intern->zo, class_type);
464 if (instanceof_function(class_type, mysqli_link_class_entry)) {
466 } else if (instanceof_function(class_type, mysqli_driver_class_entry)) { /* driver object */
468 } else if (instanceof_function(class_type, mysqli_stmt_class_entry)) { /* stmt object */
470 } else if (instanceof_function(class_type, mysqli_result_class_entry)) { /* result object */
472 } else if (instanceof_function(class_type, mysqli_warning_class_entr
[all...]
/PHP_TRUNK/ext/reflection/
H A Dphp_reflection.c347 static zend_object *reflection_objects_new(zend_class_entry *class_type) /* {{{ */ argument
351 intern = ecalloc(1, sizeof(reflection_object) + zend_object_properties_size(class_type));
352 intern->zo.ce = class_type;
354 zend_object_std_init(&intern->zo, class_type);
355 object_properties_init(&intern->zo, class_type);
/PHP_TRUNK/ext/snmp/
H A Dsnmp.c491 static zend_object *php_snmp_object_new(zend_class_entry *class_type) /* {{{ */ argument
496 intern = ecalloc(1, sizeof(php_snmp_object) + zend_object_properties_size(class_type));
498 zend_object_std_init(&intern->zo, class_type);
499 object_properties_init(&intern->zo, class_type);
/PHP_TRUNK/ext/sqlite3/
H A Dsqlite3.c2117 static zend_object *php_sqlite3_object_new(zend_class_entry *class_type) /* {{{ */ argument
2122 intern = ecalloc(1, sizeof(php_sqlite3_db_object) + zend_object_properties_size(class_type));
2127 zend_object_std_init(&intern->zo, class_type);
2128 object_properties_init(&intern->zo, class_type);
2136 static zend_object *php_sqlite3_stmt_object_new(zend_class_entry *class_type) /* {{{ */ argument
2141 intern = ecalloc(1, sizeof(php_sqlite3_stmt) + zend_object_properties_size(class_type));
2143 zend_object_std_init(&intern->zo, class_type);
2144 object_properties_init(&intern->zo, class_type);
2152 static zend_object *php_sqlite3_result_object_new(zend_class_entry *class_type) /* {{{ */ argument
2157 intern = ecalloc(1, sizeof(php_sqlite3_result) + zend_object_properties_size(class_type));
[all...]

Completed in 72 milliseconds