The problem with ints and longs is not their sizes, but the fact that
people use them interchangeably, their sizes being equal coincidentally
on 32-bit architectures.
Most of the bugs occur when pointers to these variables are passed as
arguments to variadic functions like zend_parse_parameters
Alexander Valyalkin wrote:
I propose to add several new types with EXACT bit length into this file:
---
typedef __int8 zend_int8;
typedef __int16 zend_int16;
typedef __int32 zend_int32;
typedef __int64 zend_int64;
typedef unsigned __int8 zend_uint8;
typedef unsigned __in
There is a header file with PHP type's definition:
/Zend/zend_types.h
It consists following types:
---
typedef unsigned char zend_bool;
typedef unsigned char zend_uchar;
typedef unsigned int zend_uint;
typedef unsigned long zend_ulong;
typedef unsigned short zend_ushort;
committed in ZE2. MFH not needed since this method in ZE1 uses
zend_get_parameters.
"Ard Biesheuvel" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Would anyone with Zend karma care to commit this ?
>
> --
> Ard
>
>
>
>
> Index: zend_builtin_functions.c
> ==