Re: 32 bit / 64 bit integer confusion
| From: | Pierre Joye | Date: | Fri, 10 Jun 2011 17:13:48 +0000 |
| Subject: | Re: 32 bit / 64 bit integer confusion | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-53251@lists.php.net to get a copy of this message | ||
On Fri, Jun 10, 2011 at 7:08 PM, John Crenshaw <johncrenshaw@priacta.com> wrote:
>
>> ITYM PHP uses "long" which unfortunately isn't long on windows.
>>
>> --
>> Stanislav Malyshev, Software Architect
>> SugarCRM: http://www.sugarcrm.com/
>> (408)454-6900 ext. 227
>
> This is not exactly correct. I think what you meant to say, is "long isn't the same
> size as a pointer on Windows".
One should never ever use long to store an address (pointer), just
like one should never use int or long to store the length of a buffer
(size_t).
Cheers,
--
Pierre
@pierrejoye | http://blog.thepimp.net | http://www.libgd.org