mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Port all internally used classes to use default_object_handlers
Signed-off-by: Bob Weinand <bobwei9@hotmail.com>
This commit is contained in:
parent
800c6672e5
commit
94ee4f9834
57 changed files with 108 additions and 115 deletions
|
@ -157,7 +157,6 @@ static zend_object *pgsql_link_create_object(zend_class_entry *class_type) {
|
|||
|
||||
zend_object_std_init(&intern->std, class_type);
|
||||
object_properties_init(&intern->std, class_type);
|
||||
intern->std.handlers = &pgsql_link_object_handlers;
|
||||
|
||||
return &intern->std;
|
||||
}
|
||||
|
@ -213,7 +212,6 @@ static zend_object *pgsql_result_create_object(zend_class_entry *class_type) {
|
|||
|
||||
zend_object_std_init(&intern->std, class_type);
|
||||
object_properties_init(&intern->std, class_type);
|
||||
intern->std.handlers = &pgsql_result_object_handlers;
|
||||
|
||||
return &intern->std;
|
||||
}
|
||||
|
@ -251,7 +249,6 @@ static zend_object *pgsql_lob_create_object(zend_class_entry *class_type) {
|
|||
|
||||
zend_object_std_init(&intern->std, class_type);
|
||||
object_properties_init(&intern->std, class_type);
|
||||
intern->std.handlers = &pgsql_lob_object_handlers;
|
||||
|
||||
return &intern->std;
|
||||
}
|
||||
|
@ -440,6 +437,7 @@ PHP_MINIT_FUNCTION(pgsql)
|
|||
|
||||
pgsql_link_ce = register_class_PgSql_Connection();
|
||||
pgsql_link_ce->create_object = pgsql_link_create_object;
|
||||
pgsql_link_ce->default_object_handlers = &pgsql_link_object_handlers;
|
||||
|
||||
memcpy(&pgsql_link_object_handlers, &std_object_handlers, sizeof(zend_object_handlers));
|
||||
pgsql_link_object_handlers.offset = XtOffsetOf(pgsql_link_handle, std);
|
||||
|
@ -450,6 +448,7 @@ PHP_MINIT_FUNCTION(pgsql)
|
|||
|
||||
pgsql_result_ce = register_class_PgSql_Result();
|
||||
pgsql_result_ce->create_object = pgsql_result_create_object;
|
||||
pgsql_result_ce->default_object_handlers = &pgsql_result_object_handlers;
|
||||
|
||||
memcpy(&pgsql_result_object_handlers, &std_object_handlers, sizeof(zend_object_handlers));
|
||||
pgsql_result_object_handlers.offset = XtOffsetOf(pgsql_result_handle, std);
|
||||
|
@ -460,6 +459,7 @@ PHP_MINIT_FUNCTION(pgsql)
|
|||
|
||||
pgsql_lob_ce = register_class_PgSql_Lob();
|
||||
pgsql_lob_ce->create_object = pgsql_lob_create_object;
|
||||
pgsql_lob_ce->default_object_handlers = &pgsql_lob_object_handlers;
|
||||
|
||||
memcpy(&pgsql_lob_object_handlers, &std_object_handlers, sizeof(zend_object_handlers));
|
||||
pgsql_lob_object_handlers.offset = XtOffsetOf(pgLofp, std);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue