@@ -68,6 +68,7 @@ asan_task:
68
68
libjpeg-dev
69
69
libpng-dev
70
70
libfreetype6-dev
71
+ - useradd testuser
71
72
build_script :
72
73
- ./buildconf -f
73
74
- >-
@@ -155,8 +156,6 @@ asan_task:
155
156
- mkdir -p /etc/php.d
156
157
- echo opcache.enable_cli=1 > /etc/php.d/opcache.ini
157
158
- echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini
158
- # Specify opcache.preload_user as we're running as root.
159
- - echo opcache.preload_user=root >> /etc/php.d/opcache.ini
160
159
tests_script :
161
160
- export SKIP_IO_CAPTURE_TESTS=1
162
161
- export CI_NO_IPV6=1
@@ -166,6 +165,8 @@ asan_task:
166
165
- export PDO_MYSQL_TEST_DSN="mysql:host=mysql;dbname=test"
167
166
- export PDO_MYSQL_TEST_USER=root
168
167
- export PDO_MYSQL_TEST_PASS=root
168
+ - export TEST_NON_ROOT_USER=testuser
169
+ - export TEST_FPM_RUN_AS_ROOT=1
169
170
- >-
170
171
sapi/cli/php run-tests.php
171
172
-P -q -x -j2
@@ -188,6 +189,7 @@ freebsd_task:
188
189
# - pkg upgrade -y
189
190
- kldload accf_http
190
191
- pkg install -y autoconf bison gmake re2c icu libiconv png freetype2 enchant2 bzip2 krb5 t1lib gmp tidyp libsodium libzip libxml2 libxslt openssl oniguruma pkgconf webp libavif
192
+ - pw useradd testuser
191
193
script :
192
194
- ./buildconf -f
193
195
- ./configure --prefix=/usr/local --enable-debug --enable-option-checking=fatal --enable-fpm --with-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-kerberos --with-ffi --enable-zend-test --enable-dl-test=shared --enable-intl --with-mhash --with-sodium --enable-werror --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d
@@ -196,10 +198,10 @@ freebsd_task:
196
198
- gmake install
197
199
- echo opcache.enable_cli=1 > /etc/php.d/opcache.ini
198
200
- echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini
199
- # Specify opcache.preload_user as we're running as root.
200
- - echo opcache.preload_user=root >> /etc/php.d/opcache.ini
201
201
tests_script :
202
202
- export SKIP_IO_CAPTURE_TESTS=1
203
203
- export CI_NO_IPV6=1
204
204
- export STACK_LIMIT_DEFAULTS_CHECK=1
205
+ - export TEST_NON_ROOT_USER=testuser
206
+ - export TEST_FPM_RUN_AS_ROOT=1
205
207
- 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
0 commit comments