Skip to content

Commit 9a3d4e7

Browse files
author
Andi Gutmans
committed
- More ZE2 fixes
1 parent 0c09993 commit 9a3d4e7

File tree

6 files changed

+6
-13
lines changed

6 files changed

+6
-13
lines changed

ext/imap/php_imap.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ static int add_assoc_object(zval *arg, char *key, zval *tmp)
244244
HashTable *symtable;
245245

246246
if (arg->type == IS_OBJECT) {
247-
symtable = arg->value.obj.properties;
247+
symtable = Z_OBJPROP_P(arg);
248248
} else {
249249
symtable = arg->value.ht;
250250
}
@@ -259,7 +259,7 @@ static inline int add_next_index_object(zval *arg, zval *tmp)
259259
HashTable *symtable;
260260

261261
if (arg->type == IS_OBJECT) {
262-
symtable = arg->value.obj.properties;
262+
symtable = Z_OBJPROP_P(arg);
263263
} else {
264264
symtable = arg->value.ht;
265265
}

ext/mcal/php_mcal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ static int add_assoc_object(zval *arg, char *key, zval *tmp)
203203
HashTable *symtable;
204204

205205
if (arg->type == IS_OBJECT) {
206-
symtable = arg->value.obj.properties;
206+
symtable = Z_OBJPROP_P(arg);
207207
} else {
208208
symtable = arg->value.ht;
209209
}

ext/msql/php_msql.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -982,9 +982,7 @@ PHP_FUNCTION(msql_fetch_object)
982982
{
983983
php_msql_fetch_hash(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0);
984984
if (return_value->type==IS_ARRAY) {
985-
return_value->type=IS_OBJECT;
986-
return_value->value.obj.properties = return_value->value.ht;
987-
return_value->value.obj.ce = &zend_standard_class_def;
985+
object_and_properties_init(return_value, &zend_standard_class_def, return_value->value.ht);
988986
}
989987
}
990988
/* }}} */

ext/mssql/php_mssql.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,9 +1226,7 @@ PHP_FUNCTION(mssql_fetch_object)
12261226
{
12271227
php_mssql_fetch_hash(INTERNAL_FUNCTION_PARAM_PASSTHRU, MSSQL_ASSOC);
12281228
if (return_value->type==IS_ARRAY) {
1229-
return_value->type=IS_OBJECT;
1230-
return_value->value.obj.properties = return_value->value.ht;
1231-
return_value->value.obj.ce = &zend_standard_class_def;
1229+
object_and_properties_init(return_value, &zend_standard_class_def, return_value->value.ht);
12321230
}
12331231
}
12341232

ext/odbc/php_odbc.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1337,7 +1337,6 @@ static void php_odbc_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int result_type)
13371337
Fetch a result row as an object */
13381338
PHP_FUNCTION(odbc_fetch_object)
13391339
{
1340-
/* OBJECTS_FIXME */
13411340
php_odbc_fetch_hash(INTERNAL_FUNCTION_PARAM_PASSTHRU, ODBC_OBJECT);
13421341
if (Z_TYPE_P(return_value) == IS_ARRAY) {
13431342
object_and_properties_init(return_value, &zend_standard_class_def, return_value->value.ht);

ext/pgsql/pgsql.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,9 +1252,7 @@ PHP_FUNCTION(pg_fetch_object)
12521252
{
12531253
php_pgsql_fetch_hash(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0);
12541254
if (return_value->type==IS_ARRAY) {
1255-
return_value->type=IS_OBJECT;
1256-
return_value->value.obj.properties = return_value->value.ht;
1257-
return_value->value.obj.ce = &zend_standard_class_def;
1255+
object_and_properties_init(return_value, &zend_standard_class_def, return_value->value.ht);
12581256
}
12591257
}
12601258
/* }}} */

0 commit comments

Comments
 (0)