|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #81555 Release PHP 8.1 compatible version
Submitted: 2021-10-26 03:17 UTC Modified: 2021-10-26 08:32 UTC
From: kak dot serpom dot po dot yaitsam at gmail dot com Assigned:
Status: Open Package: rar (PECL)
PHP Version: 8.1.0RC4 OS: Ubuntu
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2021-10-26 03:17 UTC] kak dot serpom dot po dot yaitsam at gmail dot com
Please update pecl/rar for 8.1

/usr/src/php/ext/rar/rar_stream.c: In function '_rar_get_archive_and_fragment':
/usr/src/php/ext/rar/rar_stream.c:787:45: warning: passing argument 1 of 'zend_resolve_path' from incompatible pointer type [-Wincompatible-pointer-types]
  787 |    zend_string *arc_str = zend_resolve_path(tmp_archive, tmp_arch_len);
      |                                             ^~~~~~~~~~~
      |                                             |
      |                                             char *
/usr/src/php/ext/rar/rar_stream.c:787:45: note: expected 'zend_string *' {aka 'struct _zend_string *'} but argument is of type 'char *'
/usr/src/php/ext/rar/rar_stream.c:787:27: error: too many arguments to function 'zend_resolve_path'
  787 |    zend_string *arc_str = zend_resolve_path(tmp_archive, tmp_arch_len);
      |                           ^~~~~~~~~~~~~~~~~
/usr/src/php/ext/rar/unrar/headers.cpp: In member function 'FileHeader& FileHeader::operator=(FileHeader&)':
/usr/src/php/ext/rar/unrar/headers.cpp:43:32: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'struct FileHeader' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
   43 |   memcpy(this,&hd,sizeof(*this));
      |                                ^
In file included from /usr/src/php/ext/rar/unrar/rar.hpp:28,
                 from /usr/src/php/ext/rar/unrar/headers.cpp:1:
/usr/src/php/ext/rar/unrar/headers.hpp:173:8: note: 'struct FileHeader' declared here
  173 | struct FileHeader:BlockHeader
      |        ^~~~~~~~~~
make: *** [Makefile:221: rar_stream.lo] Error 1
make: *** Waiting for unfinished jobs....


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2021-10-26 03:54 UTC] kak dot serpom dot po dot yaitsam at gmail dot com
Oh, I see it's already been updated:
 [2021-10-26 08:32 UTC]
-Summary: Compilation error +Summary: Release PHP 8.1 compatible version -Type: Bug +Type: Feature/Change Request
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Nov 28 18:03:14 2021 UTC