]> granicus.if.org Git - php/log
php
5 years agoRemove duplicate test file
Peter Kokot [Sun, 5 May 2019 22:02:36 +0000 (00:02 +0200)]
Remove duplicate test file

Files ext/oci8/tests/field_funcs0.phpt and
ext/oci8/tests/field_funcs.phpt are the same.

5 years agoRemove duplicate getimagesize_variation_003 test
peter279k [Sun, 5 May 2019 19:00:14 +0000 (03:00 +0800)]
Remove duplicate getimagesize_variation_003 test

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Jakub Zelenka [Sun, 5 May 2019 20:06:30 +0000 (21:06 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Jakub Zelenka [Sun, 5 May 2019 20:05:55 +0000 (21:05 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoFix OpenSSL online test for ca context
Jakub Zelenka [Sun, 5 May 2019 20:04:28 +0000 (21:04 +0100)]
Fix OpenSSL online test for ca context

The php.net is redirected to https so use nginx.org

5 years agoProperly initialize variable
Christoph M. Becker [Sun, 5 May 2019 15:45:16 +0000 (17:45 +0200)]
Properly initialize variable

Not all code paths assign to `handle`, even though it may be used, so
we make sure that it is initialized to a sane value in the first place.

5 years agoFix typo
Christoph M. Becker [Sun, 5 May 2019 13:40:33 +0000 (15:40 +0200)]
Fix typo

5 years agoRe-add common PDO tests to Firebird test suite
Christoph M. Becker [Sat, 4 May 2019 08:46:08 +0000 (10:46 +0200)]
Re-add common PDO tests to Firebird test suite

These have been inadvertently dropped when changing the test suite to
not require ext/interbase anymore, so we add them back.

We also change the required environment variable names to match the
usual PDO names.  Particularly, we replace `PDO_FIREBIRD_TEST_HOSTNAME`
and `_DATABASE` with the more flexible `PDO_FIREBIRD_TEST_DSN`.

5 years agoFix memory leak exhibited by bug_aaa.phpt
Christoph M. Becker [Sat, 4 May 2019 07:42:07 +0000 (09:42 +0200)]
Fix memory leak exhibited by bug_aaa.phpt

Since a statement may be executed multiple times, we need to free
already allocated storage for output data before allocating new
storage.

5 years agoFix undefined variable, and remove unused test-pdo
peter279k [Fri, 3 May 2019 08:22:57 +0000 (16:22 +0800)]
Fix undefined variable, and remove unused test-pdo

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Peter Kokot [Fri, 3 May 2019 15:33:05 +0000 (17:33 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Update `NEWS` with changes made at #4093

5 years agoUpdate `NEWS` with changes made at #4093
Javier Spagnoletti [Fri, 3 May 2019 01:32:37 +0000 (22:32 -0300)]
Update `NEWS` with changes made at #4093

5 years agoFix comment
Christoph M. Becker [Fri, 3 May 2019 14:43:53 +0000 (16:43 +0200)]
Fix comment

0x2d == 45, not 46.  However, `CURLMOPT_PUSHFUNCTION` is actually
available as of cURL 7.44.0[1], while we make the respective PHP
constants available only as of cURL 7.46.0[2].

[1] <https://curl.haxx.se/libcurl/c/CURLMOPT_PUSHFUNCTION.html>
[2] <http://git.php.net/?p=php-src.git;a=blob;f=ext/curl/interface.c;h=fdf855278eef6f32f26c49b54f56aca9bd7007c3;hb=HEAD#l1289>

5 years agoNEWS
Kalle Sommer Nielsen [Thu, 2 May 2019 20:34:46 +0000 (23:34 +0300)]
NEWS

5 years agoInclude the request method in CLI server logs
Simon Welsh [Thu, 2 May 2019 09:58:24 +0000 (19:58 +1000)]
Include the request method in CLI server logs

5 years agoRemove test-pcntl script
peter279k [Thu, 2 May 2019 20:11:44 +0000 (04:11 +0800)]
Remove test-pcntl script

5 years agoPDO_Firebird test update, round 2
Kalle Sommer Nielsen [Thu, 2 May 2019 20:19:27 +0000 (23:19 +0300)]
PDO_Firebird test update, round 2

- This renames the environment variables to: PDO_FIREBIRD_TEST_XXX to be in line with other PDO test suites
- Adds an skipif.inc file that skips the tests if no database is set
- The test suite can now be run without PDO_FIREBIRD_TEST_HOSTNAME

$ set PDO_FIREBIRD_TEST_HOSTNAME=localhost
$ set PDO_FIREBIRD_TEST_DATABASE=C:\dev\php.fdb
$ nmake test TESTS=ext/pdo_firebird/tests

5 years agoRewrite PDO_Firebird tests to not depend on ext/interbase
Kalle Sommer Nielsen [Thu, 2 May 2019 18:48:24 +0000 (21:48 +0300)]
Rewrite PDO_Firebird tests to not depend on ext/interbase

I have no idea how I managed to get this to work, but there is 4 new environment variables that
can be specified for the connection:

- PDO_FIREBIRD_USERNAME
- PDO_FIREBIRD_PASSWORD
- PDO_FIREBIRD_HOSTNAME
- PDO_FIREBIRD_DATABASE

(See testdb.inc for more info)

The only way I could get this to work on my local machine was with a DSN like:

- firebird:dbname=localhost:C:\php.fdb

Hence why the 'hostname' can be specified.

There is also a bit mess in regards to cleanup of this extension tests, but I really do not want to dwell down there, if someone dares to do so, then please be my guest.

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Thu, 2 May 2019 13:13:24 +0000 (15:13 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

5 years agoAdd more missing CURL_VERSION_* constants
Javier Spagnoletti [Tue, 30 Apr 2019 17:12:39 +0000 (14:12 -0300)]
Add more missing CURL_VERSION_* constants

And also check for CURL_VERSION_* constants in the sync-constants.php
script.

Related to request #72189: Add missing `CURL_VERSION_*` constants.

5 years agoImplement arrow functions
Nikita Popov [Thu, 2 May 2019 12:57:16 +0000 (14:57 +0200)]
Implement arrow functions

Per RFC: https://wiki.php.net/rfc/arrow_functions_v2

Co-authored-by: Levi Morrison <levim@php.net>
Co-authored-by: Bob Weinand <bobwei9@hotmail.com>
5 years agoRemove some more interbase leftovers
Kalle Sommer Nielsen [Wed, 1 May 2019 20:45:06 +0000 (23:45 +0300)]
Remove some more interbase leftovers

5 years agoFix typo
Kalle Sommer Nielsen [Wed, 1 May 2019 20:38:17 +0000 (23:38 +0300)]
Fix typo

5 years agoNEWS for ext/interbase unbundling
Kalle Sommer Nielsen [Wed, 1 May 2019 20:35:30 +0000 (23:35 +0300)]
NEWS for ext/interbase unbundling

5 years agoMove ext/interbase to pecl/database/interbase
Kalle Sommer Nielsen [Wed, 1 May 2019 20:27:04 +0000 (23:27 +0300)]
Move ext/interbase to pecl/database/interbase

https://wiki.php.net/rfc/deprecate-and-remove-ext-interbase

5 years agoUse ZEND_HASH_FOREACH with direct callback, instead of callbacks
Dmitry Stogov [Tue, 30 Apr 2019 11:50:01 +0000 (14:50 +0300)]
Use ZEND_HASH_FOREACH with direct callback, instead of callbacks

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Tue, 30 Apr 2019 07:36:31 +0000 (09:36 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Update NEWS wrt. sec fixes

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Tue, 30 Apr 2019 07:35:12 +0000 (09:35 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Update NEWS wrt. sec fixes

5 years agoUpdate NEWS wrt. sec fixes
Christoph M. Becker [Tue, 30 Apr 2019 07:34:53 +0000 (09:34 +0200)]
Update NEWS wrt. sec fixes

5 years agofix typo
蝦米 [Tue, 30 Apr 2019 06:40:51 +0000 (14:40 +0800)]
fix typo

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Stanislav Malyshev [Tue, 30 Apr 2019 07:06:10 +0000 (00:06 -0700)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix bug #77950 - Heap-buffer-overflow in _estrndup via exif_process_IFD_TAG

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Stanislav Malyshev [Tue, 30 Apr 2019 07:05:43 +0000 (00:05 -0700)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix bug #77950 - Heap-buffer-overflow in _estrndup via exif_process_IFD_TAG

5 years agoMerge branch 'PHP-7.1' into PHP-7.2
Stanislav Malyshev [Tue, 30 Apr 2019 07:05:32 +0000 (00:05 -0700)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Fix bug #77950 - Heap-buffer-overflow in _estrndup via exif_process_IFD_TAG

5 years agoFix bug #77950 - Heap-buffer-overflow in _estrndup via exif_process_IFD_TAG
Stanislav Malyshev [Tue, 30 Apr 2019 06:38:12 +0000 (23:38 -0700)]
Fix bug #77950 - Heap-buffer-overflow in _estrndup via exif_process_IFD_TAG

I do not completely understand what is going on there, but I am pretty
sure dir_entry <= offset_base if not a normal situation, so we better not
to rely on such dir_entry.

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Stanislav Malyshev [Tue, 30 Apr 2019 05:09:15 +0000 (22:09 -0700)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix #77821: Potential heap corruption in TSendMail()

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Stanislav Malyshev [Tue, 30 Apr 2019 05:09:10 +0000 (22:09 -0700)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix #77821: Potential heap corruption in TSendMail()

5 years agoMerge branch 'PHP-7.1' into PHP-7.2
Stanislav Malyshev [Tue, 30 Apr 2019 05:09:04 +0000 (22:09 -0700)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Fix #77821: Potential heap corruption in TSendMail()

5 years agoFix #77821: Potential heap corruption in TSendMail()
Christoph M. Becker [Fri, 29 Mar 2019 10:12:09 +0000 (11:12 +0100)]
Fix #77821: Potential heap corruption in TSendMail()

`zend_string_tolower()` returns a copy (not a duplicate) of the given
string, if it is already in lower case.  In this case we must not not
`zend_string_free()` both strings.  The cleanest solution is to call
` zend_string_release()` on both strings, which properly handles the
refcount.

5 years agoAlso, use ZEND_ACC_PRELOADED for classes
Dmitry Stogov [Mon, 29 Apr 2019 23:07:02 +0000 (02:07 +0300)]
Also, use ZEND_ACC_PRELOADED for classes

5 years agoRemove TSRM configuration header
Peter Kokot [Mon, 29 Apr 2019 20:34:43 +0000 (22:34 +0200)]
Remove TSRM configuration header

TSRM configuration header file was once created by separate autoconf
build system for TSRM and is with the current code not directly needed
like this anymore.

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Mon, 29 Apr 2019 15:24:18 +0000 (17:24 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix #77943: imageantialias($image, false); does not work

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Mon, 29 Apr 2019 15:23:45 +0000 (17:23 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix #77943: imageantialias($image, false); does not work

5 years agoFix #77943: imageantialias($image, false); does not work
Christoph M. Becker [Mon, 29 Apr 2019 15:23:16 +0000 (17:23 +0200)]
Fix #77943: imageantialias($image, false); does not work

Firstly, we must not call `gdImageSetAntiAliased()` (which sets the
color to anti-alias), but rather modify the `gdImage.AA` flag.
Furthermore, we have to actually use the supplied boolean value.

We also make sure that we don't attempt to enable anti-aliasing for
palette images.

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Mon, 29 Apr 2019 14:29:49 +0000 (16:29 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Add tests for bug77943

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Mon, 29 Apr 2019 14:29:29 +0000 (16:29 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Add tests for bug77943

5 years agoAdd tests for bug77943
Christoph M. Becker [Mon, 29 Apr 2019 14:29:08 +0000 (16:29 +0200)]
Add tests for bug77943

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Mon, 29 Apr 2019 14:18:54 +0000 (16:18 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix #77943: imageantialias($image, false); does not work

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Mon, 29 Apr 2019 14:17:58 +0000 (16:17 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix #77943: imageantialias($image, false); does not work

5 years agoFix #77943: imageantialias($image, false); does not work
Christoph M. Becker [Mon, 29 Apr 2019 14:14:26 +0000 (16:14 +0200)]
Fix #77943: imageantialias($image, false); does not work

Firstly, we must not call `gdImageSetAntiAliased()` (which sets the
color to anti-alias), but rather modify the `gdImage.AA` flag.
Furthermore, we have to actually use the supplied boolean value.

We also make sure that we don't attempt to enable anti-aliasing for
palette images.

5 years agoAdd UPGRADING entries
Nikita Popov [Mon, 29 Apr 2019 12:17:44 +0000 (14:17 +0200)]
Add UPGRADING entries

5 years agoUse PKG_CHECK_MODULES to detect the zip library
Hugh McMaster [Sat, 27 Apr 2019 08:47:10 +0000 (18:47 +1000)]
Use PKG_CHECK_MODULES to detect the zip library

5 years agoUse PKG_CHECK_MODULES to detect the libsodium library
Hugh McMaster [Wed, 24 Apr 2019 13:27:50 +0000 (23:27 +1000)]
Use PKG_CHECK_MODULES to detect the libsodium library

5 years agoAlways use pkg-config from the host architecture
Hugh McMaster [Wed, 24 Apr 2019 11:39:17 +0000 (21:39 +1000)]
Always use pkg-config from the host architecture

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Mon, 29 Apr 2019 11:53:57 +0000 (13:53 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Mon, 29 Apr 2019 11:53:21 +0000 (13:53 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoFixed bug #77945
Nikita Popov [Mon, 29 Apr 2019 11:51:26 +0000 (13:51 +0200)]
Fixed bug #77945

Make sure that we proper distinguish between empty string key and
no key during SDL serialization.

5 years agoProperly initialize out parameter
Christoph M. Becker [Mon, 29 Apr 2019 10:17:38 +0000 (12:17 +0200)]
Properly initialize out parameter

The MS docs on `SQLColAttribute()`[1] state regarding the
`NumericAttributePtr` parameter:

| Please note that some drivers may only write the lower 32-bit or
| 16-bit of a buffer and leave the higher-order bit unchanged.
| Therefore, applications should initialize the value to 0 before
| calling this function.

[1] <https://docs.microsoft.com/en-us/sql/odbc/reference/syntax/sqlcolattribute-function?view=sql-server-2017>

5 years agoAdds json_encode test for unpacked arrays
Jury [Mon, 29 Apr 2019 02:58:11 +0000 (22:58 -0400)]
Adds json_encode test for unpacked arrays

5 years agoExtend CURLFile to support streams
Christoph M. Becker [Mon, 29 Apr 2019 08:21:07 +0000 (10:21 +0200)]
Extend CURLFile to support streams

Due to former restrictions of the libcurl API, curl multipart/formdata
file uploads supported only proper files.  However, as of curl 7.56.0
the new `curl_mime_*()` API is available (and already supported by
PHP[1]), which allows us to support arbitrary *seekable* streams, which
is generally desirable, and particularly resolves issues with the
transparent Unicode and long part support on Windows (see bug #77711).

Note that older curl versions are still supported, but CURLFile is
still restricted to proper files in this case.

[1] <http://git.php.net/?p=php-src.git;a=commit;h=a83b68ba56714bfa06737a61af795460caa4a105>

5 years agoFix typo in TRY_ASSIGN macro name
Nikita Popov [Mon, 29 Apr 2019 07:58:45 +0000 (09:58 +0200)]
Fix typo in TRY_ASSIGN macro name

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Mon, 29 Apr 2019 07:07:13 +0000 (09:07 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix tests

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Mon, 29 Apr 2019 07:05:04 +0000 (09:05 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix tests

5 years agoFix tests
Christoph M. Becker [Mon, 29 Apr 2019 07:02:13 +0000 (09:02 +0200)]
Fix tests

These tests are obviously meant to test successful and failing uri:
DSNs, but did not pass proper file:// URIs, so actually ended up
testing for invalid data source URIs twice.  We fix this, and adjust
the expectations accordingly.

We also unfork the -win32 variant, since both test cases are almost
identical, and the expected error message may be either one.

5 years agoSimplify checking of *nix build tools
Peter Kokot [Sat, 27 Apr 2019 15:21:56 +0000 (17:21 +0200)]
Simplify checking of *nix build tools

The buildmk.stamp file has been created by the *nix build checking step
to run the check step only once. Instead of poluting the project root
directory, the stamp file can be also omitted. Performance difference is
very minimal to not justify having the stamp check at all today anymore.

This patch integrates the buildcheck.sh to buildconf script directly.

5 years agoRemove unused TSRM/readdir.h header
Peter Kokot [Sun, 28 Apr 2019 03:15:47 +0000 (05:15 +0200)]
Remove unused TSRM/readdir.h header

This was once part of TSRM but then got refactored into the windows
implementation win32/readdir.h directly. Instead of including such files
directly code should use zend_virtual_cwd.h which is already part of the
php.h file.

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Sun, 28 Apr 2019 21:50:43 +0000 (23:50 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Make MySQLPDOTest::extractVersion() more liberal

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Sun, 28 Apr 2019 21:49:19 +0000 (23:49 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Make MySQLPDOTest::extractVersion() more liberal

5 years agoMake MySQLPDOTest::extractVersion() more liberal
Christoph M. Becker [Sun, 28 Apr 2019 21:48:27 +0000 (23:48 +0200)]
Make MySQLPDOTest::extractVersion() more liberal

MySQL/MariaDB version strings may have suffixes which may contain dots;
for instance, Debian stretch has 5.5.5-10.1.37-MariaDB-0+deb9u1 or
such.  Therefore, we make the version extraction more liberal, and only
require that there are at least three parts separated by dot, and
ignore additional parts.

We also fix an erroneous test expectation, which would be triggered on
CI now, right away.  This patch has been provided by petk@.

5 years agoEnhance the buildconf force option
Peter Kokot [Sun, 28 Apr 2019 19:15:54 +0000 (21:15 +0200)]
Enhance the buildconf force option

The force option used to only remove the Autoconf cache files. Now it
also removes entire configure file so the configure file always gets
rebuilt when needs be done.

Additionally, the buildconf now also accepts the shorter version of the
force option:
  buildconf -f

5 years agoAutomatically remove aclocal.m4 if present
Peter Kokot [Thu, 25 Apr 2019 20:44:56 +0000 (22:44 +0200)]
Automatically remove aclocal.m4 if present

Commit 4e7064d173d2b5b22e159fcf52d22b10213b67b8 removed the usage of
`aclocal.m4`. When using Git repositories, many times cleaning of the
generated files is not done prior to running phpize or buildconf. For
example:

  git clone git://github.com/php/php-src
  cd php-src
  git checkout PHP-7.3
  ./buildconf
  ./configure
  git checkout PHP-7.4
  ./buildconf # -> warnings
  ./configure # -> errors

To not accidentally include `aclocal.m4` file in the generated configure
this enhances build system experience a bit more by removing aclocal.m4
file prior to start building configure file using phpize or buildconf.

5 years agoUpdate NEWS with added TLS 1.3 info
Jakub Zelenka [Sun, 28 Apr 2019 17:48:35 +0000 (18:48 +0100)]
Update NEWS with added TLS 1.3 info

5 years agoEnable TLS 1.3 by default
Jakub Zelenka [Sun, 10 Mar 2019 17:11:54 +0000 (17:11 +0000)]
Enable TLS 1.3 by default

5 years agoFix tests and logic for TLS 1.3
Jakub Zelenka [Sun, 3 Mar 2019 14:22:14 +0000 (14:22 +0000)]
Fix tests and logic for TLS 1.3

5 years agoAdded tls 1.3 support for PHP
codarrenvelvindron [Wed, 5 Dec 2018 04:23:34 +0000 (08:23 +0400)]
Added tls 1.3 support for PHP

5 years ago[ci skip] Remove outdated and redundant Apache README
Peter Kokot [Sun, 28 Apr 2019 00:29:08 +0000 (02:29 +0200)]
[ci skip] Remove outdated and redundant Apache README

PHP manual includes more information and a bit more updated than this
README.

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Peter Kokot [Sat, 27 Apr 2019 22:51:38 +0000 (00:51 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Update NEWS
  Update NEWS
  Fix #77024: SplFileObject::__toString() may return array

5 years agoUpdate NEWS
Peter Kokot [Sat, 27 Apr 2019 22:51:18 +0000 (00:51 +0200)]
Update NEWS

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Peter Kokot [Sat, 27 Apr 2019 22:50:54 +0000 (00:50 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Update NEWS
  Fix #77024: SplFileObject::__toString() may return array

5 years agoUpdate NEWS
Peter Kokot [Sat, 27 Apr 2019 22:50:40 +0000 (00:50 +0200)]
Update NEWS

5 years agoFix #77024: SplFileObject::__toString() may return array
Craig Duncan [Sat, 27 Apr 2019 22:44:48 +0000 (00:44 +0200)]
Fix #77024: SplFileObject::__toString() may return array

- Correct the behaviour of casting spl files to strings
- Add a test for Bug 77024

5 years agoLittle detection change proposal.
David Carlier [Fri, 26 Apr 2019 21:56:08 +0000 (22:56 +0100)]
Little detection change proposal.

As pointed out, the further path is called by open rather than shm_open.

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Sat, 27 Apr 2019 17:22:30 +0000 (19:22 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  PHP, meet MySQL

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Sat, 27 Apr 2019 17:22:10 +0000 (19:22 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  PHP, meet MySQL

5 years agoPHP, meet MySQL
Christoph M. Becker [Sat, 27 Apr 2019 17:21:51 +0000 (19:21 +0200)]
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.

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Sat, 27 Apr 2019 16:48:09 +0000 (18:48 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix #77944: Wrong meta pdo_type for bigint on LLP64

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Sat, 27 Apr 2019 16:46:57 +0000 (18:46 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix #77944: Wrong meta pdo_type for bigint on LLP64

5 years agoFix #77944: Wrong meta pdo_type for bigint on LLP64
Christoph M. Becker [Sat, 27 Apr 2019 16:46:27 +0000 (18:46 +0200)]
Fix #77944: Wrong meta pdo_type for bigint on LLP64

When actually fetching the data, bigint (unsigned) column values are
returned as integers on LLP64 architectures, so their pdo_type has to
be PDO::PARAM_INT accordingly.

5 years agoFix file name clash in zlib tests
Nikita Popov [Fri, 26 Apr 2019 13:05:42 +0000 (15:05 +0200)]
Fix file name clash in zlib tests

5 years agoEnable -Werror in CI
Nikita Popov [Tue, 23 Apr 2019 11:24:29 +0000 (13:24 +0200)]
Enable -Werror in CI

Add --enable-werror configure option and use it on Travis. It's not
possible to directly use CFLAGS, because it also affects configure
checks which often throw warnings.

We can't enable something similar for Windows builds at this time,
because they throw a lot more warnings.

5 years agoFix VirtualProtect() related Phar issues
Christoph M. Becker [Fri, 26 Apr 2019 07:09:22 +0000 (09:09 +0200)]
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.

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Thu, 25 Apr 2019 21:29:25 +0000 (23:29 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix #77940: test using outdated mon_thousands_sep for Swedish

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Thu, 25 Apr 2019 21:29:03 +0000 (23:29 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix #77940: test using outdated mon_thousands_sep for Swedish

5 years agoFix #77940: test using outdated mon_thousands_sep for Swedish
Christoph M. Becker [Thu, 25 Apr 2019 21:28:41 +0000 (23:28 +0200)]
Fix #77940: test using outdated mon_thousands_sep for Swedish

Of course, we should expect a comma, not a period.

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Thu, 25 Apr 2019 17:40:37 +0000 (19:40 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix #77940: test using outdated mon_thousands_sep for Swedish

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Thu, 25 Apr 2019 17:40:05 +0000 (19:40 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix #77940: test using outdated mon_thousands_sep for Swedish

5 years agoFix #77940: test using outdated mon_thousands_sep for Swedish
Christoph M. Becker [Thu, 25 Apr 2019 17:39:42 +0000 (19:39 +0200)]
Fix #77940: test using outdated mon_thousands_sep for Swedish

This time so that it works for all Windows 10 versions (hopefully).

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Thu, 25 Apr 2019 06:59:35 +0000 (08:59 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix #77940: test using outdated mon_thousands_sep for Swedish

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Thu, 25 Apr 2019 06:59:09 +0000 (08:59 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix #77940: test using outdated mon_thousands_sep for Swedish

5 years agoFix #77940: test using outdated mon_thousands_sep for Swedish
Christoph M. Becker [Thu, 25 Apr 2019 06:58:13 +0000 (08:58 +0200)]
Fix #77940: test using outdated mon_thousands_sep for Swedish

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Wed, 24 Apr 2019 22:06:15 +0000 (00:06 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix #77938: socket_get_option error