Commit Graph

125 Commits

Author SHA1 Message Date
Ilija Tovilo
182c8acf43
Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1:
  Prepare for Windows CI with Github Actions
2022-10-09 18:48:07 +02:00
Michael Voříšek
b43e49437c
Prepare for Windows CI with Github Actions 2022-10-09 18:44:59 +02:00
Christoph M. Becker
04eb8b4499
Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1:
  Work around dl(mysqli) issue with OPcache on AppVeyor
2022-09-17 12:06:54 +02:00
Christoph M. Becker
bfb4ee7c98
Work around dl(mysqli) issue with OPcache on AppVeyor
As described in #8508, if OPcache is enabled, ext/mysqli can't be
dl()'d; we work around that by loading the extension on startup.

Closes GH-9557.
2022-09-17 12:05:35 +02:00
Ilija Tovilo
0028c242f0
Add --[no-]progress option to run-tests.php (#9255)
Previously, adding the -g argument would disable progress, even locally.
Now it needs to be disabled explicitly.
2022-08-11 20:58:15 +02:00
Christoph M. Becker
e86acb1861
Run POD_Firebird tests on AppVeyor CI
We also fix gh8626.phpt for the firebird driver by allowing negative
status codes as well.  We mark the other two test cases as xfail for
the firebird driver for now.

Closes GH-8666.
2022-06-10 12:22:44 +02:00
Christoph M. Becker
cb3bc659bf
Revert "Run PDO_Firebird tests on AppVeyor CI"
This reverts commit b2d1d1b47d, because
of many test failures which need closer investigation.
2022-06-09 12:00:15 +02:00
Christoph M. Becker
b2d1d1b47d
Run PDO_Firebird tests on AppVeyor CI
Closes GH-8666.
2022-06-09 11:02:47 +02:00
Christoph M. Becker
d2bb59cc66
Test standard mail and imap on Windows CI
We setup the currently latest version of hMailServer[1] as mail server,
and configure according to imap_include.inc.  To not require further
configuration, we adapt mail_skipif.inc and mail_include.inc to match
that configuration.  However, we also change the default domain to the
reserved `example.com`.

We also update the standard mail tests to use the `--EXTENSIONS--`
section (instead of skipping the tests if ext/imap is not available).

Finally, we fix bug80751.phpt to expect the configured To and Cc mail
addresses.

[1] <https://www.hmailserver.com/>

Closes GH-8357.
2022-05-12 14:58:22 +02:00
Christoph M. Becker
97ea6ad0e6
Test snmp on Windows CI
We use the snmpd which is now bundled with the net-snmp dependency, and
the MIBS which are also shipped with it.

We also fix the tests/snmpd.conf, and mark two failing tests as XFAIL.

Closes GH-8503.
2022-05-11 13:24:23 +02:00
Christoph M. Becker
b9f9d4a0a5
Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0:
  Use php/php-sdk-binary-tools.git for AppVeyor builds
2021-12-05 13:53:59 +01:00
Christoph M. Becker
582a291c98
Use php/php-sdk-binary-tools.git for AppVeyor builds 2021-12-05 13:51:50 +01:00
Christoph M. Becker
dff3219ce0
Provide bless_tests.patch for failing tests on AppVeyor
In case any tests are failing with the `--bless` option, we provide the
resulting `git diff` as artifact.  This is particularly helpful for PR
authors who don't have a Windows environment at hand.

Closes GH-7204.
2021-07-17 16:57:13 +02:00
Christoph M. Becker
139a73b5a4
Improve performance of AppVeyor test runs
We only load a minimum set of extensions, and rely on dynamic loading
of others due to `--EXTENSION--` triggers.  We do not run the imap,
ldap and snmp test suites, because most of the tests would be skipped
after timeouts anyway.

Closes GH-7150.
2021-06-14 23:36:17 +02:00
Christoph M. Becker
aee1daa81b
Remove temporary workaround for installing libavif
libavif is now part of the 8.1 and master series.
2021-06-13 22:49:59 +02:00
Ben Morss
81f6d36c90 Add avif support to ext/gd
This backports avif support from upstream libgd into bundled libgd
and exposes the functionality through new imagecreatefromavif()
and imageavif() functions.

Closes GH-7026.

Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2021-06-10 12:32:30 +02:00
Christoph M. Becker
ae6c1b0c4f
Don't add unnecessary extensions to the test INI for AppVeyor
Several extension test suites have already been changed to rely on the
new behavior of `--EXTENSIONS--` section, i.e. to dynamically load
required extensions on demand.  Thus, there is no need to load these
extensions always, which should improve the performance of executing
the tests.
2021-05-27 11:39:42 +02:00
Christoph M. Becker
048cb9be05
Merge branch 'PHP-8.0'
* PHP-8.0:
  Properly push test artifacts
2021-05-16 14:47:15 +02:00
Christoph M. Becker
a75a4a4a70
Merge branch 'PHP-7.4' into PHP-8.0
* PHP-7.4:
  Properly push test artifacts
2021-05-16 14:46:31 +02:00
Christoph M. Becker
fb86a176ba
Properly push test artifacts
Cf. https://www.appveyor.com/docs/packaging-artifacts/#pushing-artifacts-from-scripts.

Closes GH-6990.
2021-05-16 14:45:06 +02:00
Josh Soref
462da6e09c Fix spelling and grammar mistakes
This PR corrects misspellings identified by the check-spelling action.

The misspellings have been reported at jsoref@b6ba3e2#commitcomment-48946465

The action reports that the changes in this PR would make it happy: jsoref@602417c

Closes GH-6822.
2021-04-13 12:09:37 +02:00
Max Semenik
1f3f7c4374 CI: add --depth 1 to git clone for speed
Closes GH-6690.
2021-02-15 09:49:50 +01:00
Dmitry Stogov
d05e88250a Revert "Disable tracing JIT on AppVeyor"
This reverts commit a986933dde.

	Tracing JIT for Windows is already fixed.
2020-07-22 20:03:50 +03:00
Christoph M. Becker
a986933dde Disable tracing JIT on AppVeyor
This is a temporary measure until the current issues[1] are resolved.

[1] <0e1e991a89 (commitcomment-40805659)>
2020-07-22 08:55:52 +02:00
Christoph M. Becker
3a031e0b03 Drop hard-coded /W3 default in favor of custom CFLAGS
Building with `/W3` shows an awful lot of warnings on Windows, so it's
really hard to spot the more important ones.  Since it is not possible
to override the hard-coded `/W3`, we drop it altogether, so MSVC uses
the default `/W1`.  Users are encouraged to increase the warning level
via the environment variable `CFLAGS` before doing configure.

We also enable `/WX` (treat warnings as errors) for AppVeyor CI, using
`/W1` for now, since otherwise the build would fail.
2020-06-05 11:17:06 +02:00
Christoph M. Becker
d2508ef947 Merge branch 'PHP-7.4'
* PHP-7.4:
  Enable phpdbg tests on AppVeyor
  Make phpdbg test portable
  Fix several mostly Windows related phpdbg bugs
  Fix #73926: phpdbg will not accept input on restart execution
2020-05-26 17:46:56 +02:00
Christoph M. Becker
9fad9addb5 Enable phpdbg tests on AppVeyor 2020-05-26 17:45:35 +02:00
Christoph M. Becker
6549891602 Update AppVeyor for enchant-2
Cf. <df5a4586e0>
2020-05-11 16:18:03 +02:00
Christoph M. Becker
51dfba3d7b Show all tests on AppVeyor
This is a temporary measure to try to resolve the often failing
mysqli_insert_packet_overflow.phpt issue.  Unfortunately, I have not
been able to reproduce the test failure locally, or in my php-src fork.
2020-04-27 14:57:07 +02:00
Christoph M. Becker
7574823911 Enable JIT for AppVeyor CI
This is not supposed to bring any test performance optimization, but
allows us to test basic JIT functionality on Windows.
2020-04-17 14:17:14 +02:00
Christoph M. Becker
8812350c7a Fix AppVeyor build
`OPENSSL_CONF` must not contain quotes, but actually, we want to test
the default path, so we don't even set `OPENSLL_CONF` anymore.
2019-10-01 11:51:07 +02:00
Christoph M. Becker
d596fda993 Fix AppVeyor setup wrt. changed OpenSSL default config path 2019-10-01 10:01:34 +02:00
Sjon Hortensius
a7881df281 PDO: support username & password specified in DSN 2019-07-02 12:09:38 +02:00
Anatol Belski
d632bede91 Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
  Fix var name
2019-05-31 20:50:53 +02:00
Anatol Belski
06eef1f70f Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
  Fix var name
2019-05-31 20:50:17 +02:00
Anatol Belski
d293f6dcff Fix var name 2019-05-31 20:49:42 +02:00
Christoph M. Becker
1b0a33ec59 Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
  Fix typo
2019-05-10 18:46:18 +02:00
Christoph M. Becker
49b5ffe48c Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
  Fix typo
2019-05-10 18:44:47 +02:00
Christoph M. Becker
3759c6316d Fix typo
Since opcache.enable defaults to 1 anyway, this change is only
cosmetic.
2019-05-10 18:43:40 +02:00
Kalle Sommer Nielsen
eaab0a2b6f Remove some more interbase leftovers 2019-05-01 23:45:06 +03:00
Christoph M. Becker
d0719be436 Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
  PHP, meet MySQL
2019-04-27 19:22:30 +02:00
Christoph M. Becker
3309f2fbb9 Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
  PHP, meet MySQL
2019-04-27 19:22:10 +02:00
Christoph M. Becker
57d5dc5688 PHP, meet MySQL
All pdo_mysql tests are skipped on AppVeyor because "No such host is
known".  We change the DSN to use semicolons instead of spaces to fix
that.
2019-04-27 19:21:51 +02:00
Christoph M. Becker
be74a00464 Fix VirtualProtect() related Phar issues
We must not (try to) modify shared values, but rather have to use our
own copies, if unixified filenames are required on Windows.  To avoid
excessive string duplication, we add checks whether the filenames are
already unixified (i.e. do not contain backslashes).  To improve the
performance if we need to copy strings, we use do_alloca() and friends.

Besides generally being somewhat messy, the handling of unixified
filenames is still suboptimal performance-wise, but we leave this for a
future cleanup, and focus on fixing the issue at hand for now.

We also enable opcache.protect_memory for the AppVeyor CI.
2019-04-26 09:09:22 +02:00
Peter Kokot
4ff2d96cc9 Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
  Update Git repository for Windows build tool kit
2019-04-19 21:11:23 +02:00
Peter Kokot
d1bce98597 Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
  Update Git repository for Windows build tool kit
2019-04-19 21:11:01 +02:00
Peter Kokot
06fa35568e Update Git repository for Windows build tool kit 2019-04-19 21:09:46 +02:00
Nikita Popov
a0b527eb33 Disable test parallelization on AppVeyor with opcache
This is too unstable due to shared opcache state. Disabling it until
this issue is resolved to reduce the number of spurious failures.
2019-02-28 10:57:24 +01:00
Nikita Popov
e3d502f4de Enable parallel tests on AppVeyor
I'll be keeping an eye on spurious failures resulting from this...
2019-02-21 11:05:36 +01:00
Peter Kokot
1ad08256f3 Sync leading and final newlines in source code files
This patch adds missing newlines, trims multiple redundant final
newlines into a single one, and trims redundant leading newlines.

According to POSIX, a line is a sequence of zero or more non-' <newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.

C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."

Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
2018-10-14 12:56:38 +02:00