Skip to content

Commit eae8038

Browse files
committed
Merge branch 'PHP-8.2'
* PHP-8.2: Move ARM64 build to Cirrus
2 parents 3fbdb13 + 1e434fb commit eae8038

File tree

4 files changed

+200
-4
lines changed

4 files changed

+200
-4
lines changed

Diff for: .cirrus.yml

+197
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ freebsd_task:
185185
name: FREEBSD_DEBUG_NTS
186186
freebsd_instance:
187187
image_family: freebsd-13-0
188+
env:
189+
ARCH: amd64
188190
install_script:
189191
#- sed -i -e 's/quarterly/latest/g' /etc/pkg/FreeBSD.conf
190192
#- pkg upgrade -y
@@ -205,3 +207,198 @@ freebsd_task:
205207
- export CI_NO_IPV6=1
206208
- export STACK_LIMIT_DEFAULTS_CHECK=1
207209
- 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
210+
211+
arm_task:
212+
name: ARM_DEBUG_NTS
213+
arm_container:
214+
image: gcc:10
215+
additional_containers:
216+
- name: mysql
217+
image: mysql:8
218+
port: 3306
219+
cpu: 1.0
220+
memory: 1G
221+
env:
222+
MYSQL_ALLOW_EMPTY_PASSWORD: true
223+
MYSQL_ROOT_PASSWORD: ""
224+
MYSQL_DATABASE: "test"
225+
- name: postgres
226+
image: postgres:latest
227+
port: 5432
228+
env:
229+
POSTGRES_PASSWORD: "postgres"
230+
POSTGRES_DB: "test"
231+
install_script:
232+
- export DEBIAN_FRONTEND=noninteractive
233+
- apt-get update -y
234+
- >-
235+
apt-get install -y
236+
bison
237+
re2c
238+
locales
239+
locales-all
240+
ldap-utils
241+
openssl
242+
slapd
243+
libgmp-dev
244+
libicu-dev
245+
libtidy-dev
246+
libenchant-dev
247+
libaspell-dev
248+
libpspell-dev
249+
libsasl2-dev
250+
libxpm-dev
251+
libzip-dev
252+
libsqlite3-dev
253+
libwebp-dev
254+
libonig-dev
255+
libkrb5-dev
256+
libgssapi-krb5-2
257+
libcurl4-openssl-dev
258+
libxml2-dev
259+
libxslt1-dev
260+
libpq-dev
261+
libreadline-dev
262+
libldap2-dev
263+
libsodium-dev
264+
libargon2-0-dev
265+
libmm-dev
266+
libsnmp-dev
267+
snmpd
268+
`#snmp-mibs-downloader`
269+
freetds-dev
270+
`#unixodbc-dev`
271+
libc-client-dev
272+
dovecot-core
273+
dovecot-pop3d
274+
dovecot-imapd
275+
sendmail
276+
firebird-dev
277+
liblmdb-dev
278+
libtokyocabinet-dev
279+
libdb-dev
280+
libqdbm-dev
281+
libjpeg-dev
282+
libpng-dev
283+
libfreetype6-dev
284+
build_script:
285+
- ./buildconf -f
286+
- >-
287+
./configure
288+
--enable-debug
289+
--enable-zts
290+
--enable-option-checking=fatal
291+
--prefix=/usr
292+
--enable-phpdbg
293+
--enable-fpm
294+
--enable-opcache
295+
--with-pdo-mysql=mysqlnd
296+
--with-mysqli=mysqlnd
297+
--with-pgsql
298+
--with-pdo-pgsql
299+
--with-pdo-sqlite
300+
--enable-intl
301+
--without-pear
302+
--enable-gd
303+
--with-jpeg
304+
--with-webp
305+
--with-freetype
306+
--with-xpm
307+
--enable-exif
308+
--with-zip
309+
--with-zlib
310+
--with-zlib-dir=/usr
311+
--enable-soap
312+
--enable-xmlreader
313+
--with-xsl
314+
--with-tidy
315+
--enable-sysvsem
316+
--enable-sysvshm
317+
--enable-shmop
318+
--enable-pcntl
319+
--with-readline
320+
--enable-mbstring
321+
--with-curl
322+
--with-gettext
323+
--enable-sockets
324+
--with-bz2
325+
--with-openssl
326+
--with-gmp
327+
--enable-bcmath
328+
--enable-calendar
329+
--enable-ftp
330+
--with-pspell=/usr
331+
--with-enchant=/usr
332+
--with-kerberos
333+
--enable-sysvmsg
334+
--with-ffi
335+
--enable-zend-test
336+
--enable-dl-test=shared
337+
--with-ldap
338+
--with-ldap-sasl
339+
--with-password-argon2
340+
--with-mhash
341+
--with-sodium
342+
--enable-dba
343+
--with-cdb
344+
--enable-flatfile
345+
--enable-inifile
346+
--with-tcadb
347+
--with-lmdb
348+
--with-qdbm
349+
--with-snmp
350+
`#--with-unixODBC`
351+
--with-imap
352+
--with-kerberos
353+
--with-imap-ssl
354+
`#--with-pdo-odbc=unixODBC,/usr`
355+
`#--with-pdo-oci=shared,instantclient,/opt/oracle/instantclient`
356+
`#--with-oci8=shared,instantclient,/opt/oracle/instantclient`
357+
--with-config-file-path=/etc
358+
--with-config-file-scan-dir=/etc/php.d
359+
--with-pdo-firebird
360+
`#--with-pdo-dblib`
361+
--disable-phpdbg
362+
`#--enable-werror`
363+
- make -j2 > /dev/null
364+
- make install
365+
- mkdir -p /etc/php.d
366+
- echo opcache.enable_cli=1 > /etc/php.d/opcache.ini
367+
- echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini
368+
# Specify opcache.preload_user as we're running as root.
369+
- echo opcache.preload_user=root >> /etc/php.d/opcache.ini
370+
tests_script:
371+
- export SKIP_IO_CAPTURE_TESTS=1
372+
- export CI_NO_IPV6=1
373+
- export MYSQL_TEST_HOST=127.0.0.1
374+
- export MYSQL_TEST_USER=root
375+
- export MYSQL_TEST_PASSWD=
376+
- export PDO_MYSQL_TEST_DSN="mysql:host=127.0.0.1;dbname=test"
377+
- export PDO_MYSQL_TEST_USER=root
378+
- export PDO_MYSQL_TEST_PASS=
379+
- export PDO_PGSQL_TEST_DSN="pgsql:host=127.0.0.1 port=5432 dbname=test user=postgres password=postgres"
380+
- >-
381+
sapi/cli/php run-tests.php
382+
-d zend_extension=opcache.so
383+
-d opcache.enable_cli=1
384+
-d opcache.jit_buffer_size=16M
385+
-d opcache.jit=function
386+
-P -q -x -j2
387+
-g FAIL,BORK,LEAK,XLEAK
388+
--offline
389+
--show-diff
390+
--show-slow 1000
391+
--set-timeout 120
392+
- >-
393+
sapi/cli/php run-tests.php
394+
-d zend_extension=opcache.so
395+
-d opcache.enable_cli=1
396+
-d opcache.jit_buffer_size=16M
397+
-d opcache.jit=tracing
398+
-P -q -x -j2
399+
-g FAIL,BORK,LEAK,XLEAK
400+
--offline
401+
--show-diff
402+
--show-slow 1000
403+
--set-timeout 120
404+
--repeat 2

