/PHP-5.6/Zend/ |
H A D | zend_interfaces.c | 299 if (class_type->get_iterator || (class_type->parent && class_type->parent->get_iterator)) { in zend_implement_traversable() 308 class_type->name, in zend_implement_traversable() 321 if (class_type->get_iterator) { in zend_implement_aggregate() 327 if (class_type->num_interfaces) { in zend_implement_aggregate() 331 class_type->name, in zend_implement_aggregate() 355 if (class_type->get_iterator && class_type->get_iterator != zend_user_it_get_iterator) { in zend_implement_iterator() 363 class_type->name, in zend_implement_iterator() 476 if (class_type->parent in zend_implement_serializable() 477 && (class_type->parent->serialize || class_type->parent->unserialize) in zend_implement_serializable() 481 if (!class_type->serialize) { in zend_implement_serializable() [all …]
|
H A D | zend_API.c | 1090 …if ((class_type->ce_flags & ZEND_ACC_CONSTANTS_UPDATED) == 0 || (!CE_STATIC_MEMBERS(class_type) &&… in zend_update_class_constants() 1095 *scope = class_type; in zend_update_class_constants() 1104 if (!CE_STATIC_MEMBERS(class_type) && class_type->default_static_members_count) { in zend_update_class_constants() 1107 if (class_type->parent) { in zend_update_class_constants() 1113 …class_type->static_members_table = emalloc(sizeof(zval*) * class_type->default_static_members_coun… in zend_update_class_constants() 1118 class_type->parent && in zend_update_class_constants() 1127 CE_STATIC_MEMBERS(class_type)[i] = q; in zend_update_class_constants() local 1135 CE_STATIC_MEMBERS(class_type)[i] = r; in zend_update_class_constants() local 1154 if (class_type->default_properties_count) { in object_properties_init() 1190 if (class_type->create_object == NULL) { in _object_and_properties_init() [all …]
|
H A D | zend_objects.h | 30 ZEND_API zend_object_value zend_objects_new(zend_object **object, zend_class_entry *class_type TSRM…
|
H A D | zend_exceptions.c | 155 static zend_object_value zend_default_exception_new_ex(zend_class_entry *class_type, int skip_top_t… in zend_default_exception_new_ex() argument 161 Z_OBJVAL(obj) = zend_objects_new(&object, class_type TSRMLS_CC); in zend_default_exception_new_ex() 164 object_properties_init(object, class_type); in zend_default_exception_new_ex() 179 static zend_object_value zend_default_exception_new(zend_class_entry *class_type TSRMLS_DC) /* {{{ … in zend_default_exception_new() 181 return zend_default_exception_new_ex(class_type, 0 TSRMLS_CC); in zend_default_exception_new() 185 static zend_object_value zend_error_exception_new(zend_class_entry *class_type TSRMLS_DC) /* {{{ */ in zend_error_exception_new() 187 return zend_default_exception_new_ex(class_type, 2 TSRMLS_CC); in zend_error_exception_new()
|
H A D | zend_objects.c | 141 ZEND_API zend_object_value zend_objects_new(zend_object **object, zend_class_entry *class_type TSRM… in zend_objects_new() 146 (*object)->ce = class_type; in zend_objects_new()
|
H A D | zend_generators.c | 30 static zend_object_value zend_generator_create(zend_class_entry *class_type TSRMLS_DC); 219 static zend_object_value zend_generator_create(zend_class_entry *class_type TSRMLS_DC) /* {{{ */ in zend_generator_create() 230 zend_object_std_init(&generator->std, class_type TSRMLS_CC); in zend_generator_create()
|
H A D | zend_closures.c | 282 static zend_object_value zend_closure_new(zend_class_entry *class_type TSRMLS_DC) /* {{{ */ in zend_closure_new() 290 zend_object_std_init(&closure->std, class_type TSRMLS_CC); in zend_closure_new()
|
H A D | zend.h | 512 zend_object_value (*create_object)(zend_class_entry *class_type TSRMLS_DC); 514 …int (*interface_gets_implemented)(zend_class_entry *iface, zend_class_entry *class_type TSRMLS_DC)…
|
/PHP-5.6/ext/spl/ |
H A D | spl_fixedarray.c | 227 zend_class_entry *parent = class_type; in spl_fixedarray_object_new_ex() 234 zend_object_std_init(&intern->std, class_type TSRMLS_CC); in spl_fixedarray_object_new_ex() 235 object_properties_init(&intern->std, class_type); in spl_fixedarray_object_new_ex() 256 class_type->get_iterator = spl_fixedarray_get_iterator; in spl_fixedarray_object_new_ex() 269 if (!class_type->iterator_funcs.zf_current) { in spl_fixedarray_object_new_ex() 270 …zend_hash_find(&class_type->function_table, "rewind", sizeof("rewind"), (void **) &class_type->i… in spl_fixedarray_object_new_ex() 271 …zend_hash_find(&class_type->function_table, "valid", sizeof("valid"), (void **) &class_type->i… in spl_fixedarray_object_new_ex() 272 …zend_hash_find(&class_type->function_table, "key", sizeof("key"), (void **) &class_type->i… in spl_fixedarray_object_new_ex() 273 …zend_hash_find(&class_type->function_table, "current", sizeof("current"), (void **) &class_type->i… in spl_fixedarray_object_new_ex() 274 …zend_hash_find(&class_type->function_table, "next", sizeof("next"), (void **) &class_type->i… in spl_fixedarray_object_new_ex() [all …]
|
H A D | spl_array.c | 172 zend_class_entry * parent = class_type; in spl_array_object_new_ex() 180 zend_object_std_init(&intern->std, class_type TSRMLS_CC); in spl_array_object_new_ex() 181 object_properties_init(&intern->std, class_type); in spl_array_object_new_ex() 217 class_type->get_iterator = spl_array_get_iterator; in spl_array_object_new_ex() 254 if (!class_type->iterator_funcs.zf_current) { in spl_array_object_new_ex() 255 …zend_hash_find(&class_type->function_table, "rewind", sizeof("rewind"), (void **) &class_type->i… in spl_array_object_new_ex() 256 …zend_hash_find(&class_type->function_table, "valid", sizeof("valid"), (void **) &class_type->i… in spl_array_object_new_ex() 257 …zend_hash_find(&class_type->function_table, "key", sizeof("key"), (void **) &class_type->i… in spl_array_object_new_ex() 258 …zend_hash_find(&class_type->function_table, "current", sizeof("current"), (void **) &class_type->i… in spl_array_object_new_ex() 259 …zend_hash_find(&class_type->function_table, "next", sizeof("next"), (void **) &class_type->i… in spl_array_object_new_ex() [all …]
|
H A D | spl_dllist.c | 367 static zend_object_value spl_dllist_object_new_ex(zend_class_entry *class_type, spl_dllist_object *… in spl_dllist_object_new_ex() argument 371 zend_class_entry *parent = class_type; in spl_dllist_object_new_ex() 378 zend_object_std_init(&intern->std, class_type TSRMLS_CC); in spl_dllist_object_new_ex() 379 object_properties_init(&intern->std, class_type); in spl_dllist_object_new_ex() 431 …zend_hash_find(&class_type->function_table, "offsetget", sizeof("offsetget"), (void **) &int… in spl_dllist_object_new_ex() 435 …zend_hash_find(&class_type->function_table, "offsetset", sizeof("offsetset"), (void **) &int… in spl_dllist_object_new_ex() 439 …zend_hash_find(&class_type->function_table, "offsetexists", sizeof("offsetexists"), (void **) &int… in spl_dllist_object_new_ex() 443 …zend_hash_find(&class_type->function_table, "offsetunset", sizeof("offsetunset"), (void **) &int… in spl_dllist_object_new_ex() 447 …zend_hash_find(&class_type->function_table, "count", sizeof("count"), (void **) &int… in spl_dllist_object_new_ex() 457 static zend_object_value spl_dllist_object_new(zend_class_entry *class_type TSRMLS_DC) /* {{{ */ in spl_dllist_object_new() [all …]
|
H A D | spl_heap.c | 385 static zend_object_value spl_heap_object_new_ex(zend_class_entry *class_type, spl_heap_object **obj… in spl_heap_object_new_ex() argument 389 zend_class_entry *parent = class_type; in spl_heap_object_new_ex() 396 zend_object_std_init(&intern->std, class_type TSRMLS_CC); in spl_heap_object_new_ex() 397 object_properties_init(&intern->std, class_type); in spl_heap_object_new_ex() 459 …zend_hash_find(&class_type->function_table, "compare", sizeof("compare"), (void **) &intern-… in spl_heap_object_new_ex() 463 …zend_hash_find(&class_type->function_table, "count", sizeof("count"), (void **) &int… in spl_heap_object_new_ex() 473 static zend_object_value spl_heap_object_new(zend_class_entry *class_type TSRMLS_DC) /* {{{ */ in spl_heap_object_new() 476 return spl_heap_object_new_ex(class_type, &tmp, NULL, 0 TSRMLS_CC); in spl_heap_object_new()
|
H A D | spl_observer.c | 260 static zend_object_value spl_object_storage_new_ex(zend_class_entry *class_type, spl_SplObjectStora… in spl_object_storage_new_ex() argument 264 zend_class_entry *parent = class_type; in spl_object_storage_new_ex() 270 zend_object_std_init(&intern->std, class_type TSRMLS_CC); in spl_object_storage_new_ex() 271 object_properties_init(&intern->std, class_type); in spl_object_storage_new_ex() 280 if (class_type != spl_ce_SplObjectStorage) { in spl_object_storage_new_ex() 281 …zend_hash_find(&class_type->function_table, "gethash", sizeof("gethash"), (void **) &intern-… in spl_object_storage_new_ex() 422 static zend_object_value spl_SplObjectStorage_new(zend_class_entry *class_type TSRMLS_DC) in spl_SplObjectStorage_new() 425 return spl_object_storage_new_ex(class_type, &tmp, NULL TSRMLS_CC); in spl_SplObjectStorage_new()
|
H A D | spl_functions.h | 26 typedef zend_object_value (*create_object_func_t)(zend_class_entry *class_type TSRMLS_DC);
|
H A D | spl_iterators.c | 962 zend_object_std_init(&intern->std, class_type TSRMLS_CC); in spl_RecursiveIteratorIterator_new_ex() 963 object_properties_init(&intern->std, class_type); in spl_RecursiveIteratorIterator_new_ex() 974 return spl_RecursiveIteratorIterator_new_ex(class_type, 0 TSRMLS_CC); in spl_RecursiveIteratorIterator_new() 1341 class_type->iterator_funcs.zf_valid = NULL; in spl_dual_it_gets_implemented() 1342 class_type->iterator_funcs.zf_current = NULL; in spl_dual_it_gets_implemented() 1343 class_type->iterator_funcs.zf_key = NULL; in spl_dual_it_gets_implemented() 1344 class_type->iterator_funcs.zf_next = NULL; in spl_dual_it_gets_implemented() 1345 class_type->iterator_funcs.zf_rewind = NULL; in spl_dual_it_gets_implemented() 1346 if (!class_type->iterator_funcs.funcs) { in spl_dual_it_gets_implemented() 2418 zend_object_std_init(&intern->std, class_type TSRMLS_CC); in spl_dual_it_new() [all …]
|
/PHP-5.6/ext/standard/ |
H A D | incomplete_class.c | 104 static zend_object_value php_create_incomplete_object(zend_class_entry *class_type TSRMLS_DC) in php_create_incomplete_object() 109 value = zend_objects_new(&object, class_type TSRMLS_CC); in php_create_incomplete_object() 112 object_properties_init(object, class_type); in php_create_incomplete_object()
|
/PHP-5.6/ext/dom/ |
H A D | php_dom.h | 99 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);
|
H A D | php_dom.c | 1143 static dom_object* dom_objects_set_class(zend_class_entry *class_type, zend_bool hash_copy TSRMLS_D… in dom_objects_set_class() argument 1148 if (instanceof_function(class_type, dom_xpath_class_entry TSRMLS_CC)) { in dom_objects_set_class() 1158 base_class = class_type; in dom_objects_set_class() 1165 zend_object_std_init(&intern->std, class_type TSRMLS_CC); in dom_objects_set_class() 1167 object_properties_init(&intern->std, class_type); in dom_objects_set_class() 1208 zend_object_value dom_objects_new(zend_class_entry *class_type TSRMLS_DC) in dom_objects_new() 1213 intern = dom_objects_set_class(class_type, 1 TSRMLS_CC); in dom_objects_new() 1225 zend_object_value dom_xpath_objects_new(zend_class_entry *class_type TSRMLS_DC) in dom_xpath_objects_new() 1230 intern = (dom_xpath_object *)dom_objects_set_class(class_type, 1 TSRMLS_CC); in dom_xpath_objects_new() 1287 zend_object_value dom_nnodemap_objects_new(zend_class_entry *class_type TSRMLS_DC) /* {{{ */ in dom_nnodemap_objects_new() [all …]
|
/PHP-5.6/ext/xsl/ |
H A D | php_xsl.c | 114 zend_object_value xsl_objects_new(zend_class_entry *class_type TSRMLS_DC) in xsl_objects_new() 132 zend_object_std_init(&intern->std, class_type TSRMLS_CC); in xsl_objects_new() 133 object_properties_init(&intern->std, class_type); in xsl_objects_new()
|
/PHP-5.6/ext/mysqli/ |
H A D | mysqli.c | 488 PHP_MYSQLI_EXPORT(zend_object_value) mysqli_objects_new(zend_class_entry *class_type TSRMLS_DC) in mysqli_objects_new() 500 mysqli_base_class = class_type; in mysqli_objects_new() 508 zend_object_std_init(&intern->zo, class_type TSRMLS_CC); in mysqli_objects_new() 509 object_properties_init(&intern->zo, class_type); in mysqli_objects_new() 512 if (instanceof_function(class_type, mysqli_link_class_entry TSRMLS_CC)) { in mysqli_objects_new() 514 …} else if (instanceof_function(class_type, mysqli_driver_class_entry TSRMLS_CC)) { /* driver objec… in mysqli_objects_new() 516 } else if (instanceof_function(class_type, mysqli_stmt_class_entry TSRMLS_CC)) { /* stmt object */ in mysqli_objects_new() 518 …} else if (instanceof_function(class_type, mysqli_result_class_entry TSRMLS_CC)) { /* result objec… in mysqli_objects_new() 520 …} else if (instanceof_function(class_type, mysqli_warning_class_entry TSRMLS_CC)) { /* warning obj… in mysqli_objects_new()
|
/PHP-5.6/ext/fileinfo/ |
H A D | fileinfo.c | 97 PHP_FILEINFO_API zend_object_value finfo_objects_new(zend_class_entry *class_type TSRMLS_DC) in finfo_objects_new() 105 zend_object_std_init(&intern->zo, class_type TSRMLS_CC); in finfo_objects_new() 106 object_properties_init(&intern->zo, class_type); in finfo_objects_new()
|
/PHP-5.6/ext/date/ |
H A D | php_date.c | 2133 zend_object_std_init(&intern->std, class_type TSRMLS_CC); in date_object_new_date_ex() 2134 object_properties_init(&intern->std, class_type); in date_object_new_date_ex() 2144 return date_object_new_date_ex(class_type, NULL TSRMLS_CC); in date_object_new_date() 2282 zend_object_std_init(&intern->std, class_type TSRMLS_CC); in date_object_new_timezone_ex() 2283 object_properties_init(&intern->std, class_type); in date_object_new_timezone_ex() 2293 return date_object_new_timezone_ex(class_type, NULL TSRMLS_CC); in date_object_new_timezone() 2381 zend_object_std_init(&intern->std, class_type TSRMLS_CC); in date_object_new_interval_ex() 2382 object_properties_init(&intern->std, class_type); in date_object_new_interval_ex() 2470 zend_object_std_init(&intern->std, class_type TSRMLS_CC); in date_object_new_period_ex() 2471 object_properties_init(&intern->std, class_type); in date_object_new_period_ex() [all …]
|
/PHP-5.6/ext/sqlite3/ |
H A D | sqlite3.c | 2204 static zend_object_value php_sqlite3_object_new(zend_class_entry *class_type TSRMLS_DC) /* {{{ */ 2217 zend_object_std_init(&intern->zo, class_type TSRMLS_CC); 2218 object_properties_init(&intern->zo, class_type); 2227 static zend_object_value php_sqlite3_stmt_object_new(zend_class_entry *class_type TSRMLS_DC) /* {{{… 2238 zend_object_std_init(&intern->zo, class_type TSRMLS_CC); 2239 object_properties_init(&intern->zo, class_type); 2248 static zend_object_value php_sqlite3_result_object_new(zend_class_entry *class_type TSRMLS_DC) /* {… 2261 zend_object_std_init(&intern->zo, class_type TSRMLS_CC); 2262 object_properties_init(&intern->zo, class_type);
|
/PHP-5.6/ext/tidy/ |
H A D | tidy.c | 674 static void tidy_object_new(zend_class_entry *class_type, zend_object_handlers *handlers, in tidy_object_new() argument 681 zend_object_std_init(&intern->std, class_type TSRMLS_CC); in tidy_object_new() 682 object_properties_init(&intern->std, class_type); in tidy_object_new() 718 static zend_object_value tidy_object_new_node(zend_class_entry *class_type TSRMLS_DC) in tidy_object_new_node() 721 tidy_object_new(class_type, &tidy_object_handlers_node, &retval, is_node TSRMLS_CC); in tidy_object_new_node() 725 static zend_object_value tidy_object_new_doc(zend_class_entry *class_type TSRMLS_DC) in tidy_object_new_doc() 728 tidy_object_new(class_type, &tidy_object_handlers_doc, &retval, is_doc TSRMLS_CC); in tidy_object_new_doc()
|
/PHP-5.6/ext/xmlreader/ |
H A D | php_xmlreader.c | 391 zend_object_value xmlreader_objects_new(zend_class_entry *class_type TSRMLS_DC) in xmlreader_objects_new() 403 zend_object_std_init(&intern->std, class_type TSRMLS_CC); in xmlreader_objects_new() 404 object_properties_init(&intern->std, class_type); in xmlreader_objects_new()
|