Date: 02/27/99
- Next message: php-dev <email protected>: "[PHP-DEV] PHP 3.0 Bug Summary Report"
- Previous message: sas <email protected>: "Re: [PHP-DEV] PHP3 and 64-bit land"
- In reply to: sas <email protected>: "Re: [PHP-DEV] PHP3 and 64-bit land"
- Next in thread: sas <email protected>: "Re: [PHP-DEV] PHP3 and 64-bit land"
- Reply: sas <email protected>: "Re: [PHP-DEV] PHP3 and 64-bit land"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sat, 27 Feb 1999 sas <email protected> wrote:
> Well, I don't intend to change that specific part. It appears to me that
> index_ptr is just recycled.
As a general approach, PHP usually uses void pointers to store any
enumerated type (long, pointer, int, etc). There's one exception I can
think of, which is the hash, that uses unsigned integers to store the
numeric offsets.
Resources use hash tables to store themselves, and they usually use the
numeric indices. I think it's extremely safe to use 32-bit integers as
unique identifiers for 64-bit pointers, by simply casting them. You'd
have to be extremely unlucky to bump into a problem because of this data
loss. Your chances of winning the lottery are much much bigger.
Of course, you mustn't *store* pointers in integers, but that's something
different.
Zeev
-- ----------------------------------------------------- Zeev Suraski <zeev <email protected>> For a PGP public key, finger bourbon <email protected>-- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe <email protected> For help: php-dev-help <email protected>
- Next message: php-dev <email protected>: "[PHP-DEV] PHP 3.0 Bug Summary Report"
- Previous message: sas <email protected>: "Re: [PHP-DEV] PHP3 and 64-bit land"
- In reply to: sas <email protected>: "Re: [PHP-DEV] PHP3 and 64-bit land"
- Next in thread: sas <email protected>: "Re: [PHP-DEV] PHP3 and 64-bit land"
- Reply: sas <email protected>: "Re: [PHP-DEV] PHP3 and 64-bit land"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

