Anatol Belski [Fri, 9 Feb 2018 16:05:28 +0000 (17:05 +0100)]
Improve loop vectorization
Christoph M. Becker [Fri, 9 Feb 2018 16:39:24 +0000 (17:39 +0100)]
Remove unused function
Nikita Popov [Fri, 9 Feb 2018 14:11:42 +0000 (15:11 +0100)]
Merge branch 'PHP-7.2'
Nikita Popov [Fri, 9 Feb 2018 14:10:23 +0000 (15:10 +0100)]
Fixed bug #75938
New modulus range inference implementation has been verified using
https://gist.github.com/nikic/
67947ff92cf0e1f7e931f2f0d4cf817f.
The computed bounds are not tight, but it seems to be very hard to
compute tight bounds on modulus operations.
Christoph M. Becker [Fri, 9 Feb 2018 13:43:21 +0000 (14:43 +0100)]
Remove unused files
These files had served as fallback for GD < 2.1.0, but since we're
requiring GD ≥ 2.1.0 for years[1], there's no more need for them.
[1]
8a90aad35b3647a104458d5af4dcb315b9e8d80c
Jaromír Doleček [Fri, 9 Feb 2018 13:30:06 +0000 (14:30 +0100)]
Fixed bug #75940 Unnecessary compile wrapper with PHP_THREAD_SAFETY=yes
Dmitry Stogov [Fri, 9 Feb 2018 08:33:02 +0000 (11:33 +0300)]
typo
Joe [Thu, 8 Feb 2018 16:53:26 +0000 (17:53 +0100)]
Merge branch 'master' of git://github.com/php/php-src
Gabriel Caruso [Thu, 8 Feb 2018 13:03:49 +0000 (11:03 -0200)]
Update README.GIT-RULES
Gabriel Caruso [Thu, 8 Feb 2018 11:35:53 +0000 (09:35 -0200)]
Fix SKIPIF section
Joe [Thu, 8 Feb 2018 09:51:20 +0000 (10:51 +0100)]
Merge branch 'PHP-7.2'
* PHP-7.2:
Fixes bug #75871 Use pkg-config for libxml2 if available
Joe [Thu, 8 Feb 2018 09:50:47 +0000 (10:50 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Fixes bug #75871 Use pkg-config for libxml2 if available
Pedro Magalhães [Tue, 6 Feb 2018 19:16:22 +0000 (19:16 +0000)]
Fixes bug #75871 Use pkg-config for libxml2 if available
Joe [Thu, 8 Feb 2018 09:42:50 +0000 (10:42 +0100)]
Merge branch 'PHP-7.2'
* PHP-7.2:
Fixed bug #49876 lib path on 64bit distros
Joe [Thu, 8 Feb 2018 09:42:25 +0000 (10:42 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Fixed bug #49876 lib path on 64bit distros
David Zuelke [Wed, 13 Sep 2017 22:03:37 +0000 (00:03 +0200)]
Fixed bug #49876 lib path on 64bit distros
Peter Kokot [Wed, 29 Nov 2017 21:21:36 +0000 (22:21 +0100)]
Refactor testing READMEs
This patch removes additional README.TESTING2 file and moves its
contents into a single README.TESTING file for convenience.
Joe [Thu, 8 Feb 2018 09:33:15 +0000 (10:33 +0100)]
Merge branch 'PHP-7.2'
* PHP-7.2:
Fixed bug #65414
Joe [Thu, 8 Feb 2018 09:32:44 +0000 (10:32 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Fixed bug #65414
Bishop Bettini [Fri, 2 Feb 2018 02:29:37 +0000 (21:29 -0500)]
Fixed bug #65414
Bishop Bettini [Fri, 2 Feb 2018 02:29:37 +0000 (21:29 -0500)]
Fixed bug #65414
Joe [Thu, 8 Feb 2018 09:18:45 +0000 (10:18 +0100)]
Merge branch 'PHP-7.2'
* PHP-7.2:
Fixed bug #74519 strange behavior of AppendIterator
Joe [Thu, 8 Feb 2018 09:17:50 +0000 (10:17 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Fixed bug #74519 strange behavior of AppendIterator
CHU Zhaowei [Tue, 19 Dec 2017 16:22:27 +0000 (00:22 +0800)]
Fixed bug #74519 strange behavior of AppendIterator
CHU Zhaowei [Sun, 10 Dec 2017 18:22:55 +0000 (02:22 +0800)]
fix #74519 strange behavior of AppendIterator
Gabriel Caruso [Tue, 6 Feb 2018 13:21:01 +0000 (11:21 -0200)]
Use bool instead of boolean
Gabriel Caruso [Wed, 7 Feb 2018 14:22:12 +0000 (12:22 -0200)]
Remove space between function name and open parentheses
Gabriel Caruso [Mon, 5 Feb 2018 00:16:50 +0000 (22:16 -0200)]
Fix some misspellings
Gabriel Caruso [Sat, 3 Feb 2018 06:56:03 +0000 (07:56 +0100)]
Increase ext/ftp coverage
Christoph M. Becker [Tue, 6 Feb 2018 13:59:23 +0000 (14:59 +0100)]
Remove unused variable
We're not interested in the return value of
`gdGuessBackgroundColorFromCorners`, so there's no need to track it.
See also libgd/libgd@
535eab566b4a412eef21347653fb98a48857d169.
Gabriel Caruso [Mon, 5 Feb 2018 20:40:11 +0000 (18:40 -0200)]
Remove unused variable
Dmitry Stogov [Tue, 6 Feb 2018 12:36:31 +0000 (15:36 +0300)]
Fixed tests
Nikita Popov [Mon, 5 Feb 2018 20:43:50 +0000 (21:43 +0100)]
Merge branch 'PHP-7.2'
Nikita Popov [Mon, 5 Feb 2018 20:41:44 +0000 (21:41 +0100)]
Fixed bug #75893
It is not sufficient to just add the additional types for aliased
variables at the end of type inference, because types of derived
variables may depend on them. Make sure the additional types are
always added whenever the type of an aliased variable is updated.
Nikita Popov [Mon, 5 Feb 2018 20:10:12 +0000 (21:10 +0100)]
Merge branch 'PHP-7.2'
Nikita Popov [Mon, 5 Feb 2018 20:08:18 +0000 (21:08 +0100)]
Fixed bug #75729
Don't try to evaluate substr() and strpos() at compile-time if
mbstring function overloading is enabled. I'm reusing the
COMPILE_NO_BUILTIN_STRLEN for the detection of mbstring function
overloading here, even if it's technically only about strlen()...
Nikita Popov [Mon, 5 Feb 2018 19:57:14 +0000 (20:57 +0100)]
Fix unused variable compiler warnings
Nikita Popov [Mon, 5 Feb 2018 19:48:21 +0000 (20:48 +0100)]
Match strpos() behavior with mbstring.func_overload
mb_strpos() specifically emulates strpos() behavior when function
overloading is enabled. However, the condition was not changed
when strpos() behavior changed in PHP 7.
Anatol Belski [Mon, 5 Feb 2018 19:27:52 +0000 (20:27 +0100)]
Fix visibility
Anatol Belski [Mon, 5 Feb 2018 11:42:59 +0000 (12:42 +0100)]
Improve conversion loop
Nikita Popov [Mon, 5 Feb 2018 17:53:02 +0000 (18:53 +0100)]
Remove unnecessary CE_STATIC_MEMBERS() checks
CE_STATIC_MEMBERS(ce) is destroyed after EG(active)=0 is set, so we
should never run into a situation where it is NULL inside the VM.
Dmitry Stogov [Mon, 5 Feb 2018 17:43:08 +0000 (20:43 +0300)]
Removed "dead" code
Dmitry Stogov [Mon, 5 Feb 2018 17:40:21 +0000 (20:40 +0300)]
One cache slot is enough
Dmitry Stogov [Mon, 5 Feb 2018 16:41:47 +0000 (19:41 +0300)]
Moved "zval.u2.cache_slot" into free room of "zend_op"
Dmitry Stogov [Mon, 5 Feb 2018 16:41:17 +0000 (19:41 +0300)]
Use low bits
Dmitry Stogov [Mon, 5 Feb 2018 16:40:06 +0000 (19:40 +0300)]
Avoid repeatable ARG_SHOULD_BE_SENT_BY_REF() checks in FETCH_*FUNC_ARG and following SEND_VAR_EX. Perform the check once in a new CHECK_FUNC_ARG opcode and reuse in the following FETCH_*FUNC_ARG and SEND_FUNC_ARG (SEND_VAR_EX replacement).
Anatol Belski [Mon, 5 Feb 2018 09:41:22 +0000 (10:41 +0100)]
Merge branch 'PHP-7.2'
* PHP-7.2:
Finer conditions, so /Qspectre is already usable with latest vc15
Anatol Belski [Mon, 5 Feb 2018 09:40:45 +0000 (10:40 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Finer conditions, so /Qspectre is already usable with latest vc15
Anatol Belski [Mon, 5 Feb 2018 09:38:06 +0000 (10:38 +0100)]
Finer conditions, so /Qspectre is already usable with latest vc15
Michael Wallner [Mon, 5 Feb 2018 08:10:11 +0000 (09:10 +0100)]
Merge branch 'PHP-7.2'
* PHP-7.2:
fix bug #75916 DNS_CAA record results contain garbage
Michael Wallner [Mon, 5 Feb 2018 08:07:00 +0000 (09:07 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
fix bug #75916 DNS_CAA record results contain garbage
Michael Wallner [Mon, 5 Feb 2018 08:04:07 +0000 (09:04 +0100)]
fix bug #75916 DNS_CAA record results contain garbage
It is assumed that DNS_CAA record values are zero terminated,
while its length is defined as (RDATA_LENGTH - tag_length - 2).
Nikita Popov [Sun, 4 Feb 2018 22:27:31 +0000 (23:27 +0100)]
Adjust manual zpp-like error message implementations
This should also use int/bool.
Nikita Popov [Sun, 4 Feb 2018 22:20:14 +0000 (23:20 +0100)]
Remove no longer necessary type-name special cases
zend_get_type_by_name() now produces the correct value by itself,
so we no longer need these workarounds.
Gabriel Caruso [Sun, 4 Feb 2018 18:42:36 +0000 (16:42 -0200)]
Use bool instead of boolean while throwing a type error
PHP requires boolean typehints to be written "bool" and disallows
"boolean" as an alias. This changes the error messages to match
the actual type name and avoids confusing messages like "must be
of type boolean, boolean given".
This a followup to
ce1d69a1f6dcf15d43029301059c25e5bc09a577, which
implements the same change for integer->int.
Gabriel Caruso [Sun, 4 Feb 2018 13:33:49 +0000 (11:33 -0200)]
Use int instead of integer in type errors
PHP requires integer typehints to be written "int" and does not
allow "integer" as an alias. This changes type error messages to
match the actual type name and avoids confusing messages like
"must be of the type integer, integer given".
Gabriel Caruso [Sat, 3 Feb 2018 19:43:53 +0000 (17:43 -0200)]
strcoll isn't always available
Gabriel Caruso [Sun, 4 Feb 2018 12:41:21 +0000 (10:41 -0200)]
Add and fix SKIPIF sections
Gabriel Caruso [Sun, 4 Feb 2018 07:44:28 +0000 (05:44 -0200)]
Use bool instead of boolean in proto
Gabriel Caruso [Sat, 3 Feb 2018 17:49:35 +0000 (15:49 -0200)]
Fix test for TCP_NODELAY constant
Actually check for the constant, instead of just printing a string...
Gabriel Caruso [Sat, 3 Feb 2018 15:51:22 +0000 (13:51 -0200)]
Remove superfluous PHP version check in tests
Also remove tests that target only old PHP versions.
Gabriel Caruso [Sat, 3 Feb 2018 14:24:56 +0000 (12:24 -0200)]
Remove superfluous SKIPIF sections in more tests
Stanislav Malyshev [Sun, 4 Feb 2018 10:12:13 +0000 (02:12 -0800)]
Cleanup some tests - remove unnecessary sections
Also unify credits - all are under --CREDITS-- now.
Nikita Popov [Sat, 3 Feb 2018 20:02:52 +0000 (21:02 +0100)]
Bump libcurl requirement to 7.15.5
The existence of the following functions is now guaranteed:
* curl_escape()
* curl_unescape()
* curl_multi_setopt()
libcurl 7.15.5 has been released 11.5 years ago and is available
even in RHEL 5.
Benjamin Morel [Tue, 19 Dec 2017 16:17:35 +0000 (17:17 +0100)]
Script to check the sync of cURL constants with online docs
Benjamin Morel [Wed, 6 Dec 2017 02:35:12 +0000 (03:35 +0100)]
Add CURLOPT_REQUEST_TARGET constant
Nikita Popov [Sat, 3 Feb 2018 18:50:20 +0000 (19:50 +0100)]
Remove checks for unicode.semantics ini option
Nikita Popov [Sat, 3 Feb 2018 18:11:55 +0000 (19:11 +0100)]
Simplify E_STRICT handling in mysqli tests
E_STRICT is always defined, so we don't need to handle it
conditionally. Instead just let the message be printed and check
the output.
Nikita Popov [Sat, 3 Feb 2018 17:17:12 +0000 (18:17 +0100)]
Remove some references to E_STRICT in tests
run-tests.php enforces error_reporting=E_ALL (including E_STRICT),
setting this explicitly in not necessary. Conversely, after the
removal of some E_STRICT errors, explicitly excluding it is no
longer necessary in some places.
Gabriel Caruso [Sat, 3 Feb 2018 13:47:35 +0000 (11:47 -0200)]
Remove superfluous SKIPIF sections in tests
Gabriel Caruso [Sat, 3 Feb 2018 13:34:01 +0000 (11:34 -0200)]
Remove superfluous SKIPIF sections in SPL tests
Nikita Popov [Sat, 3 Feb 2018 16:40:45 +0000 (17:40 +0100)]
Avoid another unused opline warning
The unconditional opline load here used to be necessary for freeing
the return value in case of exception. However, this is no longer
the case, so using LOAD_OPLINE() should be sufficient now.
Nikita Popov [Sat, 3 Feb 2018 15:48:05 +0000 (16:48 +0100)]
Avoid VM warning if building without global regs
Anatol Belski [Sat, 3 Feb 2018 16:15:18 +0000 (17:15 +0100)]
If the target attribute is available, attach it explicitly
The ifunc attribute might be not available as it is binary format
dependent.
Gabriel Caruso [Sat, 3 Feb 2018 14:03:29 +0000 (12:03 -0200)]
Remove superfluous SKIPIF sections in Zend tests
Lee Hsun [Tue, 30 Jan 2018 12:49:47 +0000 (20:49 +0800)]
Set max_requests to 0
The value will always be overwritten by fpm_run(), and the default
value there is 0 and not 500.
Gabriel Caruso [Thu, 25 Jan 2018 04:21:03 +0000 (02:21 -0200)]
Fix DateTime*::__set_state arginfo
This is a minor BC break, because classes inheriting from DateTime and
overriding __set_state() now have to specify the additional parameter
as well. However, adding the additional parameter also continues to
work on previous versions of PHP, so this change is acceptable for
master.
Gabriel Caruso [Sat, 3 Feb 2018 05:05:55 +0000 (03:05 -0200)]
Remove superfluous SKIPIF sections in Reflection tests
Gabriel Caruso [Sat, 3 Feb 2018 04:33:09 +0000 (02:33 -0200)]
Add missing SKIPIF sections
Christoph M. Becker [Sat, 3 Feb 2018 12:34:58 +0000 (13:34 +0100)]
Add missing SKIPIF section
The test requires the session extension, which may not be available, in
which case the test would fail, which is expected anyway, but not for
the expected reasons.
Nikita Popov [Fri, 2 Feb 2018 21:39:32 +0000 (22:39 +0100)]
Merge branch 'PHP-7.2'
Gabriel Caruso [Sat, 27 Jan 2018 21:51:51 +0000 (19:51 -0200)]
Use %d when expecting line number in tests
Michael Smith [Mon, 29 Jan 2018 15:50:52 +0000 (09:50 -0600)]
Fix spelling and grammar mistakes in php.ini files
The spelling of input_encoding is incorrect in both the php.ini-production
and php.ini-development, as of March, 2014. This fixes the spelling.
Cleaning up spelling and grammar includes wrapping lines to 80 characters,
adding articles such as 'the', and fixing spellings such as pathes to
paths.
Gabriel Caruso [Thu, 1 Feb 2018 08:04:25 +0000 (06:04 -0200)]
Use int instead of integer in proto
Nikita Popov [Fri, 2 Feb 2018 21:31:40 +0000 (22:31 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2
Chris Lamb [Fri, 2 Feb 2018 11:20:58 +0000 (11:20 +0000)]
Fix SOURCE_DATE_EPOCH to not vary on timezones
Anatol Belski [Fri, 2 Feb 2018 17:30:20 +0000 (18:30 +0100)]
Use 7za for packaging
Better compression, Unicode support and general compatibility.
Christoph M. Becker [Fri, 2 Feb 2018 16:39:23 +0000 (17:39 +0100)]
Sync gdImageCrop() with upstream
Besides that we still hope to sync the complete bundled libgd sometime,
the upstream implementation of `gdImageCrop()` is much simpler than the
current one, and thus better readable and less error prone.
Dmitry Stogov [Fri, 2 Feb 2018 14:38:07 +0000 (17:38 +0300)]
Break dependency between IS_TYPE_REFCOUNTED and ZEND_CALL_FREE_EXTRA_ARGS
Dmitry Stogov [Fri, 2 Feb 2018 14:35:23 +0000 (17:35 +0300)]
Added note about changed VM instructions
Anatol Belski [Fri, 2 Feb 2018 13:09:44 +0000 (14:09 +0100)]
Merge branch 'PHP-7.2'
* PHP-7.2:
Switch to the new PHP SDK version on AppVeyor
Anatol Belski [Fri, 2 Feb 2018 13:09:20 +0000 (14:09 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Switch to the new PHP SDK version on AppVeyor
Anatol Belski [Fri, 2 Feb 2018 13:06:53 +0000 (14:06 +0100)]
Switch to the new PHP SDK version on AppVeyor
Anatol Belski [Thu, 1 Feb 2018 15:52:18 +0000 (16:52 +0100)]
Fix incompatible pointer warning
Dmitry Stogov [Thu, 1 Feb 2018 14:46:30 +0000 (17:46 +0300)]
typo
Anatol Belski [Thu, 1 Feb 2018 14:30:58 +0000 (15:30 +0100)]
Merge branch 'PHP-7.2'
* PHP-7.2:
Ensure there are no line breaks in the error msg
Anatol Belski [Thu, 1 Feb 2018 14:30:01 +0000 (15:30 +0100)]
Ensure there are no line breaks in the error msg
Anatol Belski [Thu, 1 Feb 2018 14:26:49 +0000 (15:26 +0100)]
Merge branch 'PHP-7.2'
* PHP-7.2:
[ci skip] Update NEWS
[ci skip] Update NEWS
Fix race conditions with Apache vhost vs. per dir config
Anatol Belski [Thu, 1 Feb 2018 14:26:12 +0000 (15:26 +0100)]
[ci skip] Update NEWS
Anatol Belski [Thu, 1 Feb 2018 14:25:55 +0000 (15:25 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
[ci skip] Update NEWS
Fix race conditions with Apache vhost vs. per dir config