From:             [EMAIL PROTECTED]
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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to