Re: [PHP-DEV] 64-bit PHP 4.3 (extensive long vs int problems)

2002-11-11 Thread Jason T. Greene
Why not just convert to using a long? Is there really a need to have 2 numeric types in the ini system? -Jason On Mon, 2002-11-11 at 00:20, Andi Gutmans wrote: Hi, How about changing the INI_ENTRY macros in debug mode to check if we're using UpdateInt/UpdateLong and if so check if

Re: [PHP-DEV] 64-bit PHP 4.3 (extensive long vs int problems)

2002-11-11 Thread Andi Gutmans
Well I assume lots of extension maintainers are using int's for all sorts of things. I'm not sure it's a good idea to try and catch every last place. In any case, even if we convert everything then my suggestion still stands because it'd help us catch places which aren't defined correctly.

Re: [PHP-DEV] 64-bit PHP 4.3 (extensive long vs int problems)

2002-11-11 Thread Dan Kalowsky
On Monday, November 11, 2002, at 02:39 PM, Andi Gutmans wrote: Well I assume lots of extension maintainers are using int's for all sorts of things. I'm not sure it's a good idea to try and catch every last place. In any case, even if we convert everything then my suggestion still stands

Re: [PHP-DEV] 64-bit PHP 4.3 (extensive long vs int problems)

2002-11-11 Thread Jason T. Greene
OK, though I wasn't arguing against your suggestion; I should have responded to the previous email in the thread. I was just pointing out that supporting these two may be overkill, but if its being used as a stop-gap, and since it doesn't really hurt that much, I suppose it really doesn't matter.

Re: [PHP-DEV] 64-bit PHP 4.3 (extensive long vs int problems)

2002-11-11 Thread Andi Gutmans
At 04:31 PM 11/11/2002 -0500, Dan Kalowsky wrote: On Monday, November 11, 2002, at 02:39 PM, Andi Gutmans wrote: Well I assume lots of extension maintainers are using int's for all sorts of things. I'm not sure it's a good idea to try and catch every last place. In any case, even if we

Re: [PHP-DEV] 64-bit PHP 4.3 (extensive long vs int problems)

2002-11-10 Thread Jason Greene
I started to work on fixing this problem, but have not had time to finish my work. I will try to get some time available to work on this sometime soon. Thanks, -Jason On Sat, 2002-11-09 at 22:25, James Devenish wrote: Hi, Referring to bug #20268 (Bus Error on startup), I have added some

Re: [PHP-DEV] 64-bit PHP 4.3 (extensive long vs int problems)

2002-11-10 Thread James Devenish
Hi, just some followup, including some general build problems and some information about failed tests at the bottom. I have included a set of patches against 4.3.0pre2 and against CVS HEAD for anyone who's interested in seeking some form of success with PHP 4.3 on a 64-bit platform. Someone will

Re: [PHP-DEV] 64-bit PHP 4.3 (extensive long vs int problems)

2002-11-10 Thread Andi Gutmans
Hi, How about changing the INI_ENTRY macros in debug mode to check if we're using UpdateInt/UpdateLong and if so check if sizeof(param) == sizeof(int/long)? This could help a lot. Andi At 01:12 PM 11/11/2002 +0800, James Devenish wrote: Hi, just some followup, including some general build

[PHP-DEV] 64-bit PHP 4.3 (extensive long vs int problems)

2002-11-09 Thread James Devenish
Hi, Referring to bug #20268 (Bus Error on startup), I have added some comments about show-stopping problems with PHP 4.3 with regards to its lack of 64-bit cleanliness. The main problems seem to be Zend's OnUpdateInt (which seems misnamed although it uses zend_atoi, it assigns to a long) and PHP