php.net |  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-11-30 14:21 UTC
From: kak dot serpom dot po dot yaitsam at gmail dot com Assigned: cmb (profile)
Status: Duplicate Package: PECL (PECL)
PHP Version: 8.1.0RC4 OS: Ubuntu
Private report: No CVE-ID: None
 [2021-10-26 03:17 UTC] kak dot serpom dot po dot yaitsam at gmail dot com
Description:
------------
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....



Patches

Pull Requests

History

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: https://github.com/cataphract/php-rar/commit/ab26d285759e4c917879967b09976a44829ed570
 [2021-10-26 08:32 UTC] cmb@php.net
-Summary: Compilation error +Summary: Release PHP 8.1 compatible version -Type: Bug +Type: Feature/Change Request
 [2021-11-30 12:56 UTC] cmb@php.net
-Package: rar +Package: *General Issues
 [2021-11-30 12:56 UTC] cmb@php.net
I suggest to file an issue in the ext/rar bugtracker[1] for better
visibility.

[1] <https://github.com/cataphract/php-rar/issues>
 [2021-11-30 13:34 UTC] kak dot serpom dot po dot yaitsam at gmail dot com
v
 [2021-11-30 14:21 UTC] cmb@php.net
-Status: Open +Status: Duplicate -Package: *General Issues +Package: PECL -Assigned To: +Assigned To: cmb
 [2021-11-30 14:21 UTC] cmb@php.net
Thank you!  I'm closing this ticket as duplicate of
<https://github.com/cataphract/php-rar/issues/12>.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC