@@ -219,7 +219,7 @@ ZEND_API void convert_scalar_to_number(zval *op TSRMLS_DC) /* {{{ */
219
219
}
220
220
break ;
221
221
case IS_OBJECT :
222
- convert_to_int_base (op , 10 );
222
+ convert_to_long_base (op , 10 );
223
223
break ;
224
224
}
225
225
}
@@ -256,7 +256,7 @@ ZEND_API void convert_scalar_to_number(zval *op TSRMLS_DC) /* {{{ */
256
256
break; \
257
257
case IS_OBJECT: \
258
258
ZVAL_DUP(&(holder), op); \
259
- convert_to_int_base (&(holder), 10); \
259
+ convert_to_long_base (&(holder), 10); \
260
260
if (Z_TYPE(holder) == IS_LONG) { \
261
261
(op) = &(holder); \
262
262
} \
@@ -266,10 +266,10 @@ ZEND_API void convert_scalar_to_number(zval *op TSRMLS_DC) /* {{{ */
266
266
267
267
/* }}} */
268
268
269
- /* {{{ zendi_convert_to_int */
270
- #define zendi_convert_to_int (op , holder , result ) \
269
+ /* {{{ zendi_convert_to_long */
270
+ #define zendi_convert_to_long (op , holder , result ) \
271
271
if (op == result) { \
272
- convert_to_int (op); \
272
+ convert_to_long (op); \
273
273
} else if (Z_TYPE_P(op) != IS_LONG) { \
274
274
switch (Z_TYPE_P(op)) { \
275
275
case IS_NULL: \
@@ -290,7 +290,7 @@ ZEND_API void convert_scalar_to_number(zval *op TSRMLS_DC) /* {{{ */
290
290
break; \
291
291
case IS_OBJECT: \
292
292
ZVAL_DUP(&(holder), (op)); \
293
- convert_to_int_base (&(holder), 10); \
293
+ convert_to_long_base (&(holder), 10); \
294
294
break; \
295
295
case IS_RESOURCE: \
296
296
ZVAL_LONG(&holder, Z_RES_HANDLE_P(op)); \
@@ -368,15 +368,15 @@ ZEND_API void convert_scalar_to_number(zval *op TSRMLS_DC) /* {{{ */
368
368
369
369
/* }}} */
370
370
371
- ZEND_API void convert_to_int (zval * op ) /* {{{ */
371
+ ZEND_API void convert_to_long (zval * op ) /* {{{ */
372
372
{
373
373
if (Z_TYPE_P (op ) != IS_LONG ) {
374
- convert_to_int_base (op , 10 );
374
+ convert_to_long_base (op , 10 );
375
375
}
376
376
}
377
377
/* }}} */
378
378
379
- ZEND_API void convert_to_int_base (zval * op , int base ) /* {{{ */
379
+ ZEND_API void convert_to_long_base (zval * op , int base ) /* {{{ */
380
380
{
381
381
zend_long tmp ;
382
382
@@ -419,7 +419,7 @@ ZEND_API void convert_to_int_base(zval *op, int base) /* {{{ */
419
419
zval dst ;
420
420
TSRMLS_FETCH ();
421
421
422
- convert_object_to_type (op , & dst , IS_LONG , convert_to_int );
422
+ convert_object_to_type (op , & dst , IS_LONG , convert_to_long );
423
423
zval_dtor (op );
424
424
425
425
if (Z_TYPE (dst ) == IS_LONG ) {
@@ -736,7 +736,7 @@ ZEND_API void convert_to_object(zval *op) /* {{{ */
736
736
}
737
737
/* }}} */
738
738
739
- ZEND_API void multi_convert_to_int_ex (int argc , ...) /* {{{ */
739
+ ZEND_API void multi_convert_to_long_ex (int argc , ...) /* {{{ */
740
740
{
741
741
zval * arg ;
742
742
va_list ap ;
@@ -745,7 +745,7 @@ ZEND_API void multi_convert_to_int_ex(int argc, ...) /* {{{ */
745
745
746
746
while (argc -- ) {
747
747
arg = va_arg (ap , zval * );
748
- convert_to_int_ex (arg );
748
+ convert_to_long_ex (arg );
749
749
}
750
750
751
751
va_end (ap );
@@ -806,7 +806,7 @@ ZEND_API zend_long _zval_get_long_func(zval *op TSRMLS_DC) /* {{{ */
806
806
case IS_OBJECT :
807
807
{
808
808
zval dst ;
809
- convert_object_to_type (op , & dst , IS_LONG , convert_to_int );
809
+ convert_object_to_type (op , & dst , IS_LONG , convert_to_long );
810
810
if (Z_TYPE (dst ) == IS_LONG ) {
811
811
return Z_LVAL (dst );
812
812
} else {
@@ -1249,9 +1249,9 @@ ZEND_API int mod_function(zval *result, zval *op1, zval *op2 TSRMLS_DC) /* {{{ *
1249
1249
if (Z_TYPE_P (op1 ) != IS_LONG || Z_TYPE_P (op2 ) != IS_LONG ) {
1250
1250
ZEND_TRY_BINARY_OBJECT_OPERATION (ZEND_MOD );
1251
1251
1252
- zendi_convert_to_int (op1 , op1_copy , result );
1252
+ zendi_convert_to_long (op1 , op1_copy , result );
1253
1253
op1_lval = Z_LVAL_P (op1 );
1254
- zendi_convert_to_int (op2 , op2_copy , result );
1254
+ zendi_convert_to_long (op2 , op2_copy , result );
1255
1255
} else {
1256
1256
op1_lval = Z_LVAL_P (op1 );
1257
1257
}
@@ -1376,9 +1376,9 @@ ZEND_API int bitwise_or_function(zval *result, zval *op1, zval *op2 TSRMLS_DC) /
1376
1376
if (Z_TYPE_P (op1 ) != IS_LONG || Z_TYPE_P (op2 ) != IS_LONG ) {
1377
1377
ZEND_TRY_BINARY_OBJECT_OPERATION (ZEND_BW_OR );
1378
1378
1379
- zendi_convert_to_int (op1 , op1_copy , result );
1379
+ zendi_convert_to_long (op1 , op1_copy , result );
1380
1380
op1_lval = Z_LVAL_P (op1 );
1381
- zendi_convert_to_int (op2 , op2_copy , result );
1381
+ zendi_convert_to_long (op2 , op2_copy , result );
1382
1382
} else {
1383
1383
op1_lval = Z_LVAL_P (op1 );
1384
1384
}
@@ -1421,9 +1421,9 @@ ZEND_API int bitwise_and_function(zval *result, zval *op1, zval *op2 TSRMLS_DC)
1421
1421
if (Z_TYPE_P (op1 ) != IS_LONG || Z_TYPE_P (op2 ) != IS_LONG ) {
1422
1422
ZEND_TRY_BINARY_OBJECT_OPERATION (ZEND_BW_AND );
1423
1423
1424
- zendi_convert_to_int (op1 , op1_copy , result );
1424
+ zendi_convert_to_long (op1 , op1_copy , result );
1425
1425
op1_lval = Z_LVAL_P (op1 );
1426
- zendi_convert_to_int (op2 , op2_copy , result );
1426
+ zendi_convert_to_long (op2 , op2_copy , result );
1427
1427
} else {
1428
1428
op1_lval = Z_LVAL_P (op1 );
1429
1429
}
@@ -1466,9 +1466,9 @@ ZEND_API int bitwise_xor_function(zval *result, zval *op1, zval *op2 TSRMLS_DC)
1466
1466
if (Z_TYPE_P (op1 ) != IS_LONG || Z_TYPE_P (op2 ) != IS_LONG ) {
1467
1467
ZEND_TRY_BINARY_OBJECT_OPERATION (ZEND_BW_XOR );
1468
1468
1469
- zendi_convert_to_int (op1 , op1_copy , result );
1469
+ zendi_convert_to_long (op1 , op1_copy , result );
1470
1470
op1_lval = Z_LVAL_P (op1 );
1471
- zendi_convert_to_int (op2 , op2_copy , result );
1471
+ zendi_convert_to_long (op2 , op2_copy , result );
1472
1472
} else {
1473
1473
op1_lval = Z_LVAL_P (op1 );
1474
1474
}
@@ -1486,9 +1486,9 @@ ZEND_API int shift_left_function(zval *result, zval *op1, zval *op2 TSRMLS_DC) /
1486
1486
if (Z_TYPE_P (op1 ) != IS_LONG || Z_TYPE_P (op2 ) != IS_LONG ) {
1487
1487
ZEND_TRY_BINARY_OBJECT_OPERATION (ZEND_SL );
1488
1488
1489
- zendi_convert_to_int (op1 , op1_copy , result );
1489
+ zendi_convert_to_long (op1 , op1_copy , result );
1490
1490
op1_lval = Z_LVAL_P (op1 );
1491
- zendi_convert_to_int (op2 , op2_copy , result );
1491
+ zendi_convert_to_long (op2 , op2_copy , result );
1492
1492
} else {
1493
1493
op1_lval = Z_LVAL_P (op1 );
1494
1494
}
@@ -1506,9 +1506,9 @@ ZEND_API int shift_right_function(zval *result, zval *op1, zval *op2 TSRMLS_DC)
1506
1506
if (Z_TYPE_P (op1 ) != IS_LONG || Z_TYPE_P (op2 ) != IS_LONG ) {
1507
1507
ZEND_TRY_BINARY_OBJECT_OPERATION (ZEND_SR );
1508
1508
1509
- zendi_convert_to_int (op1 , op1_copy , result );
1509
+ zendi_convert_to_long (op1 , op1_copy , result );
1510
1510
op1_lval = Z_LVAL_P (op1 );
1511
- zendi_convert_to_int (op2 , op2_copy , result );
1511
+ zendi_convert_to_long (op2 , op2_copy , result );
1512
1512
} else {
1513
1513
op1_lval = Z_LVAL_P (op1 );
1514
1514
}
0 commit comments