]> granicus.if.org Git - php/log
php
5 years agoUpdate libmagic.patch [skip ci]
Anatol Belski [Fri, 8 Mar 2019 20:55:15 +0000 (21:55 +0100)]
Update libmagic.patch [skip ci]

5 years agoFix typo in libmagic version
Fabien Villepinte [Fri, 8 Mar 2019 11:43:37 +0000 (12:43 +0100)]
Fix typo in libmagic version

5 years agoFixed bug #77576 pull the libmagic implementation of gmtime_r
Anatol Belski [Fri, 8 Mar 2019 19:32:15 +0000 (20:32 +0100)]
Fixed bug #77576 pull the libmagic implementation of gmtime_r

PHP already has all the checks to handle the *_r function variants.
Thus, reusing it to get right symbols.

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Anatol Belski [Fri, 8 Mar 2019 14:55:34 +0000 (15:55 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Sync with behavior change in OpenSSL 1.1.1b
  fix news
  bump versions after release

5 years agoMerge branch 'PHP-7.1' into PHP-7.2
Anatol Belski [Fri, 8 Mar 2019 14:54:27 +0000 (15:54 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Sync with behavior change in OpenSSL 1.1.1b
  fix news
  bump versions after release

5 years agoSync with behavior change in OpenSSL 1.1.1b
Anatol Belski [Thu, 28 Feb 2019 11:48:47 +0000 (12:48 +0100)]
Sync with behavior change in OpenSSL 1.1.1b

A behavior change in revealed by some openssl_decrypt() based test,
where an encrypt API is used with a decrypt context. The EVP_Cipher*
functions will automatically choose the right operation depending on the
context passed.

(cherry picked from commit 19a44ffb7be91344550fa700830b8e62a73031ba)

5 years agows
Dmitry Stogov [Thu, 7 Mar 2019 10:59:18 +0000 (13:59 +0300)]
ws

5 years agoFixed bug #77345 (Stack Overflow caused by circular reference in garbage collection)
Dmitry Stogov [Thu, 7 Mar 2019 10:33:19 +0000 (13:33 +0300)]
Fixed bug #77345 (Stack Overflow caused by circular reference in garbage collection)

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Peter Kokot [Thu, 7 Mar 2019 00:05:22 +0000 (01:05 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Update editorconfig

5 years agoUpdate editorconfig
Peter Kokot [Sun, 17 Feb 2019 13:21:58 +0000 (14:21 +0100)]
Update editorconfig

Changes:
- New property max_line_length
- COMMIT_EDITMSG file added when writing commit messages
- Markdown files can have trimmed trailing whitespace also to simplify
  settings.
- https link used to EditorConfig page.
- Added also *.y, *.cpp, and *.inc files
- The tab_width moved to a new all files section

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Tue, 5 Mar 2019 23:35:37 +0000 (00:35 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix #77700: Writing truecolor images as GIF ignores interlace flag

5 years agoFix #77700: Writing truecolor images as GIF ignores interlace flag
Christoph M. Becker [Tue, 5 Mar 2019 23:27:16 +0000 (00:27 +0100)]
Fix #77700: Writing truecolor images as GIF ignores interlace flag

We  revert the interlace flag related part of commit ff2822a[1], since
contrary to the transparent color, the interlace flag is not retained
by `gdImageCreatePaletteFromTrueColor()`.  This also matches upstream
libgd.

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

5 years agofix news
Joe Watkins [Tue, 5 Mar 2019 19:50:07 +0000 (20:50 +0100)]
fix news

5 years agobump versions after release
Joe Watkins [Tue, 5 Mar 2019 17:28:47 +0000 (18:28 +0100)]
bump versions after release

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Remi Collet [Tue, 5 Mar 2019 06:32:54 +0000 (07:32 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  add NEWS entry

5 years agoadd NEWS entry
Remi Collet [Tue, 5 Mar 2019 06:32:24 +0000 (07:32 +0100)]
add NEWS entry

5 years agoUpdate NEWS
Christoph M. Becker [Mon, 4 Mar 2019 18:50:41 +0000 (19:50 +0100)]
Update NEWS

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Stanislav Malyshev [Mon, 4 Mar 2019 17:18:22 +0000 (09:18 -0800)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix bug #77630 - safer rename() procedure

5 years agoMerge branch 'PHP-7.1' into PHP-7.2
Stanislav Malyshev [Mon, 4 Mar 2019 17:17:14 +0000 (09:17 -0800)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Fix bug #77630 - safer rename() procedure

5 years agoFix bug #77630 - safer rename() procedure
Stanislav Malyshev [Sun, 3 Mar 2019 07:42:53 +0000 (23:42 -0800)]
Fix bug #77630 - safer rename() procedure

In order to rename safer, we do the following:
- set umask to 077 (unfortunately, not TS, so excluding ZTS)
- chown() first, to set proper group before allowing group access
- chmod() after, even if chown() fails

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Anatol Belski [Mon, 4 Mar 2019 13:30:01 +0000 (14:30 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix test portability

5 years agoFix test portability
Anatol Belski [Mon, 4 Mar 2019 13:28:47 +0000 (14:28 +0100)]
Fix test portability

5 years agoUpdate NEWS
Christoph M. Becker [Mon, 4 Mar 2019 12:47:14 +0000 (13:47 +0100)]
Update NEWS

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Mon, 4 Mar 2019 12:16:01 +0000 (13:16 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoFixed bug #77691
Nikita Popov [Mon, 4 Mar 2019 12:11:12 +0000 (13:11 +0100)]
Fixed bug #77691

We cannot replace an op1_def opcode with an ASSIGN, if it also has
a used res_def. Usually this doesn't happen because the res_def use
can be eliminated first. The example is a case where operand replacement
on the res_def use fails.

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Remi Collet [Mon, 4 Mar 2019 10:09:17 +0000 (11:09 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  add NEWS entries

5 years agoadd NEWS entries
Remi Collet [Mon, 4 Mar 2019 10:09:01 +0000 (11:09 +0100)]
add NEWS entries

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Stanislav Malyshev [Mon, 4 Mar 2019 07:33:48 +0000 (23:33 -0800)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix bug #77586 - phar_tar_writeheaders_int() buffer overflow

5 years agoMerge branch 'PHP-7.1' into PHP-7.2
Stanislav Malyshev [Mon, 4 Mar 2019 07:33:43 +0000 (23:33 -0800)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Fix bug #77586 - phar_tar_writeheaders_int() buffer overflow

5 years agoFix bug #77586 - phar_tar_writeheaders_int() buffer overflow
Stanislav Malyshev [Mon, 4 Mar 2019 06:33:38 +0000 (22:33 -0800)]
Fix bug #77586 - phar_tar_writeheaders_int() buffer overflow

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Stanislav Malyshev [Mon, 4 Mar 2019 06:20:42 +0000 (22:20 -0800)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Update NEWS
  Fix test error message
  Fix bug #77563 - Uninitialized read in exif_process_IFD_in_MAKERNOTE
  Fix bug #77540 - Invalid Read on exif_process_SOFn
  Fix integer overflows on 32-bits
  Fix #77431 SplFileInfo::__construct() accepts NUL bytes
  Fix bug #77396 - Null Pointer Dereference in phar_create_or_parse_filename

5 years agoMerge branch 'PHP-7.1' into PHP-7.2
Stanislav Malyshev [Mon, 4 Mar 2019 06:20:35 +0000 (22:20 -0800)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Update NEWS
  Fix test error message
  Fix bug #77563 - Uninitialized read in exif_process_IFD_in_MAKERNOTE
  Fix bug #77540 - Invalid Read on exif_process_SOFn
  Fix integer overflows on 32-bits
  Fix #77431 SplFileInfo::__construct() accepts NUL bytes
  Fix bug #77396 - Null Pointer Dereference in phar_create_or_parse_filename

5 years agoUpdate NEWS
Stanislav Malyshev [Mon, 4 Mar 2019 04:10:12 +0000 (20:10 -0800)]
Update NEWS

5 years agoFix test error message
Stanislav Malyshev [Mon, 4 Mar 2019 03:30:14 +0000 (19:30 -0800)]
Fix test error message

5 years agoFix bug #77563 - Uninitialized read in exif_process_IFD_in_MAKERNOTE
Stanislav Malyshev [Sat, 2 Mar 2019 23:07:40 +0000 (15:07 -0800)]
Fix bug #77563 - Uninitialized read in exif_process_IFD_in_MAKERNOTE

Also fix for bug #77659

5 years agoFix bug #77540 - Invalid Read on exif_process_SOFn
Stanislav Malyshev [Sat, 2 Mar 2019 21:38:00 +0000 (13:38 -0800)]
Fix bug #77540 - Invalid Read on exif_process_SOFn

5 years agoFix integer overflows on 32-bits
Stanislav Malyshev [Sat, 2 Mar 2019 07:25:45 +0000 (23:25 -0800)]
Fix integer overflows on 32-bits

5 years agoFix #77431 SplFileInfo::__construct() accepts NUL bytes
Christoph M. Becker [Wed, 9 Jan 2019 13:26:18 +0000 (14:26 +0100)]
Fix #77431 SplFileInfo::__construct() accepts NUL bytes

`SplFileInfo::__construct()` has to expect a path instead of a string,
analogous to `SplFileObject::__construct()`.

5 years agoFix bug #77396 - Null Pointer Dereference in phar_create_or_parse_filename
Stanislav Malyshev [Mon, 4 Mar 2019 02:22:32 +0000 (18:22 -0800)]
Fix bug #77396 - Null Pointer Dereference in phar_create_or_parse_filename

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Peter Kokot [Sat, 2 Mar 2019 17:52:01 +0000 (18:52 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Update NEWS
  Fix shared module generation on AIX bug #77676

5 years agoUpdate NEWS
Peter Kokot [Sat, 2 Mar 2019 17:50:33 +0000 (18:50 +0100)]
Update NEWS

5 years agoFix shared module generation on AIX bug #77676
Kevin Adler [Mon, 18 Feb 2019 17:01:23 +0000 (11:01 -0600)]
Fix shared module generation on AIX bug #77676

Makefiles for PHP extensions generated by phpize expect the PHP_MODULES
to contain a list of libtool .la files so that it can read the $dlname
variable from them by sourcing them in to a shell. On AIX, the code was
setting PHP_MODULES to a list of .so files, which meant the dlname was
blank, preventing the tests from being able to run.

Change the AIX code path in the PHP_SHARED_MODULE macro to match the
output on other platforms, using libtool .la files.

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Peter Kokot [Fri, 1 Mar 2019 21:44:37 +0000 (22:44 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Update NEWS
  Fix #77609: Tests from mailparse extension fails

5 years agoUpdate NEWS
Peter Kokot [Fri, 1 Mar 2019 21:44:22 +0000 (22:44 +0100)]
Update NEWS

5 years agoFix #77609: Tests from mailparse extension fails
Ralf Habacker [Fri, 1 Mar 2019 21:32:01 +0000 (22:32 +0100)]
Fix #77609: Tests from mailparse extension fails

Add installed php extensions to temporary created ini file

In php extensions configured with phpize, a temporarily generated
php.ini is used for testing, but currently contains no installed
PHP extensions, which is required by the mailparse extension,
for example.

Installed extensions must be added with their absolute path,
because the extension_dir parameter is already occupied.

See https://bugs.php.net/bug.php?id=77609

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Fri, 1 Mar 2019 13:55:15 +0000 (14:55 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agocurl_error: return an empty string if no error occurred
Jay Satiro [Fri, 1 Mar 2019 06:37:00 +0000 (01:37 -0500)]
curl_error: return an empty string if no error occurred

CURLOPT_ERRORBUFFER doc says "Do not rely on the contents of the
buffer unless an error code was returned." [1]

Prior to this change the error buffer was returned even if no error had
occurred, and that buffer may contain incorrect information in such a
case. [2]

[1]: https://curl.haxx.se/libcurl/c/CURLOPT_ERRORBUFFER.html
[2]: https://github.com/curl/curl/issues/3629

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Fri, 1 Mar 2019 13:51:37 +0000 (14:51 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoFix bug #77677: WCOREDUMP not available on all systems
Kevin Adler [Mon, 18 Feb 2019 16:32:38 +0000 (10:32 -0600)]
Fix bug #77677: WCOREDUMP not available on all systems

Add #ifdef WCOREDUMP around all uses.

Also Change core dump message to yes/no/unknown in lsapilib.

5 years agoCheck for NULL GC type in objects_store_del
Nikita Popov [Fri, 1 Mar 2019 13:32:11 +0000 (14:32 +0100)]
Check for NULL GC type in objects_store_del

This might happen if OBJ_RELEASE is used on an object that was already
released by GC. Specific cases of this issue were previously fixed in
ffaee27478a9cb338e40edeb5acf233f9cb67111 and
72104d2b6ecbbabd18de15f10739be5ce3dc9ce0, however the issue still
affects 3rd-party extensions using OBJ_RELEASE.

The whole GC type NULL + OBJ_IS_VALID + IS_FREE_CALLED system seems
overly complicated and can probably be simplified in 7.4.

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Derick Rethans [Thu, 28 Feb 2019 13:51:10 +0000 (13:51 +0000)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoMerge branch 'DateIntervalBogusData' into PHP-7.2
Derick Rethans [Thu, 28 Feb 2019 13:50:58 +0000 (13:50 +0000)]
Merge branch 'DateIntervalBogusData' into PHP-7.2

5 years agoFixed bug #50020 (DateInterval:createDateFromString() silently fails)
Derick Rethans [Thu, 28 Feb 2019 13:50:35 +0000 (13:50 +0000)]
Fixed bug #50020 (DateInterval:createDateFromString() silently fails)

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Anatol Belski [Thu, 28 Feb 2019 11:52:28 +0000 (12:52 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Sync with behavior change in OpenSSL 1.1.1b

5 years agoSync with behavior change in OpenSSL 1.1.1b
Anatol Belski [Thu, 28 Feb 2019 11:48:47 +0000 (12:48 +0100)]
Sync with behavior change in OpenSSL 1.1.1b

A behavior change in revealed by some openssl_decrypt() based test,
where an encrypt API is used with a decrypt context. The EVP_Cipher*
functions will automatically choose the right operation depending on the
context passed.

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Thu, 28 Feb 2019 08:58:30 +0000 (09:58 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoFixed bug #77669
Nikita Popov [Thu, 28 Feb 2019 08:58:01 +0000 (09:58 +0100)]
Fixed bug #77669

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Mon, 25 Feb 2019 12:01:18 +0000 (13:01 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoFix assertion in Exception::getMessage() if $message is a ref
Nikita Popov [Mon, 25 Feb 2019 12:00:16 +0000 (13:00 +0100)]
Fix assertion in Exception::getMessage() if $message is a ref

And same for other properties. Encountered in Symfony.

5 years agoFixed compiler warning
Xinchen Hui [Mon, 25 Feb 2019 07:04:04 +0000 (15:04 +0800)]
Fixed compiler warning

5 years agoUpdate NEWS
Xinchen Hui [Mon, 25 Feb 2019 07:00:37 +0000 (15:00 +0800)]
Update NEWS

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Xinchen Hui [Mon, 25 Feb 2019 07:00:23 +0000 (15:00 +0800)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fixed bug #77660 (Segmentation fault on break 2147483648)

5 years agoFixed bug #77660 (Segmentation fault on break 2147483648)
Xinchen Hui [Mon, 25 Feb 2019 07:00:14 +0000 (15:00 +0800)]
Fixed bug #77660 (Segmentation fault on break 2147483648)

5 years agoUpdate NEWS
Xinchen Hui [Mon, 25 Feb 2019 06:42:18 +0000 (14:42 +0800)]
Update NEWS

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Xinchen Hui [Mon, 25 Feb 2019 06:42:01 +0000 (14:42 +0800)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fixed bug #77664 (Segmentation fault when using undefined constant in custom wrapper)

5 years agoFixed bug #77664 (Segmentation fault when using undefined constant in custom wrapper)
Xinchen Hui [Mon, 25 Feb 2019 06:40:53 +0000 (14:40 +0800)]
Fixed bug #77664 (Segmentation fault when using undefined constant in custom wrapper)

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Jakub Zelenka [Sun, 24 Feb 2019 13:14:36 +0000 (13:14 +0000)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoPrint empty string in test for but 77390 just once
Jakub Zelenka [Sun, 24 Feb 2019 13:11:27 +0000 (13:11 +0000)]
Print empty string in test for but 77390 just once

5 years agoUse spaces instead of tabs in bug 77390 test
Jakub Zelenka [Sun, 24 Feb 2019 13:05:43 +0000 (13:05 +0000)]
Use spaces instead of tabs in bug 77390 test

5 years agoRemove result def during jmp_set optimization
Nikita Popov [Fri, 22 Feb 2019 12:41:47 +0000 (13:41 +0100)]
Remove result def during jmp_set optimization

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Fri, 22 Feb 2019 11:00:20 +0000 (12:00 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoFix inference warning about missing key type
Nikita Popov [Fri, 22 Feb 2019 10:55:16 +0000 (11:55 +0100)]
Fix inference warning about missing key type

5 years agoFix #77648: BOM in sapi/apache2handler/php_functions.c
Christoph M. Becker [Fri, 22 Feb 2019 10:03:52 +0000 (11:03 +0100)]
Fix #77648: BOM in sapi/apache2handler/php_functions.c

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Fri, 22 Feb 2019 09:13:07 +0000 (10:13 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoFixed bug #77652
Nikita Popov [Fri, 22 Feb 2019 09:11:54 +0000 (10:11 +0100)]
Fixed bug #77652

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Frank Denis [Thu, 21 Feb 2019 15:34:42 +0000 (16:34 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix bug #77646

5 years agoFix bug #77646
Frank Denis [Thu, 21 Feb 2019 15:10:27 +0000 (16:10 +0100)]
Fix bug #77646

5 years agoFix bug #77646
Frank Denis [Thu, 21 Feb 2019 15:10:27 +0000 (16:10 +0100)]
Fix bug #77646

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Thu, 21 Feb 2019 12:45:25 +0000 (13:45 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoFixed bug #77597
Nikita Popov [Thu, 21 Feb 2019 12:42:47 +0000 (13:42 +0100)]
Fixed bug #77597

The same variable was reused in two nested loops... The test doesn't
fail on 7.2, but I'm fixing this here anyway as the code is clearly
wrong, and probably erroneous in other situations.

5 years agoFix issue mentioned in #77302
Nikita Popov [Thu, 21 Feb 2019 11:04:49 +0000 (12:04 +0100)]
Fix issue mentioned in #77302

Apparently Serializable::serialize() can return NULL, which is encoded
as N;. As we do not allow back-references to non-object values in
PHP 7.3 we need to make sure that any references are also compiled to
N;.

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Wed, 20 Feb 2019 11:11:56 +0000 (12:11 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoOpenSSL: Improve non-blocking eof test
Abyr Valg [Sat, 9 Feb 2019 09:15:55 +0000 (12:15 +0300)]
OpenSSL: Improve non-blocking eof test

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christopher Jones [Wed, 20 Feb 2019 00:11:06 +0000 (11:11 +1100)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoCorrect skipif use for OCI8 password tests
Christopher Jones [Wed, 20 Feb 2019 00:10:57 +0000 (11:10 +1100)]
Correct skipif use for OCI8 password tests

5 years agoPrepare main branch for PHP 7.3.4
Christoph M. Becker [Tue, 19 Feb 2019 12:06:40 +0000 (13:06 +0100)]
Prepare main branch for PHP 7.3.4

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Remi Collet [Tue, 19 Feb 2019 11:47:00 +0000 (12:47 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  bump version to 7.2.17-dev

5 years agobump version to 7.2.17-dev
Remi Collet [Tue, 19 Feb 2019 11:46:52 +0000 (12:46 +0100)]
bump version to 7.2.17-dev

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Mon, 18 Feb 2019 13:04:15 +0000 (14:04 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoMake MADV_HUGEPAGE conditional on USE_ZEND_ALLOC_HUGE_PAGES
Nikita Popov [Mon, 18 Feb 2019 13:01:45 +0000 (14:01 +0100)]
Make MADV_HUGEPAGE conditional on USE_ZEND_ALLOC_HUGE_PAGES

There have been multiple reports of large slowdowns due to the
use of MADV_HUGEPAGE, so make it conditional on
USE_ZEND_ALLOC_HUGE_PAGES, just like MAP_HUGETLB already is.

5 years agoFix #77626: Persistence confusion in php_com_import_typelib()
Christoph M. Becker [Fri, 15 Feb 2019 17:50:13 +0000 (18:50 +0100)]
Fix #77626: Persistence confusion in php_com_import_typelib()

We apply only the most minimal fix here, and will cater to the
unnecessary re-allocation for PHP-7.4.

We don't need to add a regression test, since bug39606.phpt and
bug77621.phpt already show the misbehavior.

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Thu, 14 Feb 2019 23:37:39 +0000 (00:37 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix #77621: Already defined constants are not properly reported

5 years agoFix #77621: Already defined constants are not properly reported
Christoph M. Becker [Thu, 14 Feb 2019 23:35:21 +0000 (00:35 +0100)]
Fix #77621: Already defined constants are not properly reported

We must not check uninitialized values (i.e. `c.value`), and we have to
use proper types for printf-style formats (i.e. `char *` instead of
`zend_string *`).

5 years agoFixed bug #77612
Nikita Popov [Thu, 14 Feb 2019 09:42:59 +0000 (10:42 +0100)]
Fixed bug #77612

Port php_setcookie() to use the smart_str API to ensure that there
can be no string truncation issues.

5 years agoWork around compiler flag dependent ABI
Nikita Popov [Wed, 13 Feb 2019 15:52:46 +0000 (16:52 +0100)]
Work around compiler flag dependent ABI

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Peter Kokot [Wed, 13 Feb 2019 18:26:02 +0000 (19:26 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Refactor timelib.m4

5 years agoRefactor timelib.m4
Peter Kokot [Wed, 26 Sep 2018 17:29:25 +0000 (19:29 +0200)]
Refactor timelib.m4

The ext/date/lib is bundled library and also includes additional
timelib.m4 macros and checks specific for PHP.

All the checks in the timelib.m4 are already done in the PHP's
configure.ac:
- headers except for io.h and strings.h
- two functions checked strftime and gettimeofday
- if size of longint is 8
- if size of int is 4
- int32_t and uint32_t types using the PHP_CHECK_STDINT_TYPES

Macro `AC_TIMELIB_C_BIGENDIAN` defined in timelib.m4 is not used.

The two checkings for strtoll and atoll have been moved to date extension's
config0.m4 file.

Additional check for headers <io.h> and <strings.h> has been added to
config0.m4 of the date extension.

Therefore the timelib.m4 can be simplified and removed from the bundled
library to have easier maintenance in the later branches and also
upstream library.

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Johannes Schlüter [Tue, 12 Feb 2019 14:00:15 +0000 (15:00 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoMerge remote-tracking branch 'origin/PHP-7.3' into PHP-7.3
Johannes Schlüter [Tue, 12 Feb 2019 13:59:59 +0000 (14:59 +0100)]
Merge remote-tracking branch 'origin/PHP-7.3' into PHP-7.3

5 years agoMerge remote-tracking branch 'origin/PHP-7.2' into PHP-7.2
Johannes Schlüter [Tue, 12 Feb 2019 13:59:27 +0000 (14:59 +0100)]
Merge remote-tracking branch 'origin/PHP-7.2' into PHP-7.2