Skip to content
forked from php/php-src

Commit 5f41c1b

Browse files
authored
Merge pull request #23 from php/master
sync
2 parents c44507a + a48ed12 commit 5f41c1b

File tree

4,046 files changed

+632012
-258720
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,046 files changed

+632012
-258720
lines changed

.circleci/config.yml

Lines changed: 189 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,189 @@
1+
version: 2.1
2+
3+
jobs:
4+
arm:
5+
resource_class: arm.medium
6+
docker:
7+
- image: cimg/base:current-22.04
8+
- image: mysql:8
9+
environment:
10+
MYSQL_ALLOW_EMPTY_PASSWORD: true
11+
MYSQL_ROOT_PASSWORD: ''
12+
MYSQL_DATABASE: test
13+
- image: postgres:16
14+
environment:
15+
POSTGRES_PASSWORD: postgres
16+
POSTGRES_DB: test
17+
environment:
18+
LANGUAGE: ''
19+
LANG: en_US.UTF-8
20+
MYSQL_TEST_HOST: '127.0.0.1'
21+
MYSQL_TEST_PASSWD: ''
22+
MYSQL_TEST_USER: root
23+
PDO_MYSQL_TEST_DSN: 'mysql:host=127.0.0.1;dbname=test'
24+
PDO_MYSQL_TEST_PASS: ''
25+
PDO_MYSQL_TEST_USER: root
26+
PDO_PGSQL_TEST_DSN: 'pgsql:host=127.0.0.1 port=5432 dbname=test user=postgres password=postgres'
27+
steps:
28+
- checkout
29+
- run:
30+
name: apt
31+
command: |
32+
export DEBIAN_FRONTEND=noninteractive
33+
sudo apt-get update -y
34+
sudo apt-get install -y \
35+
gcc \
36+
g++ \
37+
autoconf \
38+
bison \
39+
re2c \
40+
locales \
41+
locales-all \
42+
ldap-utils \
43+
openssl \
44+
slapd \
45+
libgmp-dev \
46+
libicu-dev \
47+
libtidy-dev \
48+
libenchant-2-dev \
49+
libsasl2-dev \
50+
libxpm-dev \
51+
libzip-dev \
52+
libbz2-dev \
53+
libsqlite3-dev \
54+
libwebp-dev \
55+
libonig-dev \
56+
libkrb5-dev \
57+
libgssapi-krb5-2 \
58+
libcurl4-openssl-dev \
59+
libxml2-dev \
60+
libxslt1-dev \
61+
libpq-dev \
62+
libreadline-dev \
63+
libldap2-dev \
64+
libsodium-dev \
65+
libargon2-0-dev \
66+
libmm-dev \
67+
libsnmp-dev \
68+
snmpd \
69+
`#snmp-mibs-downloader` \
70+
freetds-dev \
71+
`#unixodbc-dev` \
72+
dovecot-core \
73+
dovecot-pop3d \
74+
dovecot-imapd \
75+
sendmail \
76+
firebird-dev \
77+
liblmdb-dev \
78+
libtokyocabinet-dev \
79+
libdb-dev \
80+
libqdbm-dev \
81+
libjpeg-dev \
82+
libpng-dev \
83+
libfreetype6-dev
84+
- run:
85+
name: ./configure
86+
command: |
87+
./buildconf -f
88+
./configure \
89+
--enable-debug \
90+
--enable-zts \
91+
--enable-option-checking=fatal \
92+
--prefix=/usr \
93+
--enable-phpdbg \
94+
--enable-fpm \
95+
--enable-opcache \
96+
--with-pdo-mysql=mysqlnd \
97+
--with-mysqli=mysqlnd \
98+
--with-pgsql \
99+
--with-pdo-pgsql \
100+
--with-pdo-sqlite \
101+
--enable-intl \
102+
--without-pear \
103+
--enable-gd \
104+
--with-jpeg \
105+
--with-webp \
106+
--with-freetype \
107+
--with-xpm \
108+
--enable-exif \
109+
--with-zip \
110+
--with-zlib \
111+
--enable-soap \
112+
--enable-xmlreader \
113+
--with-xsl \
114+
--with-tidy \
115+
--enable-sysvsem \
116+
--enable-sysvshm \
117+
--enable-shmop \
118+
--enable-pcntl \
119+
--with-readline \
120+
--enable-mbstring \
121+
--with-curl \
122+
--with-gettext \
123+
--enable-sockets \
124+
--with-bz2 \
125+
--with-openssl \
126+
--with-gmp \
127+
--enable-bcmath \
128+
--enable-calendar \
129+
--enable-ftp \
130+
--with-enchant=/usr \
131+
--with-kerberos \
132+
--enable-sysvmsg \
133+
--with-ffi \
134+
--enable-zend-test \
135+
--enable-dl-test=shared \
136+
--with-ldap \
137+
--with-ldap-sasl \
138+
--with-password-argon2 \
139+
--with-mhash \
140+
--with-sodium \
141+
--enable-dba \
142+
--with-cdb \
143+
--enable-flatfile \
144+
--enable-inifile \
145+
--with-tcadb \
146+
--with-lmdb \
147+
--with-qdbm \
148+
--with-snmp \
149+
`#--with-unixODBC` \
150+
`#--with-pdo-odbc=unixODBC,/usr` \
151+
--with-config-file-path=/etc \
152+
--with-config-file-scan-dir=/etc/php.d \
153+
--with-pdo-firebird \
154+
`#--with-pdo-dblib` \
155+
--disable-phpdbg \
156+
`#--enable-werror`
157+
- run:
158+
name: make
159+
command: make -j2 > /dev/null
160+
- run:
161+
name: make install
162+
command: |
163+
sudo make install
164+
sudo mkdir -p /etc/php.d
165+
sudo chmod 777 /etc/php.d
166+
echo opcache.enable_cli=1 > /etc/php.d/opcache.ini
167+
echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini
168+
- run:
169+
name: Test
170+
no_output_timeout: 30m
171+
command: |
172+
sapi/cli/php run-tests.php \
173+
-d zend_extension=opcache.so \
174+
-d opcache.enable_cli=1 \
175+
-d opcache.jit_buffer_size=64M \
176+
-d opcache.jit=tracing \
177+
-P -q -x -j2 \
178+
-g FAIL,BORK,LEAK,XLEAK \
179+
--no-progress \
180+
--offline \
181+
--show-diff \
182+
--show-slow 1000 \
183+
--set-timeout 120 \
184+
--repeat 2
185+
186+
workflows:
187+
push-workflow:
188+
jobs:
189+
- arm

