forked from php/php-src
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'php-8.3.15' into was-8.3.x
Tag for php-8.3.15
- Loading branch information
Showing
112 changed files
with
1,912 additions
and
430 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
name: FreeBSD | ||
runs: | ||
using: composite | ||
steps: | ||
- name: FreeBSD | ||
uses: vmactions/freebsd-vm@v1 | ||
with: | ||
release: '13.3' | ||
usesh: true | ||
copyback: false | ||
# Temporarily disable sqlite, as FreeBSD ships it with disabled double quotes. We'll need to fix our tests. | ||
# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269889 | ||
prepare: | | ||
cd $GITHUB_WORKSPACE | ||
kldload accf_http | ||
pkg install -y \ | ||
autoconf \ | ||
bison \ | ||
gmake \ | ||
re2c \ | ||
icu \ | ||
libiconv \ | ||
png \ | ||
freetype2 \ | ||
enchant2 \ | ||
bzip2 \ | ||
t1lib \ | ||
gmp \ | ||
tidyp \ | ||
libsodium \ | ||
libzip \ | ||
libxml2 \ | ||
libxslt \ | ||
openssl \ | ||
oniguruma \ | ||
pkgconf \ | ||
webp \ | ||
libavif \ | ||
`#sqlite3` \ | ||
curl | ||
./buildconf -f | ||
./configure \ | ||
--prefix=/usr/local \ | ||
--enable-debug \ | ||
--enable-option-checking=fatal \ | ||
--enable-fpm \ | ||
`#--with-pdo-sqlite` \ | ||
--without-sqlite3 \ | ||
--without-pdo-sqlite \ | ||
--without-pear \ | ||
--with-bz2 \ | ||
--with-avif \ | ||
--with-jpeg \ | ||
--with-webp \ | ||
--with-freetype \ | ||
--enable-gd \ | ||
--enable-exif \ | ||
--with-zip \ | ||
--with-zlib \ | ||
--enable-soap \ | ||
--enable-xmlreader \ | ||
--with-xsl \ | ||
--with-libxml \ | ||
--enable-shmop \ | ||
--enable-pcntl \ | ||
--enable-mbstring \ | ||
--with-curl \ | ||
--enable-sockets \ | ||
--with-openssl \ | ||
--with-iconv=/usr/local \ | ||
--enable-bcmath \ | ||
--enable-calendar \ | ||
--enable-ftp \ | ||
--with-ffi \ | ||
--enable-zend-test \ | ||
--enable-dl-test=shared \ | ||
--enable-intl \ | ||
--with-mhash \ | ||
--with-sodium \ | ||
--with-config-file-path=/etc \ | ||
--with-config-file-scan-dir=/etc/php.d | ||
gmake -j2 | ||
mkdir /etc/php.d | ||
gmake install > /dev/null | ||
echo opcache.enable_cli=1 > /etc/php.d/opcache.ini | ||
echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini | ||
echo opcache.preload_user=root >> /etc/php.d/opcache.ini | ||
run: | | ||
cd $GITHUB_WORKSPACE | ||
export SKIP_IO_CAPTURE_TESTS=1 | ||
export CI_NO_IPV6=1 | ||
export STACK_LIMIT_DEFAULTS_CHECK=1 | ||
sapi/cli/php run-tests.php \ | ||
-P -q -j2 \ | ||
-g FAIL,BORK,LEAK,XLEAK \ | ||
--no-progress \ | ||
--offline \ | ||
--show-diff \ | ||
--show-slow 1000 \ | ||
--set-timeout 120 \ | ||
-d zend_extension=opcache.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--TEST-- | ||
GH-16630 (UAF in lexer with encoding translation and heredocs) | ||
--EXTENSIONS-- | ||
mbstring | ||
--INI-- | ||
zend.multibyte=On | ||
zend.script_encoding=ISO-8859-1 | ||
internal_encoding=EUC-JP | ||
--FILE-- | ||
<?php | ||
$data3 = <<<CODE | ||
heredoc | ||
text | ||
CODE; | ||
echo $data3; | ||
?> | ||
--EXPECT-- | ||
heredoc | ||
text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--TEST-- | ||
GH-16799 (Assertion failure at Zend/zend_vm_execute.h) | ||
--FILE-- | ||
<?php | ||
set_error_handler(function($_, $m) { throw new Exception($m); }); | ||
class Test { | ||
static function test() { | ||
call_user_func("static::ok"); | ||
} | ||
static function ok() { | ||
} | ||
} | ||
Test::test(); | ||
?> | ||
--EXPECTF-- | ||
Fatal error: Uncaught Exception: Use of "static" in callables is deprecated in %s:%d | ||
Stack trace: | ||
#0 %s(%d): {closure}(%d, 'Use of "static"...', %s, %d) | ||
#1 %s(%d): Test::test() | ||
#2 {main} | ||
thrown in %s on line %d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.