From: Stanislav Malyshev Date: Mon, 30 Oct 2000 12:26:26 +0000 (+0000) Subject: Make "H*" work X-Git-Tag: php-4.0.4RC3~439 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7eed2e5b01fd872e724f5cfc18370a14e0311558;p=php Make "H*" work --- diff --git a/ext/standard/pack.c b/ext/standard/pack.c index 70b293f745..1025f884e9 100644 --- a/ext/standard/pack.c +++ b/ext/standard/pack.c @@ -558,7 +558,7 @@ PHP_FUNCTION(unpack) } case 'h': case 'H': { - size = arg/2; + size = (arg>0)?arg/2:arg; arg = 1; break; }