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

/PHP_TRUNK/Zend/
H A Dzend_interfaces.c302 static int zend_implement_traversable(zend_class_entry *interface, zend_class_entry *class_type) argument
304 /* check that class_type is traversable at c-level or implements at least one of 'aggregate' and 'Iterator' */
307 if (class_type->get_iterator || (class_type->parent && class_type->parent->get_iterator)) {
310 for (i = 0; i < class_type->num_interfaces; i++) {
311 if (class_type->interfaces[i] == zend_ce_aggregate || class_type->interfaces[i] == zend_ce_iterator) {
316 class_type->name->val,
325 static int zend_implement_aggregate(zend_class_entry *interface, zend_class_entry *class_type) argument
362 zend_implement_iterator(zend_class_entry *interface, zend_class_entry *class_type) argument
393 zend_implement_arrayaccess(zend_class_entry *interface, zend_class_entry *class_type) argument
482 zend_implement_serializable(zend_class_entry *interface, zend_class_entry *class_type) argument
[all...]
H A Dzend_closures.c290 static zend_object *zend_closure_new(zend_class_entry *class_type) /* {{{ */ argument
297 zend_object_std_init(&closure->std, class_type);
H A Dzend_generators.c30 static zend_object *zend_generator_create(zend_class_entry *class_type);
198 static zend_object *zend_generator_create(zend_class_entry *class_type) /* {{{ */ argument
210 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
162 Z_OBJ(obj) = object = zend_objects_new(class_type);
165 object_properties_init(object, class_type);
174 if (EXPECTED(class_type != parse_exception_ce)) {
187 static zend_object *zend_default_exception_new(zend_class_entry *class_type) /* {{{ */ argument
189 return zend_default_exception_new_ex(class_type, 0);
193 static zend_object *zend_error_exception_new(zend_class_entry *class_type) /* {{{ */ argument
195 return zend_default_exception_new_ex(class_type, 2);
H A Dzend_API.c1137 ZEND_API void zend_update_class_constants(zend_class_entry *class_type) /* {{{ */ argument
1142 if (!CE_STATIC_MEMBERS(class_type) && class_type->default_static_members_count) {
1145 if (class_type->parent) {
1146 zend_update_class_constants(class_type->parent);
1149 CG(static_members_table)[(zend_intptr_t)(class_type->static_members_table)] = emalloc(sizeof(zval) * class_type->default_static_members_count);
1151 class_type->static_members_table = emalloc(sizeof(zval) * class_type->default_static_members_count);
1153 for (i = 0; i < class_type
1199 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
1291 object_properties_init(Z_OBJ_P(arg), class_type); local
2783 display_disabled_class(zend_class_entry *class_type) argument
[all...]
/PHP_TRUNK/ext/fileinfo/
H A Dfileinfo.c102 PHP_FILEINFO_API zend_object *finfo_objects_new(zend_class_entry *class_type) argument
106 intern = ecalloc(1, sizeof(finfo_object) + zend_object_properties_size(class_type));
108 zend_object_std_init(&intern->zo, class_type);
109 object_properties_init(&intern->zo, class_type);
/PHP_TRUNK/ext/spl/
H A Dspl_fixedarray.c217 static zend_object *spl_fixedarray_object_new_ex(zend_class_entry *class_type, zval *orig, int clone_orig) /* {{{ */ argument
220 zend_class_entry *parent = class_type;
225 zend_object_std_init(&intern->std, class_type);
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
309 spl_fixedarray_new(zend_class_entry *class_type) argument
[all...]
H A Dspl_heap.c383 static zend_object *spl_heap_object_new_ex(zend_class_entry *class_type, zval *orig, int clone_orig) /* {{{ */ argument
386 zend_class_entry *parent = class_type;
391 zend_object_std_init(&intern->std, class_type);
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) /* {{{ */ argument
468 return spl_heap_object_new_ex(class_type, NULL, 0);
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_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);
429 intern->fptr_offset_get = zend_hash_str_find_ptr(&class_type->function_table, "offsetget", sizeof("offsetget") - 1);
433 intern->fptr_offset_set = zend_hash_str_find_ptr(&class_type->function_table, "offsetset", sizeof("offsetset") - 1);
437 intern->fptr_offset_has = zend_hash_str_find_ptr(&class_type->function_table, "offsetexists", sizeof("offsetexists") - 1);
441 intern->fptr_offset_del = zend_hash_str_find_ptr(&class_type->function_table, "offsetunset", sizeof("offsetunset") - 1);
445 intern->fptr_count = zend_hash_str_find_ptr(&class_type->function_table, "count", sizeof("count") - 1);
455 static zend_object *spl_dllist_object_new(zend_class_entry *class_type) /* {{{ */ argument
[all...]
H A Dspl_iterators.c952 static zend_object *spl_RecursiveIteratorIterator_new_ex(zend_class_entry *class_type, int init_prefix) argument
956 intern = ecalloc(1, sizeof(spl_recursive_it_object) + zend_object_properties_size(class_type));
969 zend_object_std_init(&intern->std, class_type);
970 object_properties_init(&intern->std, class_type);
978 static zend_object *spl_RecursiveIteratorIterator_new(zend_class_entry *class_type) argument
980 return spl_RecursiveIteratorIterator_new_ex(class_type, 0);
985 static zend_object *spl_RecursiveTreeIterator_new(zend_class_entry *class_type) argument
987 return spl_RecursiveIteratorIterator_new_ex(class_type, 1);
1343 static int spl_dual_it_gets_implemented(zend_class_entry *interface, zend_class_entry *class_type) argument
1345 class_type
2363 spl_dual_it_new(zend_class_entry *class_type) argument
[all...]
H A Dspl_array.c180 static zend_object *spl_array_object_new_ex(zend_class_entry *class_type, zval *orig, int clone_orig) argument
183 zend_class_entry *parent = class_type;
188 zend_object_std_init(&intern->std, class_type);
189 object_properties_init(&intern->std, class_type);
221 class_type->get_iterator = spl_array_get_iterator;
234 intern->fptr_offset_get = zend_hash_str_find_ptr(&class_type->function_table, "offsetget", sizeof("offsetget") - 1);
238 intern->fptr_offset_set = zend_hash_str_find_ptr(&class_type->function_table, "offsetset", sizeof("offsetset") - 1);
242 intern->fptr_offset_has = zend_hash_str_find_ptr(&class_type->function_table, "offsetexists", sizeof("offsetexists") - 1);
246 intern->fptr_offset_del = zend_hash_str_find_ptr(&class_type->function_table, "offsetunset", sizeof("offsetunset") - 1);
250 intern->fptr_count = zend_hash_str_find_ptr(&class_type
280 spl_array_object_new(zend_class_entry *class_type) argument
[all...]
H A Dspl_observer.c261 static zend_object *spl_object_storage_new_ex(zend_class_entry *class_type, zval *orig) /* {{{ */ argument
264 zend_class_entry *parent = class_type;
270 zend_object_std_init(&intern->std, class_type);
271 object_properties_init(&intern->std, class_type);
284 if (class_type != spl_ce_SplObjectStorage) {
285 intern->fptr_get_hash = zend_hash_str_find_ptr(&class_type->function_table, "gethash", sizeof("gethash") - 1);
411 static zend_object *spl_SplObjectStorage_new(zend_class_entry *class_type) argument
413 return spl_object_storage_new_ex(class_type, NULL);
/PHP_TRUNK/ext/zip/
H A Dphp_zip.c1012 static zend_object *php_zip_object_new(zend_class_entry *class_type) /* {{{ */ argument
1016 intern = ecalloc(1, sizeof(ze_zip_object) + zend_object_properties_size(class_type));
1018 zend_object_std_init(&intern->zo, class_type);
1019 object_properties_init(&intern->zo, class_type);
/PHP_TRUNK/ext/sqlite3/
H A Dsqlite3.c2116 static zend_object *php_sqlite3_object_new(zend_class_entry *class_type) /* {{{ */ argument
2121 intern = ecalloc(1, sizeof(php_sqlite3_db_object) + zend_object_properties_size(class_type));
2126 zend_object_std_init(&intern->zo, class_type);
2127 object_properties_init(&intern->zo, class_type);
2135 static zend_object *php_sqlite3_stmt_object_new(zend_class_entry *class_type) /* {{{ */ argument
2140 intern = ecalloc(1, sizeof(php_sqlite3_stmt) + zend_object_properties_size(class_type));
2142 zend_object_std_init(&intern->zo, class_type);
2143 object_properties_init(&intern->zo, class_type);
2151 static zend_object *php_sqlite3_result_object_new(zend_class_entry *class_type) /* {{{ */ argument
2156 intern = ecalloc(1, sizeof(php_sqlite3_result) + zend_object_properties_size(class_type));
[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/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/reflection/
H A Dphp_reflection.c329 static zend_object *reflection_objects_new(zend_class_entry *class_type) /* {{{ */ argument
333 intern = ecalloc(1, sizeof(reflection_object) + zend_object_properties_size(class_type));
334 intern->zo.ce = class_type;
336 zend_object_std_init(&intern->zo, class_type);
337 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/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/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/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/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/date/
H A Dphp_date.c633 static zend_object *date_object_new_date(zend_class_entry *class_type);
634 static zend_object *date_object_new_timezone(zend_class_entry *class_type);
635 static zend_object *date_object_new_interval(zend_class_entry *class_type);
636 static zend_object *date_object_new_period(zend_class_entry *class_type);
2082 static inline zend_object *date_object_new_date_ex(zend_class_entry *class_type, int init_props) /* {{{ */ argument
2086 intern = ecalloc(1, sizeof(php_date_obj) + zend_object_properties_size(class_type));
2088 zend_object_std_init(&intern->std, class_type);
2090 object_properties_init(&intern->std, class_type);
2097 static zend_object *date_object_new_date(zend_class_entry *class_type) /* {{{ */ argument
2099 return date_object_new_date_ex(class_type,
2213 date_object_new_timezone_ex(zend_class_entry *class_type, int init_props) argument
2228 date_object_new_timezone(zend_class_entry *class_type) argument
2304 date_object_new_interval_ex(zend_class_entry *class_type, int init_props) argument
2319 date_object_new_interval(zend_class_entry *class_type) argument
2385 date_object_new_period_ex(zend_class_entry *class_type, int init_props) argument
2401 date_object_new_period(zend_class_entry *class_type) argument
[all...]

Completed in 78 milliseconds