@@ -82,7 +82,7 @@ static int machine_endian_long_map[4];
82
82
static int big_endian_long_map [4 ];
83
83
static int little_endian_long_map [4 ];
84
84
85
- #if SIZEOF_LONG > 4
85
+ #if SIZEOF_ZEND_LONG > 4
86
86
/* Mappings of bytes from quads (64bit) for all endian environments */
87
87
static int machine_endian_longlong_map [8 ];
88
88
static int big_endian_longlong_map [8 ];
@@ -209,7 +209,7 @@ PHP_FUNCTION(pack)
209
209
case 'Q' :
210
210
case 'J' :
211
211
case 'P' :
212
- #if SIZEOF_LONG < 8
212
+ #if SIZEOF_ZEND_LONG < 8
213
213
efree (argv );
214
214
efree (formatcodes );
215
215
efree (formatargs );
@@ -298,7 +298,7 @@ PHP_FUNCTION(pack)
298
298
INC_OUTPUTPOS (arg ,4 ) /* 32 bit per arg */
299
299
break ;
300
300
301
- #if SIZEOF_LONG > 4
301
+ #if SIZEOF_ZEND_LONG > 4
302
302
case 'q' :
303
303
case 'Q' :
304
304
case 'J' :
@@ -457,7 +457,7 @@ PHP_FUNCTION(pack)
457
457
break ;
458
458
}
459
459
460
- #if SIZEOF_LONG > 4
460
+ #if SIZEOF_ZEND_LONG > 4
461
461
case 'q' :
462
462
case 'Q' :
463
463
case 'J' :
@@ -471,7 +471,7 @@ PHP_FUNCTION(pack)
471
471
}
472
472
473
473
while (arg -- > 0 ) {
474
- php_pack (argv [currentarg ++ ], 8 , map , & output [outputpos ]);
474
+ php_pack (& argv [currentarg ++ ], 8 , map , & output [outputpos ]);
475
475
outputpos += 8 ;
476
476
}
477
477
break ;
@@ -675,7 +675,7 @@ PHP_FUNCTION(unpack)
675
675
case 'Q' :
676
676
case 'J' :
677
677
case 'P' :
678
- #if SIZEOF_LONG > 4
678
+ #if SIZEOF_ZEND_LONG > 4
679
679
size = 8 ;
680
680
break ;
681
681
#else
@@ -907,7 +907,7 @@ PHP_FUNCTION(unpack)
907
907
break ;
908
908
}
909
909
910
- #if SIZEOF_LONG > 4
910
+ #if SIZEOF_ZEND_LONG > 4
911
911
case 'q' :
912
912
case 'Q' :
913
913
case 'J' :
@@ -1043,7 +1043,7 @@ PHP_MINIT_FUNCTION(pack)
1043
1043
little_endian_long_map [2 ] = 2 ;
1044
1044
little_endian_long_map [3 ] = 3 ;
1045
1045
1046
- #if SIZEOF_LONG > 4
1046
+ #if SIZEOF_ZEND_LONG > 4
1047
1047
machine_endian_longlong_map [0 ] = 0 ;
1048
1048
machine_endian_longlong_map [1 ] = 1 ;
1049
1049
machine_endian_longlong_map [2 ] = 2 ;
@@ -1102,7 +1102,7 @@ PHP_MINIT_FUNCTION(pack)
1102
1102
little_endian_long_map [2 ] = size - 3 ;
1103
1103
little_endian_long_map [3 ] = size - 4 ;
1104
1104
1105
- #if SIZEOF_LONG > 4
1105
+ #if SIZEOF_ZEND_LONG > 4
1106
1106
machine_endian_longlong_map [0 ] = size - 8 ;
1107
1107
machine_endian_longlong_map [1 ] = size - 7 ;
1108
1108
machine_endian_longlong_map [2 ] = size - 6 ;
0 commit comments