Re: [PHP-DEV] 5.NEXT Integer and String type modifications

2013-06-01 Thread Andrey Hristov
Hi, On 05/31/2013 10:03 PM, Anthony Ferrara wrote: Derick, In principle I think this is great thing to do. Not having a 64 bit type is annoying. I'm a bit curious on how this is going to work with all sorts of object wrappers that are now in place as workaround. And casting int64 to int32 nee

Re: [PHP-DEV] 5.NEXT Integer and String type modifications

2013-06-01 Thread Pierre Joye
On Fri, May 31, 2013 at 9:11 PM, Anthony Ferrara wrote: > Hello all, > > I want to start an idea thread (or at least get a conversation going) about > cleaning up the core integer data type and string lengths. Here's my ideas: > > 1. Change string length in the ZVAL from int to size_t > - http://

Re: [PHP-DEV] 5.NEXT Integer and String type modifications

2013-06-01 Thread Johannes Schlüter
Andrey Hristov wrote: >what about new type IS_LONG64, new field in union and new set of macros > >for this type. New extensions or rewritten extensions will use the new >macros. In 2-3 major versions, 5.8 for example, old macros will be >dropped. Enough time extensions to be ported to the new

Re: [PHP-DEV] 5.NEXT Integer and String type modifications

2013-06-01 Thread Johannes Schlüter
Anthony Ferrara wrote: >1. Change string length in the ZVAL from int to size_t > - http://lxr.php.net/xref/PHP_5_5/Zend/zend.h#321 This would be good but a lot of work and an hard to track engine change ... >2. Change long in the ZVAL (lval) to a system-determined 64bit fixed >size Didn't so