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

12

/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...]
H A Dphp_dom.h99 zend_object_value dom_objects_new(zend_class_entry *class_type TSRMLS_DC);
100 zend_object_value dom_nnodemap_objects_new(zend_class_entry *class_type TSRMLS_DC);
102 zend_object_value dom_xpath_objects_new(zend_class_entry *class_type TSRMLS_DC);
/PHP_5_3/ext/fileinfo/
H A Dfileinfo.c97 PHP_FILEINFO_API zend_object_value finfo_objects_new(zend_class_entry *class_type TSRMLS_DC)
106 zend_object_std_init(&intern->zo, class_type TSRMLS_CC);
107 zend_hash_copy(intern->zo.properties, &class_type->default_properties, (copy_ctor_func_t) zval_property_ctor,(void *) &tmp, sizeof(zval *));
/PHP_5_3/ext/spl/
H A Dspl_functions.h26 typedef zend_object_value (*create_object_func_t)(zend_class_entry *class_type TSRMLS_DC);
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_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/sqlite3/
H A Dsqlite3.c2122 static zend_object_value php_sqlite3_object_new(zend_class_entry *class_type TSRMLS_DC) /* {{{ */
2136 zend_object_std_init(&intern->zo, class_type TSRMLS_CC);
2137 zend_hash_copy(intern->zo.properties, &class_type->default_properties, (copy_ctor_func_t) zval_property_ctor,(void *) &tmp, sizeof(zval *));
2146 static zend_object_value php_sqlite3_stmt_object_new(zend_class_entry *class_type TSRMLS_DC) /* {{{ */
2158 zend_object_std_init(&intern->zo, class_type TSRMLS_CC);
2159 zend_hash_copy(intern->zo.properties, &class_type->default_properties, (copy_ctor_func_t) zval_property_ctor,(void *) &tmp, sizeof(zval *));
2168 static zend_object_value php_sqlite3_result_object_new(zend_class_entry *class_type TSRMLS_DC) /* {{{ */
2182 zend_object_std_init(&intern->zo, class_type TSRMLS_CC);
2183 zend_hash_copy(intern->zo.properties, &class_type->default_properties, (copy_ctor_func_t) zval_property_ctor,(void *) &tmp, sizeof(zval *));
/PHP_5_3/ext/standard/
H A Dincomplete_class.c104 static zend_object_value php_create_incomplete_object(zend_class_entry *class_type TSRMLS_DC)
109 value = zend_objects_new(&object, class_type TSRMLS_CC);
/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/ext/xmlreader/
H A Dphp_xmlreader.c390 zend_object_value xmlreader_objects_new(zend_class_entry *class_type TSRMLS_DC)
403 zend_object_std_init(&intern->std, class_type TSRMLS_CC);
404 zend_hash_copy(intern->std.properties, &class_type->default_properties, (copy_ctor_func_t) zval_property_ctor, (void *) &tmp, sizeof(zval *));
/PHP_5_3/ext/xsl/
H A Dphp_xsl.c114 zend_object_value xsl_objects_new(zend_class_entry *class_type TSRMLS_DC)
131 zend_object_std_init(&intern->std, class_type TSRMLS_CC);
132 zend_hash_copy(intern->std.properties, &class_type->default_properties, (copy_ctor_func_t) zval_property_ctor, (void *) &tmp, sizeof(zval *));
/PHP_5_3/Zend/
H A Dzend.h451 zend_object_value (*create_object)(zend_class_entry *class_type TSRMLS_DC);
453 int (*interface_gets_implemented)(zend_class_entry *iface, zend_class_entry *class_type TSRMLS_DC); /* a class implements this interface */
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_closures.c194 static zend_object_value zend_closure_new(zend_class_entry *class_type TSRMLS_DC) /* {{{ */
202 zend_object_std_init(&closure->std, class_type TSRMLS_CC);
H A Dzend_interfaces.c320 static int zend_implement_traversable(zend_class_entry *interface, zend_class_entry *class_type TSRMLS_DC)
322 /* check that class_type is traversable at c-level or implements at least one of 'aggregate' and 'Iterator' */
325 if (class_type->get_iterator || (class_type->parent && class_type->parent->get_iterator)) {
328 for (i = 0; i < class_type->num_interfaces; i++) {
329 if (class_type->interfaces[i] == zend_ce_aggregate || class_type->interfaces[i] == zend_ce_iterator) {
334 class_type->name,
343 static int zend_implement_aggregate(zend_class_entry *interface, zend_class_entry *class_type TSRMLS_D
[all...]
H A Dzend_objects.c130 ZEND_API zend_object_value zend_objects_new(zend_object **object, zend_class_entry *class_type TSRMLS_DC)
135 (*object)->ce = class_type;
H A Dzend_objects.h30 ZEND_API zend_object_value zend_objects_new(zend_object **object, zend_class_entry *class_type TSRMLS_DC);
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);
/PHP_5_3/ext/mysqli/
H A Dmysqli.c483 PHP_MYSQLI_EXPORT(zend_object_value) mysqli_objects_new(zend_class_entry *class_type TSRMLS_DC)
496 mysqli_base_class = class_type;
504 zend_object_std_init(&intern->zo, class_type TSRMLS_CC);
505 zend_hash_copy(intern->zo.properties, &class_type->default_properties, (copy_ctor_func_t) zval_property_ctor,
509 if (instanceof_function(class_type, mysqli_link_class_entry TSRMLS_CC)) {
511 } else if (instanceof_function(class_type, mysqli_driver_class_entry TSRMLS_CC)) { /* driver object */
513 } else if (instanceof_function(class_type, mysqli_stmt_class_entry TSRMLS_CC)) { /* stmt object */
515 } else if (instanceof_function(class_type, mysqli_result_class_entry TSRMLS_CC)) { /* result object */
517 } else if (instanceof_function(class_type, mysqli_warning_class_entry TSRMLS_CC)) { /* warning object */
/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 80 milliseconds

12