Date: 04/15/00
- Next message: Andi Gutmans: "[PHP-DEV] Re: [PHP4BETA] _very_ specific memory leak in Zend"
- Previous message: Andi Gutmans: "Re: [PHP-DEV] Segfault patch"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: sagawa <email protected>
Operating system: Windows 95
PHP version: 4.0 Release Candidate 1
PHP Bug Type: Misbehaving function
Bug description: unpack ("H4","AB") is not enough input?
<?php
print pack("H4", "4142"); // this prints "AB"
?>
So I do
<?php
$foo = unpack("H4", "AB");
?>
But, it appeared that
<b>Fatal error</b>: pack type H: not enough input, need 4, have 2 in <b>-</b> on line <b>2</b><br>
I can this by using bin2hex function to do this.
But Perl works without error,
is this right unpack() behavior?
Thank you.
Akihiro SAGAWA
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Andi Gutmans: "[PHP-DEV] Re: [PHP4BETA] _very_ specific memory leak in Zend"
- Previous message: Andi Gutmans: "Re: [PHP-DEV] Segfault patch"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

