mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fixed bug #31465 (False warning in unpack() when working with *).
This commit is contained in:
parent
27b1a27faf
commit
8c22d51070
1 changed files with 3 additions and 1 deletions
|
@ -830,7 +830,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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue