Any chance we could get bug http://bugs.php.net/bug.php?id=38770 fixed
before 5.2.5 is final? It looks like reverting this change would do it.
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/pack.c?r1=1.57.2.5.2.3&r2=1.57.2.5.2.4
Example:
Linux mtest1 2.6.20-gentoo-r8 #1 SMP Thu Jun 28 10:31:14 EDT 2007 x86_64
mtest1 cli # ./php -v
PHP 5.2.0 (cli) (built: Oct 23 2007 10:20:30)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies
mtest1 cli # ./php -a
Interactive mode enabled
<?php var_dump(unpack("N", pack("N", 2147483648))); ?>
array(1) {
[1]=>
int(2147483648)
}
mtest1 cli # ./php -v
PHP 5.2.5RC1 (cli) (built: Oct 23 2007 10:22:16)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
mtest1 cli # ./php -a
Interactive mode enabled
<?php var_dump(unpack("N", pack("N", 2147483648))); ?>
array(1) {
[1]=>
int(-2147483648)
}
--
Brian Moon
Senior Developer
------------------------------
http://dealnews.com/
It's good to be cheap =)
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php