@@ -44,7 +44,7 @@ ZEND_API int zend_get_parameters(int ht, int param_count, ...)
44
44
TSRMLS_FETCH ();
45
45
46
46
p = EG (argument_stack ).top_element - 2 ;
47
- arg_count = (ulong ) * p ;
47
+ arg_count = (int )( zend_uintptr_t ) * p ;
48
48
49
49
if (param_count > arg_count ) {
50
50
return FAILURE ;
@@ -82,7 +82,7 @@ ZEND_API int _zend_get_parameters_array(int ht, int param_count, zval **argument
82
82
zval * param_ptr ;
83
83
84
84
p = EG (argument_stack ).top_element - 2 ;
85
- arg_count = (ulong ) * p ;
85
+ arg_count = (int )( zend_uintptr_t ) * p ;
86
86
87
87
if (param_count > arg_count ) {
88
88
return FAILURE ;
@@ -122,7 +122,7 @@ ZEND_API int zend_get_parameters_ex(int param_count, ...)
122
122
TSRMLS_FETCH ();
123
123
124
124
p = EG (argument_stack ).top_element - 2 ;
125
- arg_count = (ulong ) * p ;
125
+ arg_count = (int )( zend_uintptr_t ) * p ;
126
126
127
127
if (param_count > arg_count ) {
128
128
return FAILURE ;
@@ -145,7 +145,7 @@ ZEND_API int _zend_get_parameters_array_ex(int param_count, zval ***argument_arr
145
145
int arg_count ;
146
146
147
147
p = EG (argument_stack ).top_element - 2 ;
148
- arg_count = (ulong ) * p ;
148
+ arg_count = (int )( zend_uintptr_t ) * p ;
149
149
150
150
if (param_count > arg_count ) {
151
151
return FAILURE ;
@@ -187,7 +187,7 @@ ZEND_API int zend_copy_parameters_array(int param_count, zval *argument_array TS
187
187
int arg_count ;
188
188
189
189
p = EG (argument_stack ).top_element - 2 ;
190
- arg_count = (ulong ) * p ;
190
+ arg_count = (int )( zend_uintptr_t ) * p ;
191
191
192
192
if (param_count > arg_count ) {
193
193
return FAILURE ;
@@ -698,7 +698,7 @@ static int zend_parse_va_args(int num_args, char *type_spec, va_list *va, int fl
698
698
}
699
699
700
700
p = EG (argument_stack ).top_element - 2 ;
701
- arg_count = (ulong ) * p ;
701
+ arg_count = (int )( zend_uintptr_t ) * p ;
702
702
703
703
if (num_args > arg_count ) {
704
704
zend_error (E_WARNING , "%s(): could not obtain parameters for parsing" ,
@@ -878,7 +878,7 @@ ZEND_API void zend_update_class_constants(zend_class_entry *class_type TSRMLS_DC
878
878
zend_update_class_constants (class_type -> parent TSRMLS_CC );
879
879
}
880
880
#if ZTS
881
- ALLOC_HASHTABLE (CG (static_members )[(long )(class_type -> static_members )]);
881
+ ALLOC_HASHTABLE (CG (static_members )[(zend_intptr_t )(class_type -> static_members )]);
882
882
#else
883
883
ALLOC_HASHTABLE (class_type -> static_members );
884
884
#endif
0 commit comments