]>
granicus.if.org Git - php/log
Nikita Popov [Thu, 5 Jul 2018 19:27:17 +0000 (21:27 +0200)]
Deprecate string.strip_tags filter
Part of https://wiki.php.net/rfc/deprecations_php_7_3.
Nikita Popov [Thu, 5 Jul 2018 16:43:42 +0000 (18:43 +0200)]
Deprecate fgetss() and gzgetss()
SplFileObject::fgetss() will also generate a deprecation notice
through an internal call to fgetss().
Part of RFC https://wiki.php.net/rfc/deprecations_php_7_3.
Nikita Popov [Wed, 4 Jul 2018 21:20:29 +0000 (23:20 +0200)]
Deprecate defining a free-standing assert() function
Part of https://wiki.php.net/rfc/deprecations_php_7_3.
Nikita Popov [Wed, 4 Jul 2018 21:16:05 +0000 (23:16 +0200)]
Deprecate non-string needles in string search functions
Part of https://wiki.php.net/rfc/deprecations_php_7_3.
Nikita Popov [Wed, 4 Jul 2018 20:48:16 +0000 (22:48 +0200)]
Deprecate undocumented mbereg_* aliases
Part of https://wiki.php.net/rfc/deprecations_php_7_3.
Peter Kokot [Thu, 19 Jul 2018 21:05:34 +0000 (23:05 +0200)]
Move GMP bug 74670 test file to tests dir
Nikita Popov [Fri, 20 Jul 2018 15:52:56 +0000 (17:52 +0200)]
Fix off-by-one allocation
The return value of this function is pretty meaningless, but
leaving it alone for now.
Nikita Popov [Fri, 20 Jul 2018 15:47:53 +0000 (17:47 +0200)]
Fix incorrect length calculation
sizeof char pointer != sizeof string literal.
Trevor Rowbotham [Thu, 19 Jul 2018 19:14:39 +0000 (15:14 -0400)]
[ci skip] Add new global MBString constants to UPGRADING
The constants are mentioned further up in the New Features section,
but weren't explicitly listed under the New Global Constants section.
Gabriel Caruso [Mon, 16 Jul 2018 03:19:02 +0000 (00:19 -0300)]
Removed and fixed unused variables
Anatol Belski [Thu, 19 Jul 2018 16:38:19 +0000 (18:38 +0200)]
Merge branch 'PHP-7.2'
* PHP-7.2:
Update binary SDK version for AppVeyor
Anatol Belski [Thu, 19 Jul 2018 16:37:38 +0000 (18:37 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Update binary SDK version for AppVeyor
Anatol Belski [Thu, 19 Jul 2018 16:35:54 +0000 (18:35 +0200)]
Update binary SDK version for AppVeyor
Ferenc Kovacs [Thu, 19 Jul 2018 14:59:00 +0000 (16:59 +0200)]
Merge branch 'PHP-7.2'
Ferenc Kovacs [Thu, 19 Jul 2018 14:57:50 +0000 (16:57 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2
Ferenc Kovacs [Thu, 19 Jul 2018 14:57:18 +0000 (16:57 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1
Ferenc Kovacs [Thu, 19 Jul 2018 14:56:32 +0000 (16:56 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0
Ferenc Kovacs [Thu, 19 Jul 2018 14:32:50 +0000 (16:32 +0200)]
5.6.38 will be next
Dmitry Stogov [Thu, 19 Jul 2018 12:47:15 +0000 (15:47 +0300)]
Removed redundand code
Dmitry Stogov [Thu, 19 Jul 2018 12:28:31 +0000 (15:28 +0300)]
Matching loops optimization
Dmitry Stogov [Thu, 19 Jul 2018 08:19:28 +0000 (11:19 +0300)]
Micro optimizations
Dmitry Stogov [Thu, 19 Jul 2018 06:41:15 +0000 (09:41 +0300)]
Fixed typo
Hongbo [Wed, 18 Jul 2018 17:30:44 +0000 (01:30 +0800)]
fix ext_skel continue
"continue" inside switch is ambiguous, should be "continue 2".
Dmitry Stogov [Wed, 18 Jul 2018 14:46:48 +0000 (17:46 +0300)]
Reorder conditions
Dmitry Stogov [Wed, 18 Jul 2018 13:35:17 +0000 (16:35 +0300)]
Move "/e" modifier check into regex compiler
Dmitry Stogov [Wed, 18 Jul 2018 13:10:41 +0000 (16:10 +0300)]
Merge "no_utf_check" and "g_notempty" into single "options".
Dmitry Stogov [Wed, 18 Jul 2018 11:49:52 +0000 (14:49 +0300)]
Allocate array of proper size
Dmitry Stogov [Wed, 18 Jul 2018 11:49:00 +0000 (14:49 +0300)]
Perform checks for propertis started with '\\0' only for dynamic properties
Christoph M. Becker [Wed, 18 Jul 2018 09:29:05 +0000 (11:29 +0200)]
[ci skip] Fix typo in comment
Remi Collet [Wed, 18 Jul 2018 09:17:53 +0000 (11:17 +0200)]
add info about zend_class_entry.iterator_funcs
Dmitry Stogov [Tue, 17 Jul 2018 14:31:04 +0000 (17:31 +0300)]
Improved "Fast Shutdown".
Christoph M. Becker [Tue, 17 Jul 2018 14:02:50 +0000 (16:02 +0200)]
Update NEWS for 7.3.0beta1
Anatol Belski [Tue, 17 Jul 2018 10:38:21 +0000 (12:38 +0200)]
Merge branch 'PHP-7.2'
* PHP-7.2:
7.0.32 next
Anatol Belski [Tue, 17 Jul 2018 10:37:51 +0000 (12:37 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
7.0.32 next
Anatol Belski [Tue, 17 Jul 2018 10:37:02 +0000 (12:37 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0:
7.0.32 next
Anatol Belski [Tue, 17 Jul 2018 10:36:13 +0000 (12:36 +0200)]
7.0.32 next
Dmitry Stogov [Tue, 17 Jul 2018 10:30:55 +0000 (13:30 +0300)]
Inline FETCH_CONST and DEFINED handlers into "hybrid" executor.
Anatol Belski [Tue, 17 Jul 2018 10:01:14 +0000 (12:01 +0200)]
Merge branch 'master' of git.php.net:php-src
Anatol Belski [Tue, 17 Jul 2018 10:00:11 +0000 (12:00 +0200)]
Merge branch 'PHP-7.2'
* PHP-7.2:
[ci skip] Update NEWS
Anatol Belski [Tue, 17 Jul 2018 09:59:17 +0000 (11:59 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
[ci skip] Update NEWS
Dmitry Stogov [Tue, 17 Jul 2018 09:58:58 +0000 (12:58 +0300)]
Reduce overhead of case-insensitive constants deprecation for "fast path"
Anatol Belski [Tue, 17 Jul 2018 09:58:43 +0000 (11:58 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0:
[ci skip] Update NEWS
Anatol Belski [Tue, 17 Jul 2018 08:21:21 +0000 (10:21 +0200)]
[ci skip] Update NEWS
Christoph M. Becker [Tue, 17 Jul 2018 09:53:06 +0000 (11:53 +0200)]
Improve implementation of array_key_first() and array_key_last()
Firstly, we must not separate the $stack argument for performance
reasons. Secondly, we prefer `Z_ARRVAL_P` over `HASH_OF` to clarify
our intention.
Thanks to Nikita, for catching these issues!
Enno Woortmann [Tue, 17 Jul 2018 08:29:55 +0000 (10:29 +0200)]
Add implementation and tests for new methods - array_key_first(array $a) Returns the key of the first element or null - array_key_last(array $a) Returns the key of the last element or null
Christoph M. Becker [Tue, 17 Jul 2018 09:01:44 +0000 (11:01 +0200)]
FILTER_FLAG_(SCHEME|HOST)_REQUIRED are now deprecated
Christoph M. Becker [Mon, 16 Jul 2018 20:53:24 +0000 (22:53 +0200)]
Deprecate explicit use of FILTER_FLAG_SCHEME|HOST_REQUIRED
As of PHP 5.2.1 FILTER_VALIDATE_URL implies FILTER_FLAG_SCHEME_REQUIRED
| FILTER_FLAG_HOST_REQUIRED, which makes these constants useless at
best, if not even misleading. Therefore we deprecate the explicit use
of these constants for FILTER_VALIDATE_URL, to pave the way for their
eventual removal.
See <https://wiki.php.net/rfc/deprecations_php_7_3#filter_flag_scheme_required_and_filter_flag_host_required>.
Remi Collet [Tue, 17 Jul 2018 04:07:43 +0000 (06:07 +0200)]
Merge branch 'PHP-7.2'
* PHP-7.2:
NEWS
Remi Collet [Tue, 17 Jul 2018 04:07:28 +0000 (06:07 +0200)]
NEWS
Stanislav Malyshev [Tue, 17 Jul 2018 01:52:14 +0000 (18:52 -0700)]
Merge branch 'PHP-7.2'
* PHP-7.2:
Fix test
Stanislav Malyshev [Tue, 17 Jul 2018 01:52:01 +0000 (18:52 -0700)]
Fix test
Stanislav Malyshev [Mon, 16 Jul 2018 23:54:31 +0000 (16:54 -0700)]
Merge branch 'PHP-7.2'
* PHP-7.2:
Fixed bug #76459 windows linkinfo lacks openbasedir check
Add NEWS
Fixed bug #76459 windows linkinfo lacks openbasedir check
Fix bug #76557: heap-buffer-overflow (READ of size 48) while reading exif data
Fix bug #76423 - Int Overflow lead to Heap OverFlow in exif_thumbnail_extract of exif.c
Stanislav Malyshev [Mon, 16 Jul 2018 23:53:57 +0000 (16:53 -0700)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Fixed bug #76459 windows linkinfo lacks openbasedir check
Add NEWS
Fixed bug #76459 windows linkinfo lacks openbasedir check
Fix bug #76557: heap-buffer-overflow (READ of size 48) while reading exif data
Fix bug #76423 - Int Overflow lead to Heap OverFlow in exif_thumbnail_extract of exif.c
Stanislav Malyshev [Mon, 16 Jul 2018 23:52:36 +0000 (16:52 -0700)]
Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0:
Fixed bug #76459 windows linkinfo lacks openbasedir check
Add NEWS
Fixed bug #76459 windows linkinfo lacks openbasedir check
Fix bug #76557: heap-buffer-overflow (READ of size 48) while reading exif data
Fix bug #76423 - Int Overflow lead to Heap OverFlow in exif_thumbnail_extract of exif.c
Stanislav Malyshev [Mon, 16 Jul 2018 22:13:13 +0000 (15:13 -0700)]
Merge branch 'PHP-5.6' into PHP-7.0
* PHP-5.6:
Add NEWS
Fixed bug #76459 windows linkinfo lacks openbasedir check
Fix bug #76557: heap-buffer-overflow (READ of size 48) while reading exif data
Fix bug #76423 - Int Overflow lead to Heap OverFlow in exif_thumbnail_extract of exif.c
Anatol Belski [Tue, 3 Jul 2018 12:04:22 +0000 (14:04 +0200)]
Fixed bug #76459 windows linkinfo lacks openbasedir check
Stanislav Malyshev [Mon, 16 Jul 2018 21:26:31 +0000 (14:26 -0700)]
Add NEWS
Anatol Belski [Tue, 3 Jul 2018 11:51:31 +0000 (13:51 +0200)]
Fixed bug #76459 windows linkinfo lacks openbasedir check
Stanislav Malyshev [Mon, 2 Jul 2018 05:20:19 +0000 (22:20 -0700)]
Fix bug #76557: heap-buffer-overflow (READ of size 48) while reading exif data
Use MAKERNOTE length as data size.
Stanislav Malyshev [Tue, 19 Jun 2018 23:26:36 +0000 (16:26 -0700)]
Fix bug #76423 - Int Overflow lead to Heap OverFlow in exif_thumbnail_extract of exif.c
Nikita Popov [Sat, 23 Jun 2018 18:51:49 +0000 (20:51 +0200)]
Deprecate case-insensitive constants
RFC: https://wiki.php.net/rfc/case_insensitive_constant_deprecation
Nikita Popov [Sat, 23 Jun 2018 18:54:49 +0000 (20:54 +0200)]
Remove use of case-insensitive constants in tests
Dmitry Stogov [Mon, 16 Jul 2018 14:08:11 +0000 (17:08 +0300)]
Fixed error messages.
Dmitry Stogov [Mon, 16 Jul 2018 10:22:17 +0000 (13:22 +0300)]
Flatten strip_tags state machine (GCC overoptimized this function, producing enormpous amount of code).
Gabriel Caruso [Mon, 16 Jul 2018 03:01:46 +0000 (00:01 -0300)]
Make more tests run and fix SKIPIF sections
Gabriel Caruso [Mon, 16 Jul 2018 02:51:16 +0000 (23:51 -0300)]
Test http_response_code function
Gabriel Caruso [Mon, 16 Jul 2018 02:40:00 +0000 (23:40 -0300)]
Fix failing test upstream
There was a trailing tab when a error message was generated. Removing
it, test is passing now.
Christoph M. Becker [Sun, 15 Jul 2018 21:24:02 +0000 (23:24 +0200)]
Merge branch 'PHP-7.2'
* PHP-7.2:
Fix #73817: Incorrect entries in get_html_translation_table
Christoph M. Becker [Sun, 15 Jul 2018 21:09:15 +0000 (23:09 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Fix #73817: Incorrect entries in get_html_translation_table
Christoph M. Becker [Sun, 15 Jul 2018 21:06:38 +0000 (23:06 +0200)]
Fix #73817: Incorrect entries in get_html_translation_table
Due to incorrect string termination and length handling, several HTML
entities missed the trailing semicolon.
We also fix the obviously wrong expectations in two already existing
tests.
Gabriel Caruso [Sat, 14 Jul 2018 22:37:12 +0000 (19:37 -0300)]
Small tweaks to php scripts
Gabriel Caruso [Mon, 9 Jul 2018 03:56:45 +0000 (00:56 -0300)]
Small tweaks to php scripts
Gemorroj [Fri, 13 Jul 2018 21:22:45 +0000 (00:22 +0300)]
[ci skip] Update php.ini-production
remove duplicated strings
Anatol Belski [Sat, 14 Jul 2018 10:51:37 +0000 (12:51 +0200)]
Regroup the ifdef'd occurrences
Anatol Belski [Sat, 14 Jul 2018 09:43:46 +0000 (11:43 +0200)]
Trail long path support also for deletion
Anatol Belski [Fri, 13 Jul 2018 18:15:17 +0000 (20:15 +0200)]
Merge branch 'PHP-7.2'
* PHP-7.2:
Improve test
Anatol Belski [Fri, 13 Jul 2018 18:14:44 +0000 (20:14 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Improve test
Anatol Belski [Fri, 13 Jul 2018 18:13:51 +0000 (20:13 +0200)]
Improve test
Ensure the filename is non existent indeed.
Anatol Belski [Fri, 13 Jul 2018 17:01:43 +0000 (19:01 +0200)]
Distinguish two error messages
Anatol Belski [Fri, 13 Jul 2018 05:35:33 +0000 (07:35 +0200)]
Avoid early allocation
Stanislav Malyshev [Mon, 2 Jul 2018 06:49:06 +0000 (23:49 -0700)]
[ci skip] Add dates to maintainer names
The dates are initialized from oldest and newest commit
that can be attributed to that person.
Anatol Belski [Thu, 12 Jul 2018 17:58:43 +0000 (19:58 +0200)]
Merge branch 'PHP-7.2'
* PHP-7.2:
Fixed RecursiveDirectoryIterator with long path or with edge case length
Anatol Belski [Thu, 12 Jul 2018 17:57:08 +0000 (19:57 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Fixed RecursiveDirectoryIterator with long path or with edge case length
Anatol Belski [Thu, 12 Jul 2018 17:49:32 +0000 (19:49 +0200)]
Fixed RecursiveDirectoryIterator with long path or with edge case length
The search path needs to be appended with the wild card. Till now, an
edge case existed, so then if a path is 259 bytes long, which is smaller
_MAX_PATH, the suffix would cause the final search path to become longer
than _MAX_PATH. It is an edge case, when the starting path happens to
have a specific length. If the starting path was longer than _MAX_PATH
or the addition of "\\*" would not exceed _MAX_PATH, the function was
correct. Except for rewind, which was broken in the case of the long
path.
Dmitry Stogov [Thu, 12 Jul 2018 14:17:09 +0000 (17:17 +0300)]
Fixed tests
Dmitry Stogov [Thu, 12 Jul 2018 14:09:40 +0000 (17:09 +0300)]
Merge zend_class_entry.create_object and zend_class_entry.interface_gets_implemented into the same memory lacation. The first used only by classes, the second only by magic interfaces.
Christoph M. Becker [Thu, 12 Jul 2018 13:22:26 +0000 (15:22 +0200)]
[ci skip] Update next version
According to <https://externals.io/message/102762>.
Christoph M. Becker [Thu, 12 Jul 2018 13:05:56 +0000 (15:05 +0200)]
Fix #33502: Some nullary functions don't check the number of arguments
We add the missing zend_parse_parameters_none() checks for:
* output_reset_rewrite_vars()
* func_num_args()
* gc_status()
* gc_disable()
* gc_enable()
* gc_enabled()
* gc_collect_cycles()
* gc_mem_caches()
* zend_version()
Christoph M. Becker [Thu, 12 Jul 2018 11:47:11 +0000 (13:47 +0200)]
Merge branch 'PHP-7.2'
* PHP-7.2:
Fix Travis build
Christoph M. Becker [Thu, 12 Jul 2018 11:46:10 +0000 (13:46 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Fix Travis build
Christoph M. Becker [Thu, 12 Jul 2018 11:45:30 +0000 (13:45 +0200)]
Fix Travis build
As of commit
f9d1d1f [1] we require `sudo`, so we tell Travis about it.
[1] <http://git.php.net/?p=php-src.git;a=commit;h=
f9d1d1f >
Andrea Faulds [Thu, 5 Jul 2018 20:02:59 +0000 (22:02 +0200)]
Export stdClass objects using (object) cast (fixes #48016)
Before this change, var_export()'s output for stdClass objects calls
the non-existent stdClass::__set_state method, and is therefore useless.
This commit makes var_export() output an (object) cast from an array
instead, which when evaluated, will produce a stdClass object. Other
classes see unchanged output.
Dmitry Stogov [Thu, 12 Jul 2018 11:04:14 +0000 (14:04 +0300)]
Improved user iterator implementation to reduce zend_class_entry memory consumption and avoid race condition during resolving/caching of user iterator functions of internal classes in ZTS build.
Anatol Belski [Thu, 12 Jul 2018 09:38:18 +0000 (11:38 +0200)]
Merge branch 'PHP-7.2'
* PHP-7.2:
Fix macro
Anatol Belski [Thu, 12 Jul 2018 09:37:13 +0000 (11:37 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Fix macro
Anatol Belski [Thu, 12 Jul 2018 09:35:00 +0000 (11:35 +0200)]
Fix macro
Anatol Belski [Thu, 12 Jul 2018 07:26:50 +0000 (09:26 +0200)]
Support long path also when reading from file cache
Anatol Belski [Wed, 11 Jul 2018 16:05:10 +0000 (18:05 +0200)]
Mark conditions unexpected
Dmitry Stogov [Wed, 11 Jul 2018 15:56:10 +0000 (18:56 +0300)]
Changed structure of zend_class_entry.trait_aliases and zend_class_entry.trait_precedences to avoid keeping "intermediate" trait references, that are used only during inheritance.
Anatol Belski [Wed, 11 Jul 2018 12:34:18 +0000 (14:34 +0200)]
Make error messages more speaking