Skip to content

Commit c8e7db9

Browse files
author
Andi Gutmans
committed
- Allow duality between Engine 1 & 2 using ZEND_STANDARD_CLASS_DEF_PTR
1 parent 0ee6525 commit c8e7db9

File tree

11 files changed

+11
-11
lines changed

11 files changed

+11
-11
lines changed

ext/fbsql/php_fbsql.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2687,7 +2687,7 @@ PHP_FUNCTION(fbsql_fetch_object)
26872687
{
26882688
php_fbsql_fetch_hash(INTERNAL_FUNCTION_PARAM_PASSTHRU, FBSQL_ASSOC);
26892689
if (Z_TYPE_P(return_value)==IS_ARRAY) {
2690-
object_and_properties_init(return_value, &zend_standard_class_def, Z_ARRVAL_P(return_value));
2690+
object_and_properties_init(return_value, ZEND_STANDARD_CLASS_DEF_PTR, Z_ARRVAL_P(return_value));
26912691
}
26922692
}
26932693
/* }}} */

ext/msql/php_msql.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,7 @@ PHP_FUNCTION(msql_fetch_object)
982982
{
983983
php_msql_fetch_hash(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0);
984984
if (Z_TYPE_P(return_value)==IS_ARRAY) {
985-
object_and_properties_init(return_value, &zend_standard_class_def, Z_ARRVAL_P(return_value));
985+
object_and_properties_init(return_value, ZEND_STANDARD_CLASS_DEF_PTR, Z_ARRVAL_P(return_value));
986986
}
987987
}
988988
/* }}} */

ext/mssql/php_mssql.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1271,7 +1271,7 @@ PHP_FUNCTION(mssql_fetch_object)
12711271
{
12721272
php_mssql_fetch_hash(INTERNAL_FUNCTION_PARAM_PASSTHRU, MSSQL_ASSOC);
12731273
if (Z_TYPE_P(return_value)==IS_ARRAY) {
1274-
object_and_properties_init(return_value, &zend_standard_class_def, Z_ARRVAL_P(return_value));
1274+
object_and_properties_init(return_value, ZEND_STANDARD_CLASS_DEF_PTR, Z_ARRVAL_P(return_value));
12751275
}
12761276
}
12771277

ext/mysql/php_mysql.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1661,7 +1661,7 @@ PHP_FUNCTION(mysql_fetch_object)
16611661
php_mysql_fetch_hash(INTERNAL_FUNCTION_PARAM_PASSTHRU, MYSQL_ASSOC, 2);
16621662

16631663
if (Z_TYPE_P(return_value) == IS_ARRAY) {
1664-
object_and_properties_init(return_value, &zend_standard_class_def, Z_ARRVAL_P(return_value));
1664+
object_and_properties_init(return_value, ZEND_STANDARD_CLASS_DEF_PTR, Z_ARRVAL_P(return_value));
16651665
}
16661666
}
16671667
/* }}} */

ext/odbc/php_odbc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1365,7 +1365,7 @@ PHP_FUNCTION(odbc_fetch_object)
13651365
{
13661366
php_odbc_fetch_hash(INTERNAL_FUNCTION_PARAM_PASSTHRU, ODBC_OBJECT);
13671367
if (Z_TYPE_P(return_value) == IS_ARRAY) {
1368-
object_and_properties_init(return_value, &zend_standard_class_def, Z_ARRVAL_P(return_value));
1368+
object_and_properties_init(return_value, ZEND_STANDARD_CLASS_DEF_PTR, Z_ARRVAL_P(return_value));
13691369
}
13701370
}
13711371
/* }}} */

ext/pgsql/pgsql.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1288,7 +1288,7 @@ PHP_FUNCTION(pg_fetch_object)
12881288
{
12891289
php_pgsql_fetch_hash(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0);
12901290
if (Z_TYPE_P(return_value)==IS_ARRAY) {
1291-
object_and_properties_init(return_value, &zend_standard_class_def, Z_ARRVAL_P(return_value));
1291+
object_and_properties_init(return_value, ZEND_STANDARD_CLASS_DEF_PTR, Z_ARRVAL_P(return_value));
12921292
}
12931293
}
12941294
/* }}} */

ext/standard/browscap.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ static void php_browscap_parser_cb(zval *arg1, zval *arg2, int callback_type, vo
116116
INIT_PZVAL(processed);
117117

118118
/* OBJECTS_FIXME */
119-
Z_OBJCE_P(current_section) = &zend_standard_class_def;
119+
Z_OBJCE_P(current_section) = ZEND_STANDARD_CLASS_DEF_PTR;
120120
Z_OBJPROP_P(current_section) = (HashTable *) malloc(sizeof(HashTable));
121121
Z_TYPE_P(current_section) = IS_OBJECT;
122122
zend_hash_init(Z_OBJPROP_P(current_section), 0, NULL, (dtor_func_t) browscap_entry_dtor, 1);

ext/standard/var_unserializer.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ yy26: yych = *++YYCURSOR;
458458
INIT_PZVAL(*rval);
459459

460460
return object_common2(UNSERIALIZE_PASSTHRU,
461-
object_common1(UNSERIALIZE_PASSTHRU, &zend_standard_class_def));
461+
object_common1(UNSERIALIZE_PASSTHRU, ZEND_STANDARD_CLASS_DEF_PTR));
462462
}
463463
yy28: yych = *++YYCURSOR;
464464
if(yych <= ','){

ext/standard/var_unserializer.re

+1-1
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER)
323323
INIT_PZVAL(*rval);
324324
325325
return object_common2(UNSERIALIZE_PASSTHRU,
326-
object_common1(UNSERIALIZE_PASSTHRU, &zend_standard_class_def));
326+
object_common1(UNSERIALIZE_PASSTHRU, ZEND_STANDARD_CLASS_DEF_PTR));
327327
}
328328
329329
"O:" iv ":" ["] {

ext/sybase/php_sybase_db.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,7 @@ PHP_FUNCTION(sybase_fetch_object)
10741074
if (Z_TYPE_P(return_value)==IS_ARRAY) {
10751075
Z_TYPE_P(return_value)=IS_OBJECT;
10761076
Z_OBJPROP_P(return_value) = Z_ARRVAL_P(return_value);
1077-
Z_OBJCE_P(return_value) = &zend_standard_class_def;
1077+
Z_OBJCE_P(return_value) = ZEND_STANDARD_CLASS_DEF_PTR;
10781078
}
10791079
}
10801080
/* }}} */

ext/sybase_ct/php_sybase_ct.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1411,7 +1411,7 @@ PHP_FUNCTION(sybase_fetch_object)
14111411
{
14121412
php_sybase_fetch_hash(INTERNAL_FUNCTION_PARAM_PASSTHRU);
14131413
if (Z_TYPE_P(return_value)==IS_ARRAY) {
1414-
object_and_properties_init(return_value, &zend_standard_class_def, Z_ARRVAL_P(return_value));
1414+
object_and_properties_init(return_value, ZEND_STANDARD_CLASS_DEF_PTR, Z_ARRVAL_P(return_value));
14151415
}
14161416
}
14171417
/* }}} */

0 commit comments

Comments
 (0)