Diff for: .travis.yml

-4
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ env:
6868

6969
jobs:
7070
include:
71-
- env: ENABLE_ZTS=1 ENABLE_DEBUG=1 ARM64=1
72-
arch: arm64
7371
- env: ENABLE_ZTS=1 ENABLE_DEBUG=1 S390X=1
7472
arch: s390x
7573

@@ -88,8 +86,6 @@ before_script:
8886
# Run PHPs run-tests.php
8987
script:
9088
- travis_wait ./travis/test.sh -d opcache.jit_buffer_size=16M -d opcache.jit=tracing
91-
- if [[ "$ARM64" == 1 ]]; then travis_wait ./travis/test.sh -d opcache.jit_buffer_size=16M -d opcache.jit=function; fi
92-
- if [[ "$ARM64" == 1 ]]; then travis_wait ./travis/test.sh -d opcache.jit_buffer_size=16M -d opcache.jit=tracing --repeat 2; fi
9389
- sapi/cli/php -d extension_dir=`pwd`/modules -r 'dl("zend_test");'
9490

9591
after_success:

Diff for: ext/standard/tests/file/bug52820.phpt

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ curl_setopt($handle, CURLOPT_VERBOSE, true);
1212
curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);
1313
if (!@curl_setopt($handle, CURLOPT_STDERR, fopen("php://memory", "w+")))
1414
die("skip fopencookie not supported on this platform");
15+
if (getenv('CIRRUS_CI')) die('xfail Broken on Cirrus+ARM');
16+
?>
1517
--FILE--
1618
<?php
1719
function do_stuff($url) {

Diff for: ext/standard/tests/file/disk_free_space_basic.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Test disk_free_space and its alias diskfreespace() functions : basic functionali
33
--SKIPIF--
44
<?php
55
if (getenv("TRAVIS") === "true") die("skip inaccurate on TravisCI");
6+
if (getenv('CIRRUS_CI')) die('skip Inaccurate on Cirrus');
67
?>
78
--INI--
89
memory_limit=32M

0 commit comments

Comments
 (0)