]>
granicus.if.org Git - php/log
Nikita Popov [Thu, 11 Oct 2018 10:01:18 +0000 (12:01 +0200)]
Remove some redundant uses of HASH_OF
GET etc are always arrays, they cannot be objects. We just need to
check that they are initialized.
Nikita Popov [Thu, 11 Oct 2018 09:55:16 +0000 (11:55 +0200)]
Remember redundant check in filter.c
We already check existence through zend_hash_str_find, no need
to check it twice.
Nikita Popov [Wed, 10 Oct 2018 21:18:34 +0000 (23:18 +0200)]
Fix foreach/get_object_vars for shadowed properties
If we are in a scope where the shadowed private property is
visible, the shadowing public property should not be visible.
Nikita Popov [Wed, 10 Oct 2018 13:00:56 +0000 (15:00 +0200)]
Merge branch 'PHP-7.3'
Nikita Popov [Wed, 10 Oct 2018 12:57:46 +0000 (14:57 +0200)]
Fixed bug #76991
Back up exceptions while the scan-ahead loop, to avoid an early
bail out.
Nikita Popov [Wed, 10 Oct 2018 11:28:06 +0000 (13:28 +0200)]
Specify timezone in test
Nikita Popov [Wed, 10 Oct 2018 10:00:57 +0000 (12:00 +0200)]
Add UPGRADING notes
[ci skip]
Nikita Popov [Fri, 5 Oct 2018 13:55:21 +0000 (15:55 +0200)]
Don't overload get_properties for ArrayObject
Instead overload get_properties_for for a few specific cases such
as array casts. This resolves the issue where ArrayObject
get_properties may violate engine invariants in some cases.
Nikita Popov [Thu, 4 Oct 2018 14:51:52 +0000 (16:51 +0200)]
Migrate ext/date to get_properties_for where appropriate
This resolves the long-standing issue where var_dump
a DateTime (etc) object makes a number of additional properties
accessible, which may also change other behaviors as a side-effect.
Nikita Popov [Thu, 4 Oct 2018 11:58:35 +0000 (13:58 +0200)]
Introduce get_properties_for() handler
This handler allows getting the object properties for a particular
purpose, such as array casting, serialization, etc.
Peter Kokot [Tue, 9 Oct 2018 19:17:19 +0000 (21:17 +0200)]
Merge branch 'PHP-7.3'
* PHP-7.3:
[ci skip] Update UPGRADING about Autoconf version
Bump minimum Autoconf requirement to 2.68
Peter Kokot [Tue, 9 Oct 2018 19:16:17 +0000 (21:16 +0200)]
[ci skip] Update UPGRADING about Autoconf version
Peter Kokot [Tue, 9 Oct 2018 19:06:10 +0000 (21:06 +0200)]
Bump minimum Autoconf requirement to 2.68
This patch syncs and bumps the minimum required version of Autoconf for
the `phpize.m4` script and the main `configure.ac` from previously mixed
2.64 and 2.59 to 2.68.
At the time of this writing Autoconf 2.63 is still the version on
Centos 6, however by the PHP 7.3 release current systems out there
should all have pretty much updated Autoconf versions to 2.64+ at
least. Centos 7 already has Autoconf 2.69, for example.
This provides more options to update and get current with the *nix
build system and also avoids broken builds in certain cases as pointed
out in the relevant discussion [1].
Additionally, phpize also already provides the `AX_CHECK_COMPILE_FLAG`
Autoconf Archive m4 file that has Autoconf 2.64 minimum requirement.
Autoconf 2.68 was released in 2010, 8 years ago, relative to this patch.
[1] https://github.com/php/php-src/pull/3562
Christoph M. Becker [Tue, 9 Oct 2018 14:09:46 +0000 (16:09 +0200)]
Merge branch 'PHP-7.3'
* PHP-7.3:
Fix #30875: xml_parse_into_struct() does not resolve entities
Christoph M. Becker [Tue, 9 Oct 2018 14:08:28 +0000 (16:08 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
Fix #30875: xml_parse_into_struct() does not resolve entities
Christoph M. Becker [Tue, 9 Oct 2018 14:05:55 +0000 (16:05 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Fix #30875: xml_parse_into_struct() does not resolve entities
Christoph M. Becker [Tue, 9 Oct 2018 14:04:43 +0000 (16:04 +0200)]
Fix #30875: xml_parse_into_struct() does not resolve entities
Setting up an empty default handler is not only useless, but actually
harmful, since internal entity-references are not resolved anymore.
From the libexpat docs[1]:
| Setting the handler with this call has the side effect of
| turning off expansion of references to internally defined general
| entities. Instead these references are passed to the default
| handler.
[1] <https://www.xml.com/pub/1999/09/expat/reference.html#setdefhandler>
Christoph M. Becker [Tue, 9 Oct 2018 11:31:38 +0000 (13:31 +0200)]
Merge branch 'PHP-7.3'
* PHP-7.3:
[ci skip] Update NEWS
Christoph M. Becker [Tue, 9 Oct 2018 11:30:59 +0000 (13:30 +0200)]
[ci skip] Update NEWS
Derick Rethans [Tue, 9 Oct 2018 10:38:01 +0000 (11:38 +0100)]
Merge branch 'PHP-7.3'
Derick Rethans [Tue, 9 Oct 2018 10:37:53 +0000 (11:37 +0100)]
Fixed tests
Derick Rethans [Tue, 9 Oct 2018 10:08:48 +0000 (11:08 +0100)]
Merge branch 'PHP-7.3'
Derick Rethans [Tue, 9 Oct 2018 10:06:58 +0000 (11:06 +0100)]
Added test case for bug #75577
Derick Rethans [Tue, 9 Oct 2018 10:06:42 +0000 (11:06 +0100)]
Fixed bug #75577: DateTime::createFromFormat does not accept 'v' format specifier, by updating timelib to 2018.01alpha2
Derick Rethans [Tue, 9 Oct 2018 10:07:15 +0000 (11:07 +0100)]
Merge branch 'PHP-7.3'
Derick Rethans [Tue, 9 Oct 2018 10:06:58 +0000 (11:06 +0100)]
Added test case for bug #75577
Derick Rethans [Tue, 9 Oct 2018 10:06:42 +0000 (11:06 +0100)]
Fixed bug #75577: DateTime::createFromFormat does not accept 'v' format specifier, by updating timelib to 2018.01alpha2
Christoph M. Becker [Tue, 9 Oct 2018 09:59:09 +0000 (11:59 +0200)]
Merge branch 'PHP-7.3'
* PHP-7.3:
[ci skip] Update NEWS wrt. php-7.3.0RC3 tagging
Christoph M. Becker [Tue, 9 Oct 2018 09:57:22 +0000 (11:57 +0200)]
[ci skip] Update NEWS wrt. php-7.3.0RC3 tagging
Pierrick Charron [Tue, 9 Oct 2018 05:27:39 +0000 (01:27 -0400)]
Merge branch 'PHP-7.3'
Pierrick Charron [Tue, 9 Oct 2018 05:26:55 +0000 (01:26 -0400)]
Merge branch 'PHP-7.2' into PHP-7.3
Pierrick Charron [Tue, 9 Oct 2018 05:20:01 +0000 (01:20 -0400)]
Merge branch 'PHP-7.1' into PHP-7.2
Pierrick Charron [Sat, 6 Oct 2018 14:42:05 +0000 (10:42 -0400)]
Fixed bug #76965 INI_SCANNER_RAW doesn't strip trailing whitespace
Dmitry Stogov [Mon, 8 Oct 2018 20:52:24 +0000 (23:52 +0300)]
During size calculation, pointer should be kept unchanged
Anatol Belski [Mon, 8 Oct 2018 16:41:31 +0000 (18:41 +0200)]
Add missing packaging entries
Pierrick Charron [Mon, 8 Oct 2018 14:21:03 +0000 (10:21 -0400)]
Merge branch 'PHP-7.3'
Pierrick Charron [Mon, 8 Oct 2018 14:15:20 +0000 (10:15 -0400)]
Add constants from curl 7.56 to 7.61
Nikita Popov [Mon, 8 Oct 2018 11:16:54 +0000 (13:16 +0200)]
Merge branch 'PHP-7.3'
Nikita Popov [Mon, 8 Oct 2018 11:14:54 +0000 (13:14 +0200)]
Fix ref ID handling when serializing $GLOBALS
This was already broken previously, but in PHP 7.3 stricter
validation during unserialization made this into an error.
Christoph M. Becker [Mon, 8 Oct 2018 10:48:46 +0000 (12:48 +0200)]
Merge branch 'PHP-7.3'
* PHP-7.3:
[ci skip] Note the required configure changes for bundled libzip
Christoph M. Becker [Mon, 8 Oct 2018 10:46:41 +0000 (12:46 +0200)]
[ci skip] Note the required configure changes for bundled libzip
Christoph M. Becker [Mon, 8 Oct 2018 10:33:32 +0000 (12:33 +0200)]
Merge branch 'PHP-7.3'
* PHP-7.3:
Fix #76954: apache_response_headers removes last character from header name
Christoph M. Becker [Mon, 8 Oct 2018 10:32:21 +0000 (12:32 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
Fix #76954: apache_response_headers removes last character from header name
Christoph M. Becker [Mon, 8 Oct 2018 10:30:14 +0000 (12:30 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Fix #76954: apache_response_headers removes last character from header name
stodorovic [Tue, 2 Oct 2018 06:36:29 +0000 (08:36 +0200)]
Fix #76954: apache_response_headers removes last character from header name
Christoph M. Becker [Mon, 8 Oct 2018 09:53:24 +0000 (11:53 +0200)]
Merge branch 'PHP-7.3'
* PHP-7.3:
Fix #75851: Year component overflow with date formats "c", "o", "r" and "y"
Christoph M. Becker [Mon, 8 Oct 2018 09:51:54 +0000 (11:51 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
Fix #75851: Year component overflow with date formats "c", "o", "r" and "y"
Christoph M. Becker [Mon, 8 Oct 2018 09:49:56 +0000 (11:49 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Fix #75851: Year component overflow with date formats "c", "o", "r" and "y"
Adam Saponara [Wed, 11 Jul 2018 03:55:13 +0000 (23:55 -0400)]
Fix #75851: Year component overflow with date formats "c", "o", "r" and "y"
Peter Kokot [Mon, 8 Oct 2018 04:27:17 +0000 (06:27 +0200)]
Update and refactor shmop extension's README
The shmop functions are documented with more information in the PHP
manual.
Anatol Belski [Fri, 28 Sep 2018 14:46:47 +0000 (16:46 +0200)]
Enforce C++11 in ext/intl
ICU 59 already requires C++11 by default. The minimum version required
by the core is 50, which is compiled with at least C++11 in many distros
as package defs tell. Headers for ICU versions between ICU 50 and 58 look
fine when included for C++11 compilation, the linking is thereof not affected.
The macro PHP_CXX_COMPILE_STDCXX is based on
https://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx.html
The patch consists on allowing to read the corresponding switch in a user
defined variable instead of enforcing CXXFLAGS globally. That way, every
ext or SAPI can decide, which C++ standard is to be used. The
documentation is provided in the m4 file.
C++11 is already somewhat older standard, C++14 were better. However
issues with GCC < 5.0 and some other compilers are possibly to hit back.
Still there's some time to check for C++14 for ext/intl, too. Having said
that, C++11 in ext/intl and a mechanism to determine features is a good step
towards better C++ support.
Bob Weinand [Sun, 7 Oct 2018 09:20:38 +0000 (11:20 +0200)]
Initialize ce->parent_name to NULL
bugreportuser [Sat, 6 Oct 2018 15:05:40 +0000 (09:05 -0600)]
mysqli_fork: Fix undefined variable
Pedro Magalhães [Sat, 6 Oct 2018 14:59:05 +0000 (15:59 +0100)]
Merge branch 'PHP-7.3'
* PHP-7.3:
Remove unstable dns tests
Pedro Magalhães [Sat, 6 Oct 2018 14:58:51 +0000 (15:58 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
Remove unstable dns tests
Pedro Magalhães [Sat, 6 Oct 2018 14:58:32 +0000 (15:58 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Remove unstable dns tests
Pedro Magalhães [Fri, 5 Oct 2018 15:24:55 +0000 (16:24 +0100)]
Remove unstable dns tests
Pedro Magalhães [Sat, 6 Oct 2018 14:46:30 +0000 (15:46 +0100)]
Merge branch 'PHP-8.3'
* PHP-7.3:
Fix #76888 - Remove unstable test
Pedro Magalhães [Sat, 6 Oct 2018 14:46:11 +0000 (15:46 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
Fix #76888 - Remove unstable test
Pedro Magalhães [Fri, 5 Oct 2018 00:09:39 +0000 (01:09 +0100)]
Fix #76888 - Remove unstable test
Pedro Magalhães [Sat, 6 Oct 2018 13:58:11 +0000 (14:58 +0100)]
Use the locally defined constants for dns record types
Christoph M. Becker [Sat, 6 Oct 2018 10:44:50 +0000 (12:44 +0200)]
[ci skip] Update NEWS and UPGRADING wrt. unbundling libsqlite
Christoph M. Becker [Sat, 6 Oct 2018 10:36:55 +0000 (12:36 +0200)]
Unbundle libsqlite3
Since there is no need to patch libsqlite3 for our purposes, and since
libsqlite3 ≥ 3.3.9 (which is our current requirement) is widely
available on distros, there is no reason anymore to bundle the library.
Besides removing the bundled libsqlite, and adapting the configuration
respectively, we also fix the use of the SQLITE_ENABLE_COLUMN_METADATA
compile time constant to detect whether sqlite3_column_table_name() is
available by a working feature detection (otherwise bug_42589.phpt
would fail). We also skip bug73068.phpt for libsqlite 3.11.0 to
3.14.1 which have a bug (<https://sqlite.org/src/info/
ef360601 >).
We also completely drop support for the obscure pdo_sqlite_external
extension (which could have been enabled on Windows only by passing
`--pdo-sqlite-external` to configure), since it is not needed anymore.
Furthermore, we remove references to the bundled libsqlite from
Makefile.gcov, CONTRIBUTING.md and README.REDIST.BINS.
Christoph M. Becker [Sat, 6 Oct 2018 10:01:22 +0000 (12:01 +0200)]
Fix PHPT ENV sections
run-tests.php assumes the contents of an ENV section are a simple list
of key-value-pairs, instead of evaluating the section contents as PHP
script which server-tests.php did. Since server-tests.php is gone, we
remove the superfluous and confusing scripting.
Nikita Popov [Sat, 6 Oct 2018 09:22:24 +0000 (11:22 +0200)]
Merge branch 'PHP-7.3'
Michael Moravec [Fri, 5 Oct 2018 22:07:41 +0000 (00:07 +0200)]
Fix bug #76979: define() error message does not mention resources as valid values
Christoph M. Becker [Sat, 6 Oct 2018 09:06:59 +0000 (11:06 +0200)]
Merge branch 'PHP-7.3'
* PHP-7.3:
Fix #76975: preg_match difference between 7.3 and < 7.3 - II
Christoph M. Becker [Sat, 6 Oct 2018 09:05:41 +0000 (11:05 +0200)]
Fix #76975: preg_match difference between 7.3 and < 7.3 - II
[ci skip]
Anatol Belski [Fri, 5 Oct 2018 21:01:20 +0000 (23:01 +0200)]
Merge branch 'PHP-7.3'
* PHP-7.3:
[ci skip] Update NEWS
[ci skip] Update NEWS
[ci skip] Update NEWS
Add test for bug #76942
Anatol Belski [Fri, 5 Oct 2018 21:01:03 +0000 (23:01 +0200)]
[ci skip] Update NEWS
Anatol Belski [Fri, 5 Oct 2018 21:00:24 +0000 (23:00 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
[ci skip] Update NEWS
[ci skip] Update NEWS
Add test for bug #76942
Anatol Belski [Fri, 5 Oct 2018 20:59:55 +0000 (22:59 +0200)]
[ci skip] Update NEWS
Anatol Belski [Fri, 5 Oct 2018 20:57:45 +0000 (22:57 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
[ci skip] Update NEWS
Add test for bug #76942
Anatol Belski [Fri, 5 Oct 2018 20:57:27 +0000 (22:57 +0200)]
[ci skip] Update NEWS
Anatol Belski [Fri, 5 Oct 2018 20:51:58 +0000 (22:51 +0200)]
Add test for bug #76942
Anatol Belski [Fri, 5 Oct 2018 20:54:03 +0000 (22:54 +0200)]
Merge branch 'PHP-7.3'
* PHP-7.3:
Add test for bug #76942
Fixed Bug #76942 U_ARGUMENT_TYPE_MISMATCH
Anatol Belski [Fri, 5 Oct 2018 20:53:11 +0000 (22:53 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
Add test for bug #76942
Fixed Bug #76942 U_ARGUMENT_TYPE_MISMATCH
Anatol Belski [Fri, 5 Oct 2018 20:52:53 +0000 (22:52 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Add test for bug #76942
Fixed Bug #76942 U_ARGUMENT_TYPE_MISMATCH
Anatol Belski [Fri, 5 Oct 2018 20:51:58 +0000 (22:51 +0200)]
Add test for bug #76942
Anatol Belski [Fri, 5 Oct 2018 20:50:34 +0000 (22:50 +0200)]
Fixed Bug #76942 U_ARGUMENT_TYPE_MISMATCH
ref bug #74484
Nikita Popov [Fri, 5 Oct 2018 19:34:04 +0000 (21:34 +0200)]
Merge branch 'PHP-7.3'
twosee [Mon, 1 Oct 2018 11:22:25 +0000 (19:22 +0800)]
Optimize MySQL statement execute without parameters
Nikita Popov [Fri, 5 Oct 2018 16:42:45 +0000 (18:42 +0200)]
Merge branch 'PHP-7.3'
Nikita Popov [Fri, 5 Oct 2018 16:41:42 +0000 (18:41 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Fri, 5 Oct 2018 16:41:16 +0000 (18:41 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2
Manuel Mausz [Thu, 4 Oct 2018 16:40:26 +0000 (18:40 +0200)]
Fix #76972: FTP data truncation due to forceful ssl socket shutdown
Do a correct bidirectional shutdown instead
Pedro Magalhães [Fri, 5 Oct 2018 15:38:06 +0000 (16:38 +0100)]
Use the locally defined constants for dns record types
Pedro Magalhães [Thu, 4 Oct 2018 22:28:53 +0000 (23:28 +0100)]
Use HT_MIN_SIZE when duplicating an empty array
Nikita Popov [Thu, 4 Oct 2018 19:42:46 +0000 (21:42 +0200)]
Remove unused backpatch_count field
Anatol Belski [Thu, 4 Oct 2018 17:17:22 +0000 (19:17 +0200)]
Ensure target is \0 terminated
Nikita Popov [Thu, 4 Oct 2018 08:56:43 +0000 (10:56 +0200)]
Clarify that the get_properties handler is required
Some places were checking for non-null get_properties, some weren't.
Make it clear that the handler is required and such checks are not
necessary.
Nikita Popov [Thu, 4 Oct 2018 08:58:20 +0000 (10:58 +0200)]
Fix incorrect printf modifier after size_t changes
Remi Collet [Thu, 4 Oct 2018 09:46:37 +0000 (11:46 +0200)]
Merge branch 'PHP-7.3'
* PHP-7.3:
Allow to disable pcre.jit when system library is used as it is for now broken on some arch (s390x...)
Remi Collet [Thu, 4 Oct 2018 09:45:35 +0000 (11:45 +0200)]
Allow to disable pcre.jit when system library is used
as it is for now broken on some arch (s390x...)
Pierrick Charron [Thu, 4 Oct 2018 01:19:05 +0000 (21:19 -0400)]
Merge branch 'PHP-7.3'
Pierrick Charron [Thu, 4 Oct 2018 01:18:47 +0000 (21:18 -0400)]
Update NEWS [ci skip]
Pierrick Charron [Wed, 3 Oct 2018 23:44:46 +0000 (19:44 -0400)]
Merge branch 'PHP-7.3'
Pierrick Charron [Wed, 3 Oct 2018 23:43:59 +0000 (19:43 -0400)]
Add constants from curl 7.50 to 7.55
Christoph M. Becker [Wed, 3 Oct 2018 22:47:52 +0000 (00:47 +0200)]
Fix PRIMARY MAINTAINER and MAINTENANCE fields
We have to distinguish between `PRIMARY_MAINTAINER` and `MAINTENANCE`.
Furthermore, all extensions should have both fields.
Christoph M. Becker [Wed, 3 Oct 2018 22:30:40 +0000 (00:30 +0200)]
Merge branch 'PHP-7.3'
* PHP-7.3:
libzip has been unbundled in master only