From 7eed2e5b01fd872e724f5cfc18370a14e0311558 Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Mon, 30 Oct 2000 12:26:26 +0000 Subject: [PATCH] Make "H*" work --- ext/standard/pack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.50.1