@@ -1207,7 +1207,6 @@ ZEND_API void object_properties_init(zend_object *object, zend_class_entry *clas
1207
1207
int i ;
1208
1208
1209
1209
if (class_type -> default_properties_count ) {
1210
- //??? object->properties_table = emalloc(sizeof(zval*) * class_type->default_properties_count);
1211
1210
for (i = 0 ; i < class_type -> default_properties_count ; i ++ ) {
1212
1211
#if ZTS
1213
1212
ZVAL_DUP (& object -> properties_table [i ], & class_type -> default_properties_table [i ]);
@@ -1392,22 +1391,20 @@ ZEND_API int add_assoc_str_ex(zval *arg, const char *key, uint key_len, zend_str
1392
1391
}
1393
1392
/* }}} */
1394
1393
1395
- ZEND_API int add_assoc_string_ex (zval * arg , const char * key , uint key_len , char * str , int duplicate ) /* {{{ */
1394
+ ZEND_API int add_assoc_string_ex (zval * arg , const char * key , uint key_len , char * str ) /* {{{ */
1396
1395
{
1397
1396
zval * ret , tmp ;
1398
1397
1399
- //??? ZVAL_STRING(tmp, str, duplicate);
1400
1398
ZVAL_STRING (& tmp , str );
1401
1399
ret = zend_symtable_str_update (Z_ARRVAL_P (arg ), key , key_len , & tmp );
1402
1400
return ret ? SUCCESS : FAILURE ;
1403
1401
}
1404
1402
/* }}} */
1405
1403
1406
- ZEND_API int add_assoc_stringl_ex (zval * arg , const char * key , uint key_len , char * str , uint length , int duplicate ) /* {{{ */
1404
+ ZEND_API int add_assoc_stringl_ex (zval * arg , const char * key , uint key_len , char * str , uint length ) /* {{{ */
1407
1405
{
1408
1406
zval * ret , tmp ;
1409
1407
1410
- //??? ZVAL_STRINGL(tmp, str, length, duplicate);
1411
1408
ZVAL_STRINGL (& tmp , str , length );
1412
1409
ret = zend_symtable_str_update (Z_ARRVAL_P (arg ), key , key_len , & tmp );
1413
1410
return ret ? SUCCESS : FAILURE ;
@@ -1477,23 +1474,20 @@ ZEND_API int add_index_str(zval *arg, ulong index, zend_string *str) /* {{{ */
1477
1474
}
1478
1475
/* }}} */
1479
1476
1480
- ZEND_API int add_index_string (zval * arg , ulong index , const char * str , int duplicate ) /* {{{ */
1477
+ ZEND_API int add_index_string (zval * arg , ulong index , const char * str ) /* {{{ */
1481
1478
{
1482
1479
zval tmp ;
1483
1480
1484
- //??? ZVAL_STRING(tmp, str, duplicate);
1485
1481
ZVAL_STRING (& tmp , str );
1486
1482
return zend_hash_index_update (Z_ARRVAL_P (arg ), index , & tmp ) ? SUCCESS : FAILURE ;
1487
1483
}
1488
1484
/* }}} */
1489
1485
1490
- ZEND_API int add_index_stringl (zval * arg , ulong index , const char * str , uint length , int duplicate ) /* {{{ */
1486
+ ZEND_API int add_index_stringl (zval * arg , ulong index , const char * str , uint length ) /* {{{ */
1491
1487
{
1492
1488
zval tmp ;
1493
1489
1494
- //??? ZVAL_STRINGL(tmp, str, length, duplicate);
1495
1490
ZVAL_STRINGL (& tmp , str , length );
1496
-
1497
1491
return zend_hash_index_update (Z_ARRVAL_P (arg ), index , & tmp ) ? SUCCESS : FAILURE ;
1498
1492
}
1499
1493
/* }}} */
@@ -1558,21 +1552,19 @@ ZEND_API int add_next_index_str(zval *arg, zend_string *str) /* {{{ */
1558
1552
}
1559
1553
/* }}} */
1560
1554
1561
- ZEND_API int add_next_index_string (zval * arg , const char * str , int duplicate ) /* {{{ */
1555
+ ZEND_API int add_next_index_string (zval * arg , const char * str ) /* {{{ */
1562
1556
{
1563
1557
zval tmp ;
1564
1558
1565
- //??? ZVAL_STRING(&tmp, str, duplicate);
1566
1559
ZVAL_STRING (& tmp , str );
1567
1560
return zend_hash_next_index_insert (Z_ARRVAL_P (arg ), & tmp ) ? SUCCESS : FAILURE ;
1568
1561
}
1569
1562
/* }}} */
1570
1563
1571
- ZEND_API int add_next_index_stringl (zval * arg , const char * str , uint length , int duplicate ) /* {{{ */
1564
+ ZEND_API int add_next_index_stringl (zval * arg , const char * str , uint length ) /* {{{ */
1572
1565
{
1573
1566
zval tmp ;
1574
1567
1575
- //??? ZVAL_STRINGL(&tmp, str, length, duplicate);
1576
1568
ZVAL_STRINGL (& tmp , str , length );
1577
1569
return zend_hash_next_index_insert (Z_ARRVAL_P (arg ), & tmp ) ? SUCCESS : FAILURE ;
1578
1570
}
@@ -1584,22 +1576,20 @@ ZEND_API int add_next_index_zval(zval *arg, zval *value) /* {{{ */
1584
1576
}
1585
1577
/* }}} */
1586
1578
1587
- ZEND_API zval * add_get_assoc_string_ex (zval * arg , const char * key , uint key_len , const char * str , int duplicate ) /* {{{ */
1579
+ ZEND_API zval * add_get_assoc_string_ex (zval * arg , const char * key , uint key_len , const char * str ) /* {{{ */
1588
1580
{
1589
1581
zval tmp , * ret ;
1590
1582
1591
- //??? ZVAL_STRING(tmp, str, duplicate);
1592
1583
ZVAL_STRING (& tmp , str );
1593
1584
ret = zend_symtable_str_update (Z_ARRVAL_P (arg ), key , key_len , & tmp );
1594
1585
return ret ;
1595
1586
}
1596
1587
/* }}} */
1597
1588
1598
- ZEND_API zval * add_get_assoc_stringl_ex (zval * arg , const char * key , uint key_len , const char * str , uint length , int duplicate ) /* {{{ */
1589
+ ZEND_API zval * add_get_assoc_stringl_ex (zval * arg , const char * key , uint key_len , const char * str , uint length ) /* {{{ */
1599
1590
{
1600
1591
zval tmp , * ret ;
1601
1592
1602
- //??? ZVAL_STRING(tmp, str, length, duplicate);
1603
1593
ZVAL_STRINGL (& tmp , str , length );
1604
1594
ret = zend_symtable_str_update (Z_ARRVAL_P (arg ), key , key_len , & tmp );
1605
1595
return ret ;
@@ -1628,27 +1618,24 @@ ZEND_API zval *add_get_index_str(zval *arg, ulong index, zend_string *str) /* {{
1628
1618
{
1629
1619
zval tmp ;
1630
1620
1631
- //??? ZVAL_STRING(tmp, str, duplicate);
1632
1621
ZVAL_STR (& tmp , str );
1633
1622
return zend_hash_index_update (Z_ARRVAL_P (arg ), index , & tmp );
1634
1623
}
1635
1624
/* }}} */
1636
1625
1637
- ZEND_API zval * add_get_index_string (zval * arg , ulong index , const char * str , int duplicate ) /* {{{ */
1626
+ ZEND_API zval * add_get_index_string (zval * arg , ulong index , const char * str ) /* {{{ */
1638
1627
{
1639
1628
zval tmp ;
1640
1629
1641
- //??? ZVAL_STRING(tmp, str, duplicate);
1642
1630
ZVAL_STRING (& tmp , str );
1643
1631
return zend_hash_index_update (Z_ARRVAL_P (arg ), index , & tmp );
1644
1632
}
1645
1633
/* }}} */
1646
1634
1647
- ZEND_API zval * add_get_index_stringl (zval * arg , ulong index , const char * str , uint length , int duplicate ) /* {{{ */
1635
+ ZEND_API zval * add_get_index_stringl (zval * arg , ulong index , const char * str , uint length ) /* {{{ */
1648
1636
{
1649
1637
zval tmp ;
1650
1638
1651
- //??? ZVAL_STRINGL(tmp, str, length, duplicate);
1652
1639
ZVAL_STRINGL (& tmp , str , length );
1653
1640
return zend_hash_index_update (Z_ARRVAL_P (arg ), index , & tmp );
1654
1641
}
@@ -1762,12 +1749,11 @@ ZEND_API int add_property_double_ex(zval *arg, const char *key, uint key_len, do
1762
1749
}
1763
1750
/* }}} */
1764
1751
1765
- ZEND_API int add_property_string_ex (zval * arg , const char * key , uint key_len , const char * str , int duplicate TSRMLS_DC ) /* {{{ */
1752
+ ZEND_API int add_property_string_ex (zval * arg , const char * key , uint key_len , const char * str TSRMLS_DC ) /* {{{ */
1766
1753
{
1767
1754
zval tmp ;
1768
1755
zval z_key ;
1769
1756
1770
- //??? ZVAL_STRING(tmp, str, duplicate);
1771
1757
ZVAL_STRING (& tmp , str );
1772
1758
ZVAL_STRINGL (& z_key , key , key_len );
1773
1759
Z_OBJ_HANDLER_P (arg , write_property )(arg , & z_key , & tmp , 0 TSRMLS_CC );
@@ -1777,12 +1763,11 @@ ZEND_API int add_property_string_ex(zval *arg, const char *key, uint key_len, co
1777
1763
}
1778
1764
/* }}} */
1779
1765
1780
- ZEND_API int add_property_stringl_ex (zval * arg , const char * key , uint key_len , const char * str , uint length , int duplicate TSRMLS_DC ) /* {{{ */
1766
+ ZEND_API int add_property_stringl_ex (zval * arg , const char * key , uint key_len , const char * str , uint length TSRMLS_DC ) /* {{{ */
1781
1767
{
1782
1768
zval tmp ;
1783
1769
zval z_key ;
1784
1770
1785
- //??? ZVAL_STRINGL(tmp, str, length, duplicate);
1786
1771
ZVAL_STRINGL (& tmp , str , length );
1787
1772
ZVAL_STRINGL (& z_key , key , key_len );
1788
1773
Z_OBJ_HANDLER_P (arg , write_property )(arg , & z_key , & tmp , 0 TSRMLS_CC );
0 commit comments