mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1: Upgrade security branches to Ubuntu 22.04
This commit is contained in:
commit
1009ff65cc
10 changed files with 72 additions and 10 deletions
6
.github/scripts/setup-slapd.sh
vendored
6
.github/scripts/setup-slapd.sh
vendored
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -ex
|
set -e
|
||||||
|
|
||||||
# Create TLS certificate
|
# Create TLS certificate
|
||||||
sudo mkdir -p /etc/ldap/ssl
|
sudo mkdir -p /etc/ldap/ssl
|
||||||
|
@ -42,7 +42,9 @@ sudo sed -e 's|^\s*SLAPD_SERVICES\s*=.*$|SLAPD_SERVICES="ldap:/// ldaps:/// ldap
|
||||||
# Configure LDAP database.
|
# Configure LDAP database.
|
||||||
DBDN=`sudo ldapsearch -Q -LLL -Y EXTERNAL -H ldapi:/// -b cn=config '(&(olcRootDN=*)(olcSuffix=*))' dn | grep -i '^dn:' | sed -e 's/^dn:\s*//'`;
|
DBDN=`sudo ldapsearch -Q -LLL -Y EXTERNAL -H ldapi:/// -b cn=config '(&(olcRootDN=*)(olcSuffix=*))' dn | grep -i '^dn:' | sed -e 's/^dn:\s*//'`;
|
||||||
|
|
||||||
sudo ldapadd -Q -Y EXTERNAL -H ldapi:/// -f /etc/ldap/schema/ppolicy.ldif
|
if test -f "/etc/ldap/schema/ppolicy.ldif"; then
|
||||||
|
sudo ldapadd -Q -Y EXTERNAL -H ldapi:/// -f /etc/ldap/schema/ppolicy.ldif
|
||||||
|
fi
|
||||||
|
|
||||||
sudo ldapmodify -Q -Y EXTERNAL -H ldapi:/// << EOF
|
sudo ldapmodify -Q -Y EXTERNAL -H ldapi:/// << EOF
|
||||||
dn: $DBDN
|
dn: $DBDN
|
||||||
|
|
2
.github/workflows/push.yml
vendored
2
.github/workflows/push.yml
vendored
|
@ -69,7 +69,7 @@ jobs:
|
||||||
- debug: false
|
- debug: false
|
||||||
zts: true
|
zts: true
|
||||||
name: "LINUX_X64_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}"
|
name: "LINUX_X64_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}"
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: git checkout
|
- name: git checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
5
.github/workflows/root.yml
vendored
5
.github/workflows/root.yml
vendored
|
@ -48,7 +48,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
asan_ubuntu_version: ${{
|
asan_ubuntu_version: ${{
|
||||||
(((matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 5) || matrix.branch.version[0] >= 9) && '24.04')
|
(((matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 5) || matrix.branch.version[0] >= 9) && '24.04')
|
||||||
|| '20.04' }}
|
|| '22.04' }}
|
||||||
branch: ${{ matrix.branch.ref }}
|
branch: ${{ matrix.branch.ref }}
|
||||||
community_verify_type_inference: ${{ (matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 4) || matrix.branch.version[0] >= 9 }}
|
community_verify_type_inference: ${{ (matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 4) || matrix.branch.version[0] >= 9 }}
|
||||||
libmysqlclient_with_mysqli: ${{ (matrix.branch.version[0] == 8 && matrix.branch.version[1] == 1) }}
|
libmysqlclient_with_mysqli: ${{ (matrix.branch.version[0] == 8 && matrix.branch.version[1] == 1) }}
|
||||||
|
@ -57,8 +57,7 @@ jobs:
|
||||||
run_macos_arm64: ${{ (matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 4) || matrix.branch.version[0] >= 9 }}
|
run_macos_arm64: ${{ (matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 4) || matrix.branch.version[0] >= 9 }}
|
||||||
ubuntu_version: ${{
|
ubuntu_version: ${{
|
||||||
(((matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 5) || matrix.branch.version[0] >= 9) && '24.04')
|
(((matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 5) || matrix.branch.version[0] >= 9) && '24.04')
|
||||||
|| ((matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 3) && '22.04')
|
|| '22.04' }}
|
||||||
|| '20.04' }}
|
|
||||||
windows_version: ${{ ((matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 4) || matrix.branch.version[0] >= 9) && '2022' || '2019' }}
|
windows_version: ${{ ((matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 4) || matrix.branch.version[0] >= 9) && '2022' || '2019' }}
|
||||||
skip_symfony: ${{ matrix.branch.version[0] == 8 && matrix.branch.version[1] == 1 }}
|
skip_symfony: ${{ matrix.branch.version[0] == 8 && matrix.branch.version[1] == 1 }}
|
||||||
skip_wordpress: ${{ matrix.branch.version[0] == 8 && matrix.branch.version[1] == 1 }}
|
skip_wordpress: ${{ matrix.branch.version[0] == 8 && matrix.branch.version[1] == 1 }}
|
||||||
|
|
|
@ -698,4 +698,28 @@ extern "C++" {
|
||||||
# define ZEND_INDIRECT_RETURN
|
# define ZEND_INDIRECT_RETURN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define __ZEND_DO_PRAGMA(x) _Pragma(#x)
|
||||||
|
#define _ZEND_DO_PRAGMA(x) __ZEND_DO_PRAGMA(x)
|
||||||
|
#if defined(__clang__)
|
||||||
|
# define ZEND_DIAGNOSTIC_IGNORED_START(warning) \
|
||||||
|
_Pragma("clang diagnostic push") \
|
||||||
|
_ZEND_DO_PRAGMA(clang diagnostic ignored warning)
|
||||||
|
# define ZEND_DIAGNOSTIC_IGNORED_END \
|
||||||
|
_Pragma("clang diagnostic pop")
|
||||||
|
#elif defined(__GNUC__)
|
||||||
|
# define ZEND_DIAGNOSTIC_IGNORED_START(warning) \
|
||||||
|
_Pragma("GCC diagnostic push") \
|
||||||
|
_ZEND_DO_PRAGMA(GCC diagnostic ignored warning)
|
||||||
|
# define ZEND_DIAGNOSTIC_IGNORED_END \
|
||||||
|
_Pragma("GCC diagnostic pop")
|
||||||
|
#else
|
||||||
|
# define ZEND_DIAGNOSTIC_IGNORED_START(warning)
|
||||||
|
# define ZEND_DIAGNOSTIC_IGNORED_END
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/** @deprecated */
|
||||||
|
#define ZEND_CGG_DIAGNOSTIC_IGNORED_START ZEND_DIAGNOSTIC_IGNORED_START
|
||||||
|
/** @deprecated */
|
||||||
|
#define ZEND_CGG_DIAGNOSTIC_IGNORED_END ZEND_DIAGNOSTIC_IGNORED_END
|
||||||
|
|
||||||
#endif /* ZEND_PORTABILITY_H */
|
#endif /* ZEND_PORTABILITY_H */
|
||||||
|
|
|
@ -525,11 +525,9 @@ PHP_RINIT_FUNCTION(imap)
|
||||||
}
|
}
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
/* {{{ PHP_RSHUTDOWN_FUNCTION */
|
static void free_errorlist(void)
|
||||||
PHP_RSHUTDOWN_FUNCTION(imap)
|
|
||||||
{
|
{
|
||||||
ERRORLIST *ecur = NIL;
|
ERRORLIST *ecur = NIL;
|
||||||
STRINGLIST *acur = NIL;
|
|
||||||
|
|
||||||
if (IMAPG(imap_errorstack) != NIL) {
|
if (IMAPG(imap_errorstack) != NIL) {
|
||||||
/* output any remaining errors at their original error level */
|
/* output any remaining errors at their original error level */
|
||||||
|
@ -545,6 +543,11 @@ PHP_RSHUTDOWN_FUNCTION(imap)
|
||||||
mail_free_errorlist(&IMAPG(imap_errorstack));
|
mail_free_errorlist(&IMAPG(imap_errorstack));
|
||||||
IMAPG(imap_errorstack) = NIL;
|
IMAPG(imap_errorstack) = NIL;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static void free_stringlist(void)
|
||||||
|
{
|
||||||
|
STRINGLIST *acur = NIL;
|
||||||
|
|
||||||
if (IMAPG(imap_alertstack) != NIL) {
|
if (IMAPG(imap_alertstack) != NIL) {
|
||||||
/* output any remaining alerts at E_NOTICE level */
|
/* output any remaining alerts at E_NOTICE level */
|
||||||
|
@ -560,6 +563,13 @@ PHP_RSHUTDOWN_FUNCTION(imap)
|
||||||
mail_free_stringlist(&IMAPG(imap_alertstack));
|
mail_free_stringlist(&IMAPG(imap_alertstack));
|
||||||
IMAPG(imap_alertstack) = NIL;
|
IMAPG(imap_alertstack) = NIL;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* {{{ PHP_RSHUTDOWN_FUNCTION */
|
||||||
|
PHP_RSHUTDOWN_FUNCTION(imap)
|
||||||
|
{
|
||||||
|
free_errorlist();
|
||||||
|
free_stringlist();
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
|
@ -47,7 +47,9 @@
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
/* these are used for quota support */
|
/* these are used for quota support */
|
||||||
|
ZEND_DIAGNOSTIC_IGNORED_START("-Wstrict-prototypes")
|
||||||
# include "c-client.h" /* includes mail.h and rfc822.h */
|
# include "c-client.h" /* includes mail.h and rfc822.h */
|
||||||
|
ZEND_DIAGNOSTIC_IGNORED_END
|
||||||
# include "imap4r1.h" /* location of c-client quota functions */
|
# include "imap4r1.h" /* location of c-client quota functions */
|
||||||
#else
|
#else
|
||||||
# include "mail.h"
|
# include "mail.h"
|
||||||
|
|
|
@ -53,7 +53,9 @@
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
#include "ext/standard/php_string.h"
|
#include "ext/standard/php_string.h"
|
||||||
|
ZEND_DIAGNOSTIC_IGNORED_START("-Wstrict-prototypes")
|
||||||
#include <oci.h>
|
#include <oci.h>
|
||||||
|
ZEND_DIAGNOSTIC_IGNORED_END
|
||||||
|
|
||||||
#if !defined(OCI_MAJOR_VERSION) || OCI_MAJOR_VERSION < 11 || ((OCI_MAJOR_VERSION == 11) && (OCI_MINOR_VERSION < 2))
|
#if !defined(OCI_MAJOR_VERSION) || OCI_MAJOR_VERSION < 11 || ((OCI_MAJOR_VERSION == 11) && (OCI_MINOR_VERSION < 2))
|
||||||
#error This version of PHP OCI8 requires Oracle Client libraries from 11.2 or later.
|
#error This version of PHP OCI8 requires Oracle Client libraries from 11.2 or later.
|
||||||
|
|
|
@ -124,7 +124,14 @@ void dasm_free(Dst_DECL)
|
||||||
void dasm_setupglobal(Dst_DECL, void **gl, unsigned int maxgl)
|
void dasm_setupglobal(Dst_DECL, void **gl, unsigned int maxgl)
|
||||||
{
|
{
|
||||||
dasm_State *D = Dst_REF;
|
dasm_State *D = Dst_REF;
|
||||||
|
#ifdef __GNUC__
|
||||||
|
# pragma GCC diagnostic push
|
||||||
|
# pragma GCC diagnostic ignored "-Warray-bounds"
|
||||||
|
#endif
|
||||||
D->globals = gl - 10; /* Negative bias to compensate for locals. */
|
D->globals = gl - 10; /* Negative bias to compensate for locals. */
|
||||||
|
#ifdef __GNUC__
|
||||||
|
# pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
DASM_M_GROW(Dst, int, D->lglabels, D->lgsize, (10+maxgl)*sizeof(int));
|
DASM_M_GROW(Dst, int, D->lglabels, D->lgsize, (10+maxgl)*sizeof(int));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,14 @@
|
||||||
+----------------------------------------------------------------------+
|
+----------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef PHP_PDO_OCI_INT_H
|
||||||
|
#define PHP_PDO_OCI_INT_H
|
||||||
|
|
||||||
|
#include "zend_portability.h"
|
||||||
|
|
||||||
|
ZEND_DIAGNOSTIC_IGNORED_START("-Wstrict-prototypes")
|
||||||
#include <oci.h>
|
#include <oci.h>
|
||||||
|
ZEND_DIAGNOSTIC_IGNORED_END
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
const char *file;
|
const char *file;
|
||||||
|
@ -105,3 +112,5 @@ enum {
|
||||||
PDO_OCI_ATTR_MODULE,
|
PDO_OCI_ATTR_MODULE,
|
||||||
PDO_OCI_ATTR_CALL_TIMEOUT
|
PDO_OCI_ATTR_CALL_TIMEOUT
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif /* PHP_PDO_OCI_INT_H */
|
||||||
|
|
|
@ -2399,7 +2399,14 @@ iterator_failed_to_get:
|
||||||
if (style == SOAP_ENCODED) {
|
if (style == SOAP_ENCODED) {
|
||||||
if (soap_version == SOAP_1_1) {
|
if (soap_version == SOAP_1_1) {
|
||||||
smart_str_0(&array_type);
|
smart_str_0(&array_type);
|
||||||
if (strcmp(ZSTR_VAL(array_type.s),"xsd:anyType") == 0) {
|
#if defined(__GNUC__) && __GNUC__ >= 11
|
||||||
|
ZEND_DIAGNOSTIC_IGNORED_START("-Wstringop-overread")
|
||||||
|
#endif
|
||||||
|
bool is_xsd_any_type = strcmp(ZSTR_VAL(array_type.s),"xsd:anyType") == 0;
|
||||||
|
#if defined(__GNUC__) && __GNUC__ >= 11
|
||||||
|
ZEND_DIAGNOSTIC_IGNORED_END
|
||||||
|
#endif
|
||||||
|
if (is_xsd_any_type) {
|
||||||
smart_str_free(&array_type);
|
smart_str_free(&array_type);
|
||||||
smart_str_appendl(&array_type,"xsd:ur-type",sizeof("xsd:ur-type")-1);
|
smart_str_appendl(&array_type,"xsd:ur-type",sizeof("xsd:ur-type")-1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue