Skip to content

Commit 5d7aa3d

Browse files
committed
Revert "DEBUG/BENCH: Merge branch 'origin/master'"
This reverts commit 660452b.
1 parent 660452b commit 5d7aa3d

File tree

3,896 files changed

+165987
-331102
lines changed

Some content is hidden

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

3,896 files changed

+165987
-331102
lines changed

.appveyor.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ environment:
2828
#PDO_MYSQL_TEST_PASS: Password12!
2929
#PGSQL_TEST_CONNSTR: "host=127.0.0.1 dbname=test port=5432 user=postgres password=Password12!"
3030
#PDO_PGSQL_TEST_DSN: "pgsql:host=127.0.0.1 port=5432 dbname=test user=postgres password=Password12!"
31-
STACK_LIMIT_DEFAULTS_CHECK: 1
3231
#build permutations
3332
matrix:
3433
- THREAD_SAFE: 0

.cirrus.yml

Lines changed: 3 additions & 186 deletions
Original file line numberDiff line numberDiff line change
@@ -1,190 +1,10 @@
11
env:
22
CIRRUS_CLONE_DEPTH: 1
33

4-
asan_task:
5-
name: ASAN_DEBUG_NTS
6-
container:
7-
image: gcc:latest
8-
additional_containers:
9-
- name: mysql
10-
image: mysql:8
11-
port: 3306
12-
cpu: 1.0
13-
memory: 1G
14-
env:
15-
MYSQL_ROOT_PASSWORD: "root"
16-
MYSQL_DATABASE: "test"
17-
install_script:
18-
- apt-get update -y
19-
- >-
20-
apt-get install -y
21-
bison
22-
re2c
23-
locales
24-
locales-all
25-
`#ldap-utils`
26-
openssl
27-
`slapd`
28-
libgmp-dev
29-
libicu-dev
30-
`#libtidy-dev`
31-
`#libenchant-dev`
32-
libaspell-dev
33-
libpspell-dev
34-
libsasl2-dev
35-
libxpm-dev
36-
libzip-dev
37-
`#libsqlite3-dev`
38-
libwebp-dev
39-
libonig-dev
40-
libkrb5-dev
41-
libgssapi-krb5-2
42-
libcurl4-openssl-dev
43-
libxml2-dev
44-
libxslt1-dev
45-
libpq-dev
46-
libreadline-dev
47-
`#libldap2-dev`
48-
libsodium-dev
49-
libargon2-0-dev
50-
libmm-dev
51-
`#libsnmp-dev`
52-
`#postgresql`
53-
`#postgresql-contrib`
54-
`#snmpd`
55-
`#snmp-mibs-downloader`
56-
`#freetds-dev`
57-
`#unixodbc-dev`
58-
llvm
59-
clang
60-
libc-client-dev
61-
dovecot-core
62-
dovecot-pop3d
63-
dovecot-imapd
64-
`#sendmail`
65-
`#firebird-dev`
66-
liblmdb-dev
67-
libtokyocabinet-dev
68-
libdb-dev
69-
libqdbm-dev
70-
libjpeg-dev
71-
libpng-dev
72-
libfreetype6-dev
73-
build_script:
74-
- ./buildconf -f
75-
- >-
76-
./configure
77-
--enable-debug
78-
--enable-zts
79-
--enable-option-checking=fatal
80-
--prefix=/usr
81-
--enable-phpdbg
82-
--enable-fpm
83-
--enable-opcache
84-
--disable-opcache-jit
85-
--with-pdo-mysql=mysqlnd
86-
--with-mysqli=mysqlnd
87-
`#--with-pgsql`
88-
`#--with-pdo-pgsql`
89-
`#--with-pdo-sqlite`
90-
--enable-intl
91-
--without-pear
92-
--enable-gd
93-
--with-jpeg
94-
--with-webp
95-
--with-freetype
96-
--with-xpm
97-
--enable-exif
98-
--with-zip
99-
--with-zlib
100-
--with-zlib-dir=/usr
101-
--enable-soap
102-
--enable-xmlreader
103-
--with-xsl
104-
`#--with-tidy`
105-
--enable-sysvsem
106-
--enable-sysvshm
107-
--enable-shmop
108-
--enable-pcntl
109-
--with-readline
110-
--enable-mbstring
111-
--with-curl
112-
--with-gettext
113-
--enable-sockets
114-
--with-bz2
115-
--with-openssl
116-
--with-gmp
117-
--enable-bcmath
118-
--enable-calendar
119-
--enable-ftp
120-
--with-pspell=/usr
121-
`#--with-enchant=/usr`
122-
--with-kerberos
123-
--enable-sysvmsg
124-
--with-ffi
125-
--enable-zend-test
126-
`#--enable-dl-test=shared`
127-
`#--with-ldap`
128-
`#--with-ldap-sasl`
129-
--with-password-argon2
130-
--with-mhash
131-
--with-sodium
132-
--enable-dba
133-
--with-cdb
134-
--enable-flatfile
135-
--enable-inifile
136-
--with-tcadb
137-
--with-lmdb
138-
--with-qdbm
139-
`#--with-snmp`
140-
`#--with-unixODBC`
141-
`#--with-imap`
142-
--with-kerberos
143-
--with-imap-ssl
144-
`#--with-pdo-odbc=unixODBC,/usr`
145-
`#--with-pdo-oci=shared,instantclient,/opt/oracle/instantclient`
146-
`#--with-oci8=shared,instantclient,/opt/oracle/instantclient`
147-
--with-config-file-path=/etc
148-
--with-config-file-scan-dir=/etc/php.d
149-
`#--with-pdo-firebird`
150-
`#--with-pdo-dblib`
151-
--enable-werror
152-
CFLAGS='-fsanitize=undefined,address -DZEND_TRACK_ARENA_ALLOC' LDFLAGS='-fsanitize=undefined,address'
153-
CC=clang
154-
CXX=clang++
155-
- make -j2
156-
- make install
157-
- mkdir -p /etc/php.d
158-
- echo opcache.enable_cli=1 > /etc/php.d/opcache.ini
159-
- echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini
160-
# Specify opcache.preload_user as we're running as root.
161-
- echo opcache.preload_user=root >> /etc/php.d/opcache.ini
162-
tests_script:
163-
- export SKIP_IO_CAPTURE_TESTS=1
164-
- export CI_NO_IPV6=1
165-
- export MYSQL_TEST_HOST=127.0.0.1
166-
- export MYSQL_TEST_USER=root
167-
- export MYSQL_TEST_PASSWD=root
168-
- export PDO_MYSQL_TEST_DSN="mysql:host=127.0.0.1;dbname=test"
169-
- export PDO_MYSQL_TEST_USER=root
170-
- export PDO_MYSQL_TEST_PASS=root
171-
- >-
172-
sapi/cli/php run-tests.php
173-
-P -q -x -j2
174-
-g FAIL,BORK,LEAK,XLEAK
175-
--no-progress
176-
--offline
177-
--show-diff
178-
--show-slow 1000
179-
--set-timeout 120
180-
-d zend_extension=opcache.so
181-
-d opcache.enable_cli=1
182-
--asan
183-
1844
freebsd_task:
1855
name: FREEBSD_DEBUG_NTS
1866
freebsd_instance:
187-
image_family: freebsd-13-2
7+
image_family: freebsd-13-0
1888
env:
1899
ARCH: amd64
19010
install_script:
@@ -205,13 +25,12 @@ freebsd_task:
20525
tests_script:
20626
- export SKIP_IO_CAPTURE_TESTS=1
20727
- export CI_NO_IPV6=1
208-
- export STACK_LIMIT_DEFAULTS_CHECK=1
209-
- 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
28+
- sapi/cli/php run-tests.php -P -q -j2 -g FAIL,XFAIL,BORK,WARN,LEAK,XLEAK,SKIP --offline --show-diff --show-slow 1000 --set-timeout 120 -d zend_extension=opcache.so
21029

