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

/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/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.c450 PHP_MYSQLI_EXPORT(zend_object *) mysqli_objects_new(zend_class_entry *class_type) argument
456 intern = ecalloc(1, sizeof(mysqli_object) + zend_object_properties_size(class_type));
458 mysqli_base_class = class_type;
465 zend_object_std_init(&intern->zo, class_type);
466 object_properties_init(&intern->zo, class_type);
469 if (instanceof_function(class_type, mysqli_link_class_entry)) {
471 } else if (instanceof_function(class_type, mysqli_driver_class_entry)) { /* driver object */
473 } else if (instanceof_function(class_type, mysqli_stmt_class_entry)) { /* stmt object */
475 } else if (instanceof_function(class_type, mysqli_result_class_entry)) { /* result object */
477 } else if (instanceof_function(class_type, mysqli_warning_class_entr
[all...]
/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/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/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/spl/
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));
H A Dspl_iterators.c946 static zend_object *spl_RecursiveIteratorIterator_new_ex(zend_class_entry *class_type, int init_prefix) argument
950 intern = ecalloc(1, sizeof(spl_recursive_it_object) + zend_object_properties_size(class_type));
963 zend_object_std_init(&intern->std, class_type);
964 object_properties_init(&intern->std, class_type);
972 static zend_object *spl_RecursiveIteratorIterator_new(zend_class_entry *class_type) argument
974 return spl_RecursiveIteratorIterator_new_ex(class_type, 0);
979 static zend_object *spl_RecursiveTreeIterator_new(zend_class_entry *class_type) argument
981 return spl_RecursiveIteratorIterator_new_ex(class_type, 1);
1339 static int spl_dual_it_gets_implemented(zend_class_entry *interface, zend_class_entry *class_type) argument
1341 class_type
2347 spl_dual_it_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.c363 static zend_object *spl_heap_object_new_ex(zend_class_entry *class_type, zval *orig, int clone_orig) /* {{{ */ argument
366 zend_class_entry *parent = class_type;
371 zend_object_std_init(&intern->std, class_type);
372 object_properties_init(&intern->std, class_type);
431 intern->fptr_cmp = zend_hash_str_find_ptr(&class_type->function_table, "compare", sizeof("compare") - 1);
435 intern->fptr_count = zend_hash_str_find_ptr(&class_type->function_table, "count", sizeof("count") - 1);
445 static zend_object *spl_heap_object_new(zend_class_entry *class_type) /* {{{ */ argument
447 return spl_heap_object_new_ex(class_type, NULL, 0);
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_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_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...]
/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...]
/PHP_TRUNK/ext/fileinfo/
H A Dfileinfo.c103 PHP_FILEINFO_API zend_object *finfo_objects_new(zend_class_entry *class_type) argument
107 intern = ecalloc(1, sizeof(finfo_object) + zend_object_properties_size(class_type));
109 zend_object_std_init(&intern->zo, class_type);
110 object_properties_init(&intern->zo, 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/Zend/
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 class_type->name->val,
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_closures.c301 static zend_object *zend_closure_new(zend_class_entry *class_type) /* {{{ */ argument
308 zend_object_std_init(&closure->std, class_type);
H A Dzend_generators.c32 static zend_object *zend_generator_create(zend_class_entry *class_type);
221 static zend_object *zend_generator_create(zend_class_entry *class_type) /* {{{ */ argument
239 zend_object_std_init(&generator->std, class_type);
H A Dzend_exceptions.c156 static zend_object *zend_default_exception_new_ex(zend_class_entry *class_type, int skip_top_traces) /* {{{ */ argument
163 Z_OBJ(obj) = object = zend_objects_new(class_type);
166 object_properties_init(object, class_type);
175 if (EXPECTED(class_type != parse_exception_ce || !(filename = zend_get_compiled_filename()))) {
188 static zend_object *zend_default_exception_new(zend_class_entry *class_type) /* {{{ */ argument
190 return zend_default_exception_new_ex(class_type, 0);
194 static zend_object *zend_error_exception_new(zend_class_entry *class_type) /* {{{ */ argument
196 return zend_default_exception_new_ex(class_type, 2);
H A Dzend_API.c1121 ZEND_API int zend_update_class_constants(zend_class_entry *class_type) /* {{{ */ argument
1123 if (!(class_type->ce_flags & ZEND_ACC_CONSTANTS_UPDATED)) {
1124 class_type->ce_flags |= ZEND_ACC_CONSTANTS_UPDATED;
1126 if (class_type->parent) {
1127 if (UNEXPECTED(zend_update_class_constants(class_type->parent) != SUCCESS)) {
1132 if (!CE_STATIC_MEMBERS(class_type) && class_type->default_static_members_count) {
1138 CG(static_members_table)[(zend_intptr_t)(class_type->static_members_table)] = emalloc(sizeof(zval) * class_type->default_static_members_count);
1140 class_type
1204 object_properties_init(zend_object *object, zend_class_entry *class_type) argument
1281 _object_and_properties_init(zval *arg, zend_class_entry *class_type, HashTable *properties ZEND_FILE_LINE_DC) argument
1309 object_properties_init(Z_OBJ_P(arg), class_type); local
2802 display_disabled_class(zend_class_entry *class_type) argument
[all...]
/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);
2077 static inline zend_object *date_object_new_date_ex(zend_class_entry *class_type, int init_props) /* {{{ */ argument
2081 intern = ecalloc(1, sizeof(php_date_obj) + zend_object_properties_size(class_type));
2083 zend_object_std_init(&intern->std, class_type);
2085 object_properties_init(&intern->std, class_type);
2092 static zend_object *date_object_new_date(zend_class_entry *class_type) /* {{{ */ argument
2094 return date_object_new_date_ex(class_type,
2208 date_object_new_timezone_ex(zend_class_entry *class_type, int init_props) argument
2223 date_object_new_timezone(zend_class_entry *class_type) argument
2299 date_object_new_interval_ex(zend_class_entry *class_type, int init_props) argument
2314 date_object_new_interval(zend_class_entry *class_type) argument
2380 date_object_new_period_ex(zend_class_entry *class_type, int init_props) argument
2396 date_object_new_period(zend_class_entry *class_type) argument
[all...]
/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/ext/reflection/
H A Dphp_reflection.c333 static zend_object *reflection_objects_new(zend_class_entry *class_type) /* {{{ */ argument
337 intern = ecalloc(1, sizeof(reflection_object) + zend_object_properties_size(class_type));
338 intern->zo.ce = class_type;
340 zend_object_std_init(&intern->zo, class_type);
341 object_properties_init(&intern->zo, class_type);

Completed in 77 milliseconds