From c60e94596507d66027468aed8708e7baf990b325 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Fri, 27 May 2005 02:03:27 +0000 Subject: [PATCH] Fixed bug #33080 (missing MFH of a fix for bug #31465) --- ext/standard/pack.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/standard/pack.c b/ext/standard/pack.c index f7f630bc79..3f1c872944 100644 --- a/ext/standard/pack.c +++ b/ext/standard/pack.c @@ -824,7 +824,9 @@ PHP_FUNCTION(unpack) inputpos += size; if (inputpos < 0) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Type %c: outside of string", type); + if (size != -1) { /* only print warning if not working with * */ + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Type %c: outside of string", type); + } inputpos = 0; } } else if (arg < 0) { -- 2.40.0