21130
arm_task:
21231
name: ARM_DEBUG_NTS
21332
arm_container:
214-
image: debian:12
33+
image: debian:11
21534
additional_containers:
21635
- name: mysql
21736
image: mysql:8
@@ -389,7 +208,6 @@ arm_task:
389208
-d opcache.jit=function
390209
-P -q -x -j2
391210
-g FAIL,BORK,LEAK,XLEAK
392-
--no-progress
393211
--offline
394212
--show-diff
395213
--show-slow 1000
@@ -402,7 +220,6 @@ arm_task:
402220
-d opcache.jit=tracing
403221
-P -q -x -j2
404222
-g FAIL,BORK,LEAK,XLEAK
405-
--no-progress
406223
--offline
407224
--show-diff
408225
--show-slow 1000

.gdbinit

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,7 @@ define ____print_ht
318318
set $n = $n - 1
319319
end
320320

321-
set $packed = $ht->u.v.flags & 4
322-
if $packed
321+
if $ht->u.v.flags & 4
323322
printf "Packed"
324323
else
325324
printf "Hash"
@@ -330,45 +329,36 @@ define ____print_ht
330329
set $i = 0
331330
set $ind = $ind + 1
332331
while $i < $num
333-
if $packed
334-
set $val = (zval*)($ht->arPacked + $i)
335-
set $key = (zend_string*)0
336-
set $h = $i
337-
else
338-
set $bucket = (Bucket*)($ht->arData + $i)
339-
set $val = &$bucket->val
340-
set $key = $bucket->key
341-
set $h = $bucket->h
342-
end
332+
set $p = (Bucket*)($ht->arData + $i)
343333
set $n = $ind
344-
if $val->u1.v.type > 0
334+
if $p->val.u1.v.type > 0
345335
while $n > 0
346336
printf " "
347337
set $n = $n - 1
348338
end
349339
printf "[%d] ", $i
350-
if $key
351-
____print_str $key->val $key->len
340+
if $p->key
341+
____print_str $p->key->val $p->key->len
352342
printf " => "
353343
else
354-
printf "%d => ", $h
344+
printf "%d => ", $p->h
355345
end
356346
if $arg1 == 0
357-
printf "%p\n", $val
347+
printf "%p\n", (zval *)&$p->val
358348
end
359349
if $arg1 == 1
360-
set $zval = $val
350+
set $zval = (zval *)&$p->val
361351
____printzv $zval 1
362352
end
363353
if $arg1 == 2
364-
printf "%s\n", (char*)$val->value.ptr
354+
printf "%s\n", (char*)$p->val.value.ptr
365355
end
366356
if $arg1 == 3
367-
set $func = (zend_function*)$val->value.ptr
357+
set $func = (zend_function*)$p->val.value.ptr
368358
printf "\"%s\"\n", $func->common.function_name->val
369359
end
370360
if $arg1 == 4
371-
set $const = (zend_constant *)$val->value.ptr
361+
set $const = (zend_constant *)$p->val.value.ptr
372362
____printzv $const 1
373363
end
374364
end
@@ -482,7 +472,7 @@ end
482472

