Your message dated Tue, 18 Apr 2023 13:56:26 +0200
with message-id <[email protected]>
and subject line php5 has been superseded by php7
has caused the Debian Bug report #704791,
regarding php5-dev: ZEND_BEGIN_ARG_INFO broken with C++11 compiler due to
narrowing
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
704791: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=704791
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: php5-dev
Version: 5.5.0~beta2-1
Severity: important
In /usr/include/php5/Zend/zend_API.h:
#define ZEND_BEGIN_ARG_INFO(name, pass_rest_by_reference) \
ZEND_BEGIN_ARG_INFO_EX(name, pass_rest_by_reference, ZEND_RETURN_VALUE,
-1)
^^
The value of -1 is actually being set on an *unsigned* type without
a cast (narrowing). It's being asigned to zend_arg_info.class_name_len
[zend_uint == unsigned int]. This results in compiler warnings, and
if using -Werror, errors.
One possible solution would be to cast in the macro, e.g.
#define ZEND_BEGIN_ARG_INFO(name, pass_rest_by_reference) \
ZEND_BEGIN_ARG_INFO_EX(name, pass_rest_by_reference, ZEND_RETURN_VALUE,
(zend_uint) -1)
Or, better, use a valid value for the type like UINT_MAX!
Just for the record, I worked around it in C++ sources by replacing
the use of ZEND_BEGIN_ARG_INFO with ZEND_BEGIN_ARG_INFO_EX, adding
ZEND_RETURN_VALUE and static_cast<zend_uint>(-1) as the additional
arguments.
Regards,
Roger
-- System Information:
Debian Release: 7.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.32.33-kvm-i386-20111128-dirty (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--- End Message ---
--- Begin Message ---
Version: 5.6.26+dfsg-1+rm
php5 was last released with Debian 8 (jessie) in April 2015
and was removed from the Debian archive afterwards.
It has been superseded by php7.0 and newer versions.
See https://bugs.debian.org/841781 for details on the removal.
Regular security support for jessie ended in June 2018 and LTS support
ended in June 2020.
I'm closing the remaining bug reports now.
Andreas
--- End Message ---