Bug #14684: pack doesn't correctly handle zero integer values
| From: | someone at records dot ru | Date: | Mon, 24 Dec 2001 10:09:47 +0000 |
| Subject: | Bug #14684: pack doesn't correctly handle zero integer values | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-74905@lists.php.net to get a copy of this message | ||
From: someone@records.ru
Operating system: Linux 2.2.18
PHP version: 4.1.0
PHP Bug Type: Unknown/Other Function
Bug description: pack doesn't correctly handle zero integer values
<?= pack("L",0); ?>
On PHP 4.1.0, compiled as Apache shared module outputs string
"\x20\x20\x20\x20" (4 spaces). It is not "L"-specific issue. <?=
pack("C",0); ?> also outputs "\x20".
Any non-zero values are processed OK.
PHP 4.0.1pl2 and 4.0.6 seems to work correctly.
Configuration includes --with-apxs, --with-mysql (bundled), --with-bz2,
--without-xml and --without-pear.
--
Edit bug report at: http://bugs.php.net/?id=14684&edit=1