483473
define print_pi
484474
set $pi = (zend_property_info *)$arg0
485-
set $initial_offset = ((uint32_t)(uintptr_t)(&((zend_object*)0)->properties_table[(0)]))
475+
set $initial_offset = ((uint32_t)(zend_uintptr_t)(&((zend_object*)0)->properties_table[(0)]))
486476
set $ptr_to_val = (zval*)((char*)$pi->ce->default_properties_table + $pi->offset - $initial_offset)
487477
printf "[%p] {\n", $pi
488478
printf " offset = %p\n", $pi->offset

.gitattributes

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,7 @@
1313
/UPGRADING merge=NEWS
1414
/UPGRADING.INTERNALS merge=NEWS
1515

16-
# Configure proper diff drivers to improve the context lines in the output
17-
# of git diff and to improve token splitting for --word-diff.
18-
*.phpt diff=php
19-
*.php diff=php
20-
*.[ch] diff=cpp
21-
22-
# Collapse generated files within a pull request.
23-
**/*_arginfo.h linguist-generated
24-
/Zend/zend_vm_execute.h linguist-generated
25-
/Zend/zend_vm_opcodes.[ch] linguist-generated
26-
27-
# The OSS fuzz files are bunary
28-
/ext/date/tests/ossfuzz*.txt binary
16+
# Enable commit diffs for binary PHP test files. Some PHP test files include
17+
# special characters, such as ASCII control characters. Git recognizes these as
18+
# binary and wouldn't generate diffs.
19+
*.phpt diff

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/actions/setup-x64/action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@ runs:
77
set -x
88
99
sudo service mysql start
10+
sudo service postgresql start
1011
sudo service slapd start
1112
mysql -uroot -proot -e "CREATE DATABASE IF NOT EXISTS test"
1213
# Ensure local_infile tests can run.
1314
mysql -uroot -proot -e "SET GLOBAL local_infile = true"
15+
sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'postgres';"
16+
sudo -u postgres psql -c "CREATE DATABASE test;"
1417
docker exec sql1 /opt/mssql-tools/bin/sqlcmd -S 127.0.0.1 -U SA -P "<YourStrong@Passw0rd>" -Q "create login pdo_test with password='password', check_policy=off; create user pdo_test for login pdo_test; grant alter, control to pdo_test;"
1518
sudo locale-gen de_DE
1619

0 commit comments

Comments
 (0)