.cirrus.yml

Lines changed: 0 additions & 201 deletions
Original file line numberDiff line numberDiff line change
@@ -27,204 +27,3 @@ freebsd_task:
2727
- export CI_NO_IPV6=1
2828
- export STACK_LIMIT_DEFAULTS_CHECK=1
2929
- 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
30-
31-
arm_task:
32-
name: ARM_DEBUG_NTS
33-
arm_container:
34-
image: debian:12
35-
additional_containers:
36-
- name: mysql
37-
image: mysql:8
38-
port: 3306
39-
cpu: 1.0
40-
memory: 1G
41-
env:
42-
MYSQL_ALLOW_EMPTY_PASSWORD: true
43-
MYSQL_ROOT_PASSWORD: ""
44-
MYSQL_DATABASE: "test"
45-
- name: postgres
46-
image: postgres:latest
47-
port: 5432
48-
env:
49-
POSTGRES_PASSWORD: "postgres"
50-
POSTGRES_DB: "test"
51-
install_script:
52-
- export DEBIAN_FRONTEND=noninteractive
53-
- apt-get update -y
54-
- >-
55-
apt-get install -y
56-
gcc
57-
g++
58-
autoconf
59-
bison
60-
re2c
61-
locales
62-
locales-all
63-
ldap-utils
64-
openssl
65-
slapd
66-
libgmp-dev
67-
libicu-dev
68-
libtidy-dev
69-
libenchant-2-dev
70-
libaspell-dev
71-
libpspell-dev
72-
libsasl2-dev
73-
libxpm-dev
74-
libzip-dev
75-
libbz2-dev
76-
libsqlite3-dev
77-
libwebp-dev
78-
libonig-dev
79-
libkrb5-dev
80-
libgssapi-krb5-2
81-
libcurl4-openssl-dev
82-
libxml2-dev
83-
libxslt1-dev
84-
libpq-dev
85-
libreadline-dev
86-
libldap2-dev
87-
libsodium-dev
88-
libargon2-0-dev
89-
libmm-dev
90-
libsnmp-dev
91-
snmpd
92-
`#snmp-mibs-downloader`
93-
freetds-dev
94-
`#unixodbc-dev`
95-
libc-client-dev
96-
dovecot-core
97-
dovecot-pop3d
98-
dovecot-imapd
99-
sendmail
100-
firebird-dev
101-
liblmdb-dev
102-
libtokyocabinet-dev
103-
libdb-dev
104-
libqdbm-dev
105-
libjpeg-dev
106-
libpng-dev
107-
libfreetype6-dev
108-
build_script:
109-
- ./buildconf -f
110-
- >-
111-
./configure
112-
--enable-debug
113-
--enable-zts
114-
--enable-option-checking=fatal
115-
--prefix=/usr
116-
--enable-phpdbg
117-
--enable-fpm
118-
--enable-opcache
119-
--with-pdo-mysql=mysqlnd
120-
--with-mysqli=mysqlnd
121-
--with-pgsql
122-
--with-pdo-pgsql
123-
--with-pdo-sqlite
124-
--enable-intl
125-
--without-pear
126-
--enable-gd
127-
--with-jpeg
128-
--with-webp
129-
--with-freetype
130-
--with-xpm
131-
--enable-exif
132-
--with-zip
133-
--with-zlib
134-
--with-zlib-dir=/usr
135-
--enable-soap
136-
--enable-xmlreader
137-
--with-xsl
138-
--with-tidy
139-
--enable-sysvsem
140-
--enable-sysvshm
141-
--enable-shmop
142-
--enable-pcntl
143-
--with-readline
144-
--enable-mbstring
145-
--with-curl
146-
--with-gettext
147-
--enable-sockets
148-
--with-bz2
149-
--with-openssl
150-
--with-gmp
151-
--enable-bcmath
152-
--enable-calendar
153-
--enable-ftp
154-
--with-pspell=/usr
155-
--with-enchant=/usr
156-
--with-kerberos
157-
--enable-sysvmsg
158-
--with-ffi
159-
--enable-zend-test
160-
--enable-dl-test=shared
161-
--with-ldap
162-
--with-ldap-sasl
163-
--with-password-argon2
164-
--with-mhash
165-
--with-sodium
166-
--enable-dba
167-
--with-cdb
168-
--enable-flatfile
169-
--enable-inifile
170-
--with-tcadb
171-
--with-lmdb
172-
--with-qdbm
173-
--with-snmp
174-
`#--with-unixODBC`
175-
--with-imap
176-
--with-kerberos
177-
--with-imap-ssl
178-
`#--with-pdo-odbc=unixODBC,/usr`
179-
`#--with-pdo-oci=shared,instantclient,/opt/oracle/instantclient`
180-
`#--with-oci8=shared,instantclient,/opt/oracle/instantclient`
181-
--with-config-file-path=/etc
182-
--with-config-file-scan-dir=/etc/php.d
183-
--with-pdo-firebird
184-
`#--with-pdo-dblib`
185-
--disable-phpdbg
186-
`#--enable-werror`
187-
- make -j2 > /dev/null
188-
- make install
189-
- mkdir -p /etc/php.d
190-
- echo opcache.enable_cli=1 > /etc/php.d/opcache.ini
191-
- echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini
192-
# Specify opcache.preload_user as we're running as root.
193-
- echo opcache.preload_user=root >> /etc/php.d/opcache.ini
194-
tests_script:
195-
- export SKIP_IO_CAPTURE_TESTS=1
196-
- export CI_NO_IPV6=1
197-
- export MYSQL_TEST_HOST=127.0.0.1
198-
- export MYSQL_TEST_USER=root
199-
- export MYSQL_TEST_PASSWD=
200-
- export PDO_MYSQL_TEST_DSN="mysql:host=127.0.0.1;dbname=test"
201-
- export PDO_MYSQL_TEST_USER=root
202-
- export PDO_MYSQL_TEST_PASS=
203-
- export PDO_PGSQL_TEST_DSN="pgsql:host=127.0.0.1 port=5432 dbname=test user=postgres password=postgres"
204-
- >-
205-
sapi/cli/php run-tests.php
206-
-d zend_extension=opcache.so
207-
-d opcache.enable_cli=1
208-
-d opcache.jit_buffer_size=16M
209-
-d opcache.jit=function
210-
-P -q -x -j2
211-
-g FAIL,BORK,LEAK,XLEAK
212-
--no-progress
213-
--offline
214-
--show-diff
215-
--show-slow 1000
216-
--set-timeout 120
217-
- >-
218-
sapi/cli/php run-tests.php
219-
-d zend_extension=opcache.so
220-
-d opcache.enable_cli=1
221-
-d opcache.jit_buffer_size=16M
222-
-d opcache.jit=tracing
223-
-P -q -x -j2
224-
-g FAIL,BORK,LEAK,XLEAK
225-
--no-progress
226-
--offline
227-
--show-diff
228-
--show-slow 1000
229-
--set-timeout 120
230-
--repeat 2

0 commit comments

Comments
 (0)