Fwd: [PHP-DEV] pack()/unpack()
| From: | Andi Gutmans | Date: | Sat, 24 Feb 2001 21:22:06 +0000 |
| Subject: | Fwd: [PHP-DEV] pack()/unpack() | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-47421@lists.php.net to get a copy of this message | ||
No one answered me on this one.
Any idea if there's a reason not to use htonl() and friends in pack()?
Is anyone using it here?
Andi
Date: Thu, 22 Feb 2001 20:48:46 +0200 To: Chris Schneider <cschneid@relog.ch> From: Andi Gutmans <andi@zend.com> Cc: php-dev@lists.php.net Subject: [PHP-DEV] pack()/unpack() It seems like pack()/unpack() has it's own endianess code instead of using htonl(), htons(). Is there a reason for this? It would be nice to fix this for 4.0.5 because right now if you use pack() on Linux and unpack() on Solaris it doesn't quite work. It seems to me as if fixing this shouldn't be too hard but of course it would be best for the original author (Chris) to dive back into his code :) Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net