mirror of
https://github.com/php/php-src.git
synced 2024-12-12 19:33:31 +08:00
da011a312a
* allow the user to specify a folder where files that can be sent via LOAD DATA LOCAL can exist * add mysqli.local_infile_directory for mysqli (ignored if mysqli.allow_local_infile is enabled) * add PDO::MYSQL_ATTR_LOCAL_INFILE_DIRECTORY for pdo_mysql (ignored if PDO::MYSQL_ATTR_LOCAL_INFILE is enabled) * add related tests * fixes for building with libmysql 8.x * small improvement in existing tests * update php.ini-[development|production] files Closes GH-6448. Co-authored-by: Nikita Popov <nikic@php.net>
31 lines
1.3 KiB
YAML
31 lines
1.3 KiB
YAML
steps:
|
|
- script: |
|
|
set -e
|
|
sudo service mysql start
|
|
sudo service postgresql start
|
|
sudo service slapd start
|
|
mysql -uroot -proot -e "CREATE DATABASE IF NOT EXISTS test"
|
|
# Ensure local_infile tests can run.
|
|
mysql -uroot -proot -e "SET GLOBAL local_infile = true"
|
|
sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'postgres';"
|
|
sudo -u postgres psql -c "CREATE DATABASE test;"
|
|
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;"
|
|
displayName: 'Setup'
|
|
- script: ./azure/setup-slapd.sh
|
|
displayName: 'Configure slapd'
|
|
- script: |
|
|
set -e
|
|
sudo cp ext/snmp/tests/snmpd.conf /etc/snmp
|
|
sudo cp ext/snmp/tests/bigtest /etc/snmp
|
|
sudo service snmpd restart
|
|
displayName: 'Configure snmpd'
|
|
- script: |
|
|
set -e
|
|
sudo groupadd -g 5000 vmail
|
|
sudo useradd -m -d /var/vmail -s /bin/false -u 5000 -g vmail vmail
|
|
sudo cp ext/imap/tests/setup/dovecot.conf /etc/dovecot/dovecot.conf
|
|
sudo cp ext/imap/tests/setup/dovecotpass /etc/dovecot/dovecotpass
|
|
sudo service dovecot restart
|
|
displayName: 'Configure IMAP'
|
|
|