]>
granicus.if.org Git - php/log
Peter Kokot [Thu, 14 Mar 2019 23:14:33 +0000 (00:14 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Add tests to XMLReader
Thiago Carvalho [Thu, 12 Oct 2017 06:41:21 +0000 (08:41 +0200)]
Add tests to XMLReader
Peter Kokot [Thu, 14 Mar 2019 19:41:19 +0000 (20:41 +0100)]
Fix failing test
Since
aad39879f2d2e89de105c4f87d334ee129b4321c accessing undefined
constants always throws an Error exception.
Peter Kokot [Thu, 14 Mar 2019 19:21:30 +0000 (20:21 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Clean build system
Peter Kokot [Wed, 13 Mar 2019 21:50:53 +0000 (22:50 +0100)]
Clean build system
Changes:
- AC_TYPE_SIZE_T called on only one place (configure.ac)
- AC_FUNC_ALLOCA called on only one place (configure.ac)
- AC_TYPE_UID_T called on only one place (configure.ac)
- HAVE_STRSTR removed since strstr is part of C89 standard [1]
- Remove checks for strtol and strpbrk
- Checking for the presence of perror function is not needed anymore
since it is part of C89 standard and PHP calls it unconditionally.
- Checking for functions strdup, setenv, strerror, and memmove done only
on one place (configure.ac)
- outdated check for snprintf removed
1: https://port70.net/~nsz/c/c89/c89-draft.html
Peter Kokot [Thu, 14 Mar 2019 18:43:45 +0000 (19:43 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Remove HAVE_STRFTIME
Peter Kokot [Wed, 13 Mar 2019 22:14:37 +0000 (23:14 +0100)]
Remove HAVE_STRFTIME
Function strftime is part of the C89 standard [1] and current systems
don't need to check for its presence anymore.
Additionally, checks for strftime function in tests have been removed
since the PHP strftime function is now always available.
1: https://port70.net/~nsz/c/c89/c89-draft.html
Nikita Popov [Thu, 14 Mar 2019 16:33:17 +0000 (17:33 +0100)]
Fix weakref object handlers for master
Nikita Popov [Thu, 14 Mar 2019 16:30:53 +0000 (17:30 +0100)]
Merge branch 'PHP-7.4'
c9s [Tue, 12 Mar 2019 12:21:38 +0000 (20:21 +0800)]
ext/session: remove the redundant convert_to_long
Nikita Popov [Thu, 14 Mar 2019 16:26:36 +0000 (17:26 +0100)]
Merge branch 'PHP-7.4'
Nikita Popov [Thu, 14 Mar 2019 16:26:17 +0000 (17:26 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Thu, 14 Mar 2019 16:25:44 +0000 (17:25 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Thu, 14 Mar 2019 16:24:50 +0000 (17:24 +0100)]
Fixed bug #77742
By avoiding integer overflow in the implementation entirely. The
multiplication was already explicitly checked for overflow, so also
add a check for the addition and remove the overflow checks after
the calculation.
Xinchen Hui [Thu, 14 Mar 2019 08:47:30 +0000 (16:47 +0800)]
Merge branch 'PHP-7.3'
* PHP-7.3:
updated NEWS
Fixed bug #77738 (Nullptr deref in zend_compile_expr)
Xinchen Hui [Thu, 14 Mar 2019 08:47:16 +0000 (16:47 +0800)]
updated NEWS
Xinchen Hui [Thu, 14 Mar 2019 08:46:46 +0000 (16:46 +0800)]
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
Fixed bug #77738 (Nullptr deref in zend_compile_expr)
Xinchen Hui [Thu, 14 Mar 2019 08:46:04 +0000 (16:46 +0800)]
Fixed bug #77738 (Nullptr deref in zend_compile_expr)
Dmitry Stogov [Thu, 14 Mar 2019 00:02:10 +0000 (03:02 +0300)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Implemented a faster way to access predefined TSRM resources - CG(), EG(), etc.
Dmitry Stogov [Thu, 14 Mar 2019 00:01:01 +0000 (03:01 +0300)]
Implemented a faster way to access predefined TSRM resources - CG(), EG(), etc.
Peter Kokot [Wed, 13 Mar 2019 19:56:51 +0000 (20:56 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Integrate README.EXT_SKEL to help option
Peter Kokot [Mon, 11 Mar 2019 01:01:25 +0000 (02:01 +0100)]
Integrate README.EXT_SKEL to help option
- Sync help output using heredoc
- Add extension building instructions
- Building with phpize is preferred option. Mention also tests
- Refactor print_success()
Claude Pache [Wed, 13 Mar 2019 17:30:35 +0000 (18:30 +0100)]
test reversed
Joe Watkins [Wed, 13 Mar 2019 10:38:37 +0000 (11:38 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Fix duplicate symbols _zend_ce_weakrefs
Peter Kokot [Wed, 13 Mar 2019 00:08:38 +0000 (01:08 +0100)]
Fix duplicate symbols _zend_ce_weakrefs
The zend_ce_weakref need to be external...
Peter Kokot [Tue, 12 Mar 2019 23:16:56 +0000 (00:16 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
[ci skip] Mention removed m4 macros
Peter Kokot [Tue, 12 Mar 2019 23:16:34 +0000 (00:16 +0100)]
[ci skip] Mention removed m4 macros
Anatol Belski [Tue, 12 Mar 2019 20:35:34 +0000 (21:35 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Sync with ZEND_ENABLE_STATIC_TSRMLS_CACHE enablement in ext/mbstring
Anatol Belski [Tue, 12 Mar 2019 20:33:43 +0000 (21:33 +0100)]
Sync with ZEND_ENABLE_STATIC_TSRMLS_CACHE enablement in ext/mbstring
Dmitry Stogov [Tue, 12 Mar 2019 19:19:36 +0000 (22:19 +0300)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Better data packing
Dmitry Stogov [Tue, 12 Mar 2019 19:19:11 +0000 (22:19 +0300)]
Better data packing
Dmitry Stogov [Tue, 12 Mar 2019 14:36:02 +0000 (17:36 +0300)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Avoid reinitailization of ZTS cache pointer. Initialize it once in TSRM.c
Dmitry Stogov [Tue, 12 Mar 2019 14:35:50 +0000 (17:35 +0300)]
Avoid reinitailization of ZTS cache pointer. Initialize it once in TSRM.c
Dmitry Stogov [Tue, 12 Mar 2019 13:58:16 +0000 (16:58 +0300)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Fixed ZTS cache usage
Dmitry Stogov [Tue, 12 Mar 2019 13:58:02 +0000 (16:58 +0300)]
Fixed ZTS cache usage
Dmitry Stogov [Tue, 12 Mar 2019 12:25:59 +0000 (15:25 +0300)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Fixed ZTS cache usage
Dmitry Stogov [Tue, 12 Mar 2019 12:25:51 +0000 (15:25 +0300)]
Fixed ZTS cache usage
Dmitry Stogov [Tue, 12 Mar 2019 12:14:00 +0000 (15:14 +0300)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Fixed ZTS cache usage
Dmitry Stogov [Tue, 12 Mar 2019 12:13:52 +0000 (15:13 +0300)]
Fixed ZTS cache usage
Dmitry Stogov [Tue, 12 Mar 2019 12:06:11 +0000 (15:06 +0300)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Fixed ZTS cache usage
Dmitry Stogov [Tue, 12 Mar 2019 12:05:56 +0000 (15:05 +0300)]
Fixed ZTS cache usage
Dmitry Stogov [Tue, 12 Mar 2019 11:17:14 +0000 (14:17 +0300)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Switch to use ZTS cache
Dmitry Stogov [Tue, 12 Mar 2019 11:15:47 +0000 (14:15 +0300)]
Switch to use ZTS cache
Dmitry Stogov [Tue, 12 Mar 2019 10:44:25 +0000 (13:44 +0300)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Cleanup unused module globals
Dmitry Stogov [Tue, 12 Mar 2019 10:44:05 +0000 (13:44 +0300)]
Cleanup unused module globals
Dmitry Stogov [Tue, 12 Mar 2019 09:07:54 +0000 (12:07 +0300)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Fixed ZTS cache usage
Dmitry Stogov [Tue, 12 Mar 2019 09:07:25 +0000 (12:07 +0300)]
Fixed ZTS cache usage
Nikita Popov [Tue, 12 Mar 2019 08:58:38 +0000 (09:58 +0100)]
Merge branch 'PHP-7.4'
Nikita Popov [Tue, 12 Mar 2019 08:58:29 +0000 (09:58 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Tue, 12 Mar 2019 08:57:51 +0000 (09:57 +0100)]
Fixed bug #77722
Remi Collet [Tue, 12 Mar 2019 07:26:36 +0000 (08:26 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
add --enable-rtld-now in upgrade info
use DL_LOAD in litespeed
add --enable-rtld-now build option to change dlopen behavior
Remi Collet [Tue, 12 Mar 2019 07:26:22 +0000 (08:26 +0100)]
add --enable-rtld-now in upgrade info
Remi Collet [Mon, 11 Mar 2019 12:39:22 +0000 (13:39 +0100)]
use DL_LOAD in litespeed
Remi Collet [Mon, 11 Mar 2019 12:38:58 +0000 (13:38 +0100)]
add --enable-rtld-now build option to change dlopen behavior
Joe Watkins [Tue, 12 Mar 2019 05:53:07 +0000 (06:53 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
weakrefs upgrading note
Joe Watkins [Tue, 12 Mar 2019 05:52:43 +0000 (06:52 +0100)]
weakrefs upgrading note
Joe Watkins [Mon, 11 Mar 2019 23:37:28 +0000 (00:37 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
zend_weakrefs
Joe Watkins [Thu, 10 May 2018 12:58:10 +0000 (14:58 +0200)]
zend_weakrefs
Anatol Belski [Mon, 11 Mar 2019 20:00:18 +0000 (21:00 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Die hard if mc.exe or mt.exe not found
Anatol Belski [Mon, 11 Mar 2019 19:59:51 +0000 (20:59 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
Die hard if mc.exe or mt.exe not found
Anatol Belski [Mon, 11 Mar 2019 19:59:23 +0000 (20:59 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
Die hard if mc.exe or mt.exe not found
Anatol Belski [Mon, 11 Mar 2019 19:41:45 +0000 (20:41 +0100)]
Die hard if mc.exe or mt.exe not found
Even configure would pass, that producess quite subtle build errors
which are better to avoid at configure stage already.
Christoph M. Becker [Mon, 11 Mar 2019 15:32:16 +0000 (16:32 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
SQLite3: add DEFENSIVE config for SQLite >= 3.26.0 as a mitigation strategy against potential security flaws
Christoph M. Becker [Mon, 11 Mar 2019 15:31:26 +0000 (16:31 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
SQLite3: add DEFENSIVE config for SQLite >= 3.26.0 as a mitigation strategy against potential security flaws
Christoph M. Becker [Mon, 11 Mar 2019 15:28:46 +0000 (16:28 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
SQLite3: add DEFENSIVE config for SQLite >= 3.26.0 as a mitigation strategy against potential security flaws
bohwaz [Sun, 16 Dec 2018 21:52:37 +0000 (22:52 +0100)]
SQLite3: add DEFENSIVE config for SQLite >= 3.26.0 as a mitigation strategy against potential security flaws
Nikita Popov [Mon, 11 Mar 2019 14:36:48 +0000 (15:36 +0100)]
Merge branch 'PHP-7.4'
Nikita Popov [Mon, 11 Mar 2019 14:36:40 +0000 (15:36 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Mon, 11 Mar 2019 14:36:16 +0000 (15:36 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Mon, 11 Mar 2019 14:35:02 +0000 (15:35 +0100)]
Fixed bug #76717
Print INT_MIN as -INT_MAX-1 to avoid it getting parsed as a float
literal due to integer overflow.
Nikita Popov [Mon, 11 Mar 2019 13:33:07 +0000 (14:33 +0100)]
Merge branch 'PHP-7.4'
Nikita Popov [Mon, 11 Mar 2019 12:56:22 +0000 (13:56 +0100)]
Free trampolines from get_closure in is_callable
Also extract this logic into a function, as it's duplicated a few times.
Dmitry Stogov [Mon, 11 Mar 2019 12:42:41 +0000 (15:42 +0300)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Closure::fromCallable() supports only regular methods and magic method invoked through __call()/__callStatic(). It doesn't support method of internal classes invoked through C object or class handlers. This commit prevents crash described at bug #77708, but doesn't implement the desired behavior.
Dmitry Stogov [Mon, 11 Mar 2019 12:39:34 +0000 (15:39 +0300)]
Closure::fromCallable() supports only regular methods and magic method invoked through __call()/__callStatic().
It doesn't support method of internal classes invoked through C object or class handlers.
This commit prevents crash described at bug #77708, but doesn't implement the desired behavior.
Dmitry Stogov [Mon, 11 Mar 2019 12:39:18 +0000 (15:39 +0300)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Reset fields
Dmitry Stogov [Mon, 11 Mar 2019 12:38:49 +0000 (15:38 +0300)]
Reset fields
Dmitry Stogov [Mon, 11 Mar 2019 11:26:52 +0000 (14:26 +0300)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Fixed bug #77707 (FFI loses type information for opaque types)
Dmitry Stogov [Mon, 11 Mar 2019 11:26:17 +0000 (14:26 +0300)]
Fixed bug #77707 (FFI loses type information for opaque types)
Nikita Popov [Tue, 19 Feb 2019 16:11:00 +0000 (17:11 +0100)]
Adjust tests for zpp TypeError change
Nikita Popov [Wed, 6 Mar 2019 10:46:34 +0000 (11:46 +0100)]
Remove some unnecessary error handler setting
A few non-standard exceptions thrown on zpp failures will change to
TypeError due to this.
Nikita Popov [Tue, 5 Mar 2019 11:55:33 +0000 (12:55 +0100)]
Intl: Don't separately report "bad arguments" errors
zpp will be throwing for these now, don't report them in addition to
that.
Nikita Popov [Tue, 5 Feb 2019 09:07:07 +0000 (10:07 +0100)]
Make zpp failures always throw, independent of strict_types
Previously zend_parse_parameters (and FastZPP) would handle invalid
arguments depending on strict_types: With strict_types=1, a TypeError
is thrown, with strict_types=0 a warning is thrown and (usually) NULL
is returned. Additionally, some functions (constructors always and
other methods sometimes) opt-it to throwing regardless of strict_types.
This commit changes zpp to always generate a TypeError exception in
PHP 8.
Dmitry Stogov [Mon, 11 Mar 2019 10:28:04 +0000 (13:28 +0300)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Fixed bug #77706 (Improve error messages in FFI for incompatible arguments)
Dmitry Stogov [Mon, 11 Mar 2019 10:27:23 +0000 (13:27 +0300)]
Fixed bug #77706 (Improve error messages in FFI for incompatible arguments)
Nikita Popov [Mon, 11 Mar 2019 09:19:50 +0000 (10:19 +0100)]
Merge branch 'PHP-7.4'
Andrew Brampton [Mon, 4 Mar 2019 03:57:40 +0000 (19:57 -0800)]
Fix #71890: Add support for crc32c Castagnoli's polynomial.
This variant of crc32 is heavily used by storage systems, such as iSCSI, SCTP,
Btrfs, ext4, and is increasingly being used in API (such as Google Cloud
Storage, and Apache Kafka).
David Carlier [Fri, 1 Mar 2019 11:33:29 +0000 (11:33 +0000)]
Fix shm api detection test for opcache module on FreeBSD
Per man page the shm_open path should start with / and contain no
further slashes.
Joe Watkins [Mon, 11 Mar 2019 09:10:45 +0000 (10:10 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
drop unused parameter from zend_startup
Joe Watkins [Mon, 11 Mar 2019 09:10:14 +0000 (10:10 +0100)]
drop unused parameter from zend_startup
Nikita Popov [Mon, 11 Mar 2019 09:01:16 +0000 (10:01 +0100)]
Merge branch 'PHP-7.4'
c9s [Sun, 10 Mar 2019 07:16:04 +0000 (15:16 +0800)]
Remove function_table var from the caller
function_table var is not used in call_user_function macro anymore
hence replace the usage with NULL
Daniel Stenberg [Wed, 6 Mar 2019 23:06:00 +0000 (00:06 +0100)]
curl_exec: remove bad check for CURLE_PARTIAL_FILE
This check introduced in 2004 is wrong and removed. A HEAD request with
curl does *not* cause this error code - only if you make a regular GET
request but tell curl to send a HEAD using CURLOPT_CUSTOMREQUEST and
then you've asked for it.
You do a proper HEAD request with curl by setting the CURLOPT_NOBODY
option to 1L.
This was the case in 2004. This is still the case in 2019. This is also
documented in libcurl documentation.
This check hides the possibly serious error when this error code is
genuinely and correctly returned by curl because the transfer was
truncated and ended up partial.
As can be seen, I objected to this change already in the original bug:
https://bugs.php.net/bug.php?id=27341
Stanislav Malyshev [Mon, 11 Mar 2019 08:14:29 +0000 (01:14 -0700)]
Merge branch 'PHP-7.4'
* PHP-7.4:
This option doesn't exist for a long time.
Stanislav Malyshev [Mon, 11 Mar 2019 08:13:50 +0000 (01:13 -0700)]
This option doesn't exist for a long time.
Gabriel Caruso [Mon, 11 Mar 2019 03:07:32 +0000 (00:07 -0300)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Use EXPECT when possible
Fix tests filenames
Gabriel Caruso [Mon, 11 Mar 2019 03:05:44 +0000 (00:05 -0300)]
Use EXPECT when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
Gabriel Caruso [Mon, 11 Mar 2019 02:57:32 +0000 (23:57 -0300)]
Fix tests filenames
Peter Kokot [Sun, 10 Mar 2019 23:16:36 +0000 (00:16 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Add meaningful error message for ext/zip
hassan [Tue, 10 Oct 2017 19:10:08 +0000 (21:10 +0200)]
Add meaningful error message for ext/zip
Jakub Zelenka [Sun, 10 Mar 2019 16:37:39 +0000 (16:37 +0000)]
Merge branch 'PHP-7.4'