]> granicus.if.org Git - php/log
php
3 years agoMerge branch 'PHP-7.4' into PHP-8.0
Christoph M. Becker [Tue, 26 Jan 2021 18:09:35 +0000 (19:09 +0100)]
Merge branch 'PHP-7.4' into PHP-8.0

* PHP-7.4:
  Update version

3 years agoUpdate version
Christoph M. Becker [Tue, 26 Jan 2021 18:07:57 +0000 (19:07 +0100)]
Update version

That appears to have been forgotten for a while.

3 years agoAllow observer handlers disabling optimization in RETURN opcode handler, that may...
Dmitry Stogov [Tue, 26 Jan 2021 16:23:13 +0000 (19:23 +0300)]
Allow observer handlers disabling optimization in RETURN opcode handler, that may cause loss value of returned local variable.

3 years agoSkip dummy frames allocated on CPU stack of zend_call_function().
Dmitry Stogov [Tue, 26 Jan 2021 15:41:26 +0000 (18:41 +0300)]
Skip dummy frames allocated on CPU stack of zend_call_function().
(Usage of "current_observed_frame" varible looks unsafe to me).

3 years agoFix VAR return type verification
Nikita Popov [Tue, 26 Jan 2021 14:15:18 +0000 (15:15 +0100)]
Fix VAR return type verification

We should also set retval_ref when de-indirecting. Otherwise the
retval_ref != retval_ptr comparison below may incorrect assume
that we're returning a reference.

I don't have a reliable reproducer for this issue, but it sometimes
appears in certain configurations in arrow_functions/007.phpt in
conjunction with other changes.

3 years agoMerge branch 'PHP-7.4' into PHP-8.0
Christoph M. Becker [Mon, 25 Jan 2021 17:48:35 +0000 (18:48 +0100)]
Merge branch 'PHP-7.4' into PHP-8.0

* PHP-7.4:
  Fix #75850: Unclear error message wrt. __halt_compiler() w/o semicolon

3 years agoFix #75850: Unclear error message wrt. __halt_compiler() w/o semicolon
Christoph M. Becker [Mon, 25 Jan 2021 16:12:48 +0000 (17:12 +0100)]
Fix #75850: Unclear error message wrt. __halt_compiler() w/o semicolon

We add the failure reason to the error message.

Closes GH-6638.

3 years agoImprove switch continue warning
Nikita Popov [Mon, 25 Jan 2021 15:17:14 +0000 (16:17 +0100)]
Improve switch continue warning

Don't suggest "continue N+1" if there is no wrapping loop. The
resulting code would be illegal.

3 years agoFix #53251: bindtextdomain with null dir doesn't return old value
Christoph M. Becker [Fri, 22 Jan 2021 12:08:51 +0000 (13:08 +0100)]
Fix #53251: bindtextdomain with null dir doesn't return old value

Apparently, users expect `bindtextdomain` and `bind_textdomain_codeset`
with `null` as second argument to work like their C counterparts,
namely to return the previously set value.  Thus, we support that.

Closes GH-6631.

3 years agoFix opcache phpize build on FreeBSD
Alex Samorukov [Fri, 8 Jan 2021 18:09:09 +0000 (19:09 +0100)]
Fix opcache phpize build on FreeBSD

Closes GH-6589.

3 years agoUpdated to version 2021.1 (2021a)
Derick Rethans [Mon, 25 Jan 2021 10:44:06 +0000 (10:44 +0000)]
Updated to version 2021.1 (2021a)

3 years agoEmpty merge
Derick Rethans [Mon, 25 Jan 2021 10:44:06 +0000 (10:44 +0000)]
Empty merge

3 years agoUpdated to version 2021.1 (2021a)
Derick Rethans [Mon, 25 Jan 2021 10:44:05 +0000 (10:44 +0000)]
Updated to version 2021.1 (2021a)

3 years agoEmpty merge
Derick Rethans [Mon, 25 Jan 2021 10:44:05 +0000 (10:44 +0000)]
Empty merge

3 years agoUpdated to version 2021.1 (2021a)
Derick Rethans [Mon, 25 Jan 2021 10:44:04 +0000 (10:44 +0000)]
Updated to version 2021.1 (2021a)

3 years agoAdd missing stub for SNMPException
Christoph M. Becker [Sun, 24 Jan 2021 16:58:26 +0000 (17:58 +0100)]
Add missing stub for SNMPException

3 years agoAdd missing stub for com_exception
Christoph M. Becker [Sun, 24 Jan 2021 15:06:49 +0000 (16:06 +0100)]
Add missing stub for com_exception

3 years agoMerge branch 'PHP-7.4' into PHP-8.0
Christoph M. Becker [Thu, 21 Jan 2021 16:28:41 +0000 (17:28 +0100)]
Merge branch 'PHP-7.4' into PHP-8.0

* PHP-7.4:
  Add missing SKIPIF clause for recently introduced test case

3 years agoAdd missing SKIPIF clause for recently introduced test case
Christoph M. Becker [Thu, 21 Jan 2021 16:16:54 +0000 (17:16 +0100)]
Add missing SKIPIF clause for recently introduced test case

3 years agoMerge branch 'PHP-7.4' into PHP-8.0
Christoph M. Becker [Wed, 20 Jan 2021 15:24:53 +0000 (16:24 +0100)]
Merge branch 'PHP-7.4' into PHP-8.0

* PHP-7.4:
  Fix #80648: Fix for bug 79296 should be based on runtime version

3 years agoFix #80648: Fix for bug 79296 should be based on runtime version
Christoph M. Becker [Wed, 20 Jan 2021 14:24:47 +0000 (15:24 +0100)]
Fix #80648: Fix for bug 79296 should be based on runtime version

Instead of checking for actually affected libzip versions, we now always
`ZIP_TRUNCATE` empty files unless `ZIP_RDONLY` is set.

Closes GH-6625.

3 years agoMerge branch 'PHP-7.4' into PHP-8.0
Christoph M. Becker [Wed, 20 Jan 2021 10:04:48 +0000 (11:04 +0100)]
Merge branch 'PHP-7.4' into PHP-8.0

* PHP-7.4:
  Add missing SKIPIF clauses to new test cases

3 years agoAdd missing SKIPIF clauses to new test cases
Christoph M. Becker [Wed, 20 Jan 2021 09:59:37 +0000 (10:59 +0100)]
Add missing SKIPIF clauses to new test cases

3 years agoSkip preloading test on windows
Nikita Popov [Wed, 20 Jan 2021 09:09:31 +0000 (10:09 +0100)]
Skip preloading test on windows

3 years agoFixed bug #80634 (write_property handler of internal classes is skipped on preloaded...
Dmitry Stogov [Wed, 20 Jan 2021 08:03:37 +0000 (11:03 +0300)]
Fixed bug #80634 (write_property handler of internal classes is skipped on preloaded JITted code)

3 years agoNext is 8.0.3
Gabriel Caruso [Tue, 19 Jan 2021 16:00:48 +0000 (13:00 -0300)]
Next is 8.0.3

3 years agoFix NEWS placeholder for the next version
Gabriel Caruso [Tue, 19 Jan 2021 15:32:17 +0000 (12:32 -0300)]
Fix NEWS placeholder for the next version

This aligns with the PHP-7.4 and PHP-7.3 branches, and should
fix the `sgolemon/php-release` script run for releasing 8.0.2.

3 years agoMerge branch 'PHP-7.4' into PHP-8.0
Derick Rethans [Tue, 19 Jan 2021 14:59:19 +0000 (14:59 +0000)]
Merge branch 'PHP-7.4' into PHP-8.0

3 years agoUpdate NEWS and version
Derick Rethans [Tue, 19 Jan 2021 14:58:38 +0000 (14:58 +0000)]
Update NEWS and version

3 years agoUpdate NEWS for PHP 7.4.15RC1
Derick Rethans [Tue, 19 Jan 2021 14:44:32 +0000 (14:44 +0000)]
Update NEWS for PHP 7.4.15RC1

3 years agoFix observer tests on Windows
Nikita Popov [Tue, 19 Jan 2021 10:11:40 +0000 (11:11 +0100)]
Fix observer tests on Windows

Use %e instead of a hardcoded forward slash.

3 years agoFixed bug #80644: ResourceBundle::get() doesn't reset error state
Nikita Popov [Tue, 19 Jan 2021 14:20:01 +0000 (15:20 +0100)]
Fixed bug #80644: ResourceBundle::get() doesn't reset error state

3 years agoMerge branch 'PHP-7.4' into PHP-8.0
Nikita Popov [Tue, 19 Jan 2021 10:44:22 +0000 (11:44 +0100)]
Merge branch 'PHP-7.4' into PHP-8.0

* PHP-7.4:
  Fixed bug #42560

3 years agoFixed bug #42560
sj-i [Sun, 20 Dec 2020 06:57:54 +0000 (15:57 +0900)]
Fixed bug #42560

Check open_basedir after the fallback to the system's temporary
directory in tempnam().

In order to preserve the current behavior of upload_tmp_dir
(do not check explicitly specified dir, but check fallback),
new flags are added to check open_basedir for explicit dir
and for fallback.

Closes GH-6526.

3 years agoldap_search() and friends can return array
Christoph M. Becker [Mon, 18 Jan 2021 22:39:42 +0000 (23:39 +0100)]
ldap_search() and friends can return array

See the description of <https://www.php.net/ldap-search>, and also the
implementation.

Closes GH-6620.

3 years agoMerge branch 'PHP-7.4' into PHP-8.0
Christoph M. Becker [Tue, 19 Jan 2021 09:30:06 +0000 (10:30 +0100)]
Merge branch 'PHP-7.4' into PHP-8.0

* PHP-7.4:
  Fix #69279: Compressed ZIP Phar extractTo() creates garbage files

3 years agoFix #69279: Compressed ZIP Phar extractTo() creates garbage files
Christoph M. Becker [Fri, 18 Dec 2020 17:05:52 +0000 (18:05 +0100)]
Fix #69279: Compressed ZIP Phar extractTo() creates garbage files

When extracting compressed files from an uncompressed Phar, we must not
use the direct file pointer, but rather get an uncompressed file
pointer.

We also add a test to show that deflated and stored entries are
properly extracted.

This also fixes #79912, which appears to be a duplicate of #69279.

Co-authored-by: Anna Filina <afilina@gmail.com>
Closes GH-6599.

3 years agoKeep JIT region executable under ZTS
Dylan K. Taylor [Mon, 11 Jan 2021 22:39:14 +0000 (22:39 +0000)]
Keep JIT region executable under ZTS

When one thread tries to compile a script, another thread may
already be executing JITed code. In this case we can't make the
memory non-executable.

This violates the W^X principle, but doesn't seem to be avoidable
for ZTS builds for now. The same problem does not exist for NTS,
as it's a different process executing there, which has it's own
memory protection mapping.

Closes GH-6595.

3 years agoObserve unused return values in JIT
Nikita Popov [Tue, 19 Jan 2021 09:07:32 +0000 (10:07 +0100)]
Observe unused return values in JIT

Even if the return value is not used, it should still be available
to the observer.

3 years agoDisable opcache optimizations during some observer tests
Nikita Popov [Tue, 19 Jan 2021 08:59:26 +0000 (09:59 +0100)]
Disable opcache optimizations during some observer tests

Opcache inlines functions that only return a constant. Disable
optimizations to prevent differences in tests where such functions
are used (or rewrite the test to not depend on it).

3 years agoSplFileObject::fgets() cannot return false
Nikita Popov [Mon, 18 Jan 2021 15:47:04 +0000 (16:47 +0100)]
SplFileObject::fgets() cannot return false

spl_filesystem_file_read() is called with silent=0, so it will
throw on failure.

3 years agoSync gzgets signature with fgets
Nikita Popov [Mon, 18 Jan 2021 13:17:46 +0000 (14:17 +0100)]
Sync gzgets signature with fgets

3 years agoSync datefmt_get_calendar_object signature
Nikita Popov [Mon, 18 Jan 2021 13:38:53 +0000 (14:38 +0100)]
Sync datefmt_get_calendar_object signature

In this case, it's only a matter of using the same type order
in both cases.

3 years agoSync intlcal_create_instance() and IntlCalendar::createInstance()
Nikita Popov [Mon, 18 Jan 2021 13:35:44 +0000 (14:35 +0100)]
Sync intlcal_create_instance() and IntlCalendar::createInstance()

Remove the explicit mention of IntlGregorianCalendar in the latter.
It is a subclass of IntlCalendar, and as such covered if only
IntlCalendar is used as the return type.

3 years agoSync date_diff and DateTime::diff return type
Nikita Popov [Mon, 18 Jan 2021 13:32:24 +0000 (14:32 +0100)]
Sync date_diff and DateTime::diff return type

This function/method cannot return false.

3 years agoFix parameter name of PharData::getMetadata()
Nikita Popov [Mon, 18 Jan 2021 13:09:00 +0000 (14:09 +0100)]
Fix parameter name of PharData::getMetadata()

The name should be the same as for Phar::getMetadata().

3 years agoFix stub for Phar::setStub()
Dylan K. Taylor [Tue, 12 Jan 2021 01:49:38 +0000 (01:49 +0000)]
Fix stub for Phar::setStub()

This fixes multiple issues:
 * The first parameter may be resource|string.
 * It's an overloaded signature. The second parameter cannot be
   passed if the first one is a string. Use UNKNOWN default
   value for that reason.
 * Make parameter names in PharData::setStub() match those in
   Phar.

Closes GH-6596.

3 years agoMerge branch 'PHP-7.4' into PHP-8.0
Christoph M. Becker [Mon, 18 Jan 2021 10:01:01 +0000 (11:01 +0100)]
Merge branch 'PHP-7.4' into PHP-8.0

* PHP-7.4:
  Fix #80595: Resetting POSTFIELDS to empty array breaks request

3 years agoFix #80595: Resetting POSTFIELDS to empty array breaks request
Christoph M. Becker [Fri, 15 Jan 2021 13:01:40 +0000 (14:01 +0100)]
Fix #80595: Resetting POSTFIELDS to empty array breaks request

This is mainly to work around https://github.com/curl/curl/issues/6455,
but not building the mime structure for empty hashtables is a general
performance optimization, so we do not restrict it to affected cURL
versions (7.56.0 to 7.75.0).

The minor change to bug79033.phpt is unexpected, but should not matter
in practice.

Closes GH-6606.

3 years agoFixed bug #80617: Type narrowing warning in ZEND_TYPE_INIT_CODE
Nikita Popov [Thu, 14 Jan 2021 09:08:22 +0000 (10:08 +0100)]
Fixed bug #80617: Type narrowing warning in ZEND_TYPE_INIT_CODE

3 years agoFixed bug #80596: Fix anonymous class union typehint errors
Daniil Gentili [Wed, 13 Jan 2021 09:43:54 +0000 (10:43 +0100)]
Fixed bug #80596: Fix anonymous class union typehint errors

Cut off part after null byte when resolving the class name, to
avoid cutting off a larger part lateron.

Closes GH-6601.

3 years agoFixed bug #80422 (php_opcache.dll crashes when using Apache 2.4 with JIT)
Dmitry Stogov [Thu, 14 Jan 2021 05:16:27 +0000 (08:16 +0300)]
Fixed bug #80422 (php_opcache.dll crashes when using Apache 2.4 with JIT)

3 years agosocket_create_pair() can no longer return NULL
Christoph M. Becker [Sun, 10 Jan 2021 22:12:32 +0000 (23:12 +0100)]
socket_create_pair() can no longer return NULL

Closes GH-6592.

3 years agoUse arc4random_buf on macOS
David CARLIER [Sat, 9 Jan 2021 07:12:12 +0000 (07:12 +0000)]
Use arc4random_buf on macOS

macOS uses an AES based arc4random_buf implementation since at least
macOS 10.2.

Closes GH-6591.

3 years agoAdd support for union types for internal functions
Nikita Popov [Wed, 6 Jan 2021 15:06:51 +0000 (16:06 +0100)]
Add support for union types for internal functions

This closes the last hole in the supported types for internal
function arginfo types. It's now possible to represent unions of
multiple classes. This is done by storing them as TypeA|TypeB and
PHP will then convert this into an appropriate union type list.

Closes GH-6581.

3 years agoUse ephemeral port in socket_create_listen_used.phpt
Nikita Popov [Tue, 12 Jan 2021 09:08:33 +0000 (10:08 +0100)]
Use ephemeral port in socket_create_listen_used.phpt

Avoid parallelism issues.

3 years agoFixed bug #80545
Jens de Nies [Sun, 27 Dec 2020 20:15:06 +0000 (21:15 +0100)]
Fixed bug #80545

This converts the remaining "non well-formed" warnings in bcmath
to ValueErrors, in line with the other warning promotions that
have been performed in this extension.

Closes GH-80545.

3 years agoRevert fix for bug 76813 and re2c version bump
Christoph M. Becker [Mon, 11 Jan 2021 12:10:47 +0000 (13:10 +0100)]
Revert fix for bug 76813 and re2c version bump

CentOS 7 ships with re2c 0.13.5 by default, so we should not have
bumped the required re2c version to 0.13.7.  However, 0.13.5 does not
support default rules, so we cannot use them to fix bug 76813.

This reverts commit 420184ad529443182c9a348a55b1c9216005c613 and
5e15c9c41f8318a8392c2e2c78544f218736549c.

Closes GH-6593.

3 years agoMerge branch 'PHP-7.4' into PHP-8.0
Christoph M. Becker [Mon, 11 Jan 2021 12:21:56 +0000 (13:21 +0100)]
Merge branch 'PHP-7.4' into PHP-8.0

* PHP-7.4:
  Revert "Fix #76813: Access violation near NULL on source operand"

3 years agoRevert "Fix #76813: Access violation near NULL on source operand"
Christoph M. Becker [Mon, 11 Jan 2021 12:08:29 +0000 (13:08 +0100)]
Revert "Fix #76813: Access violation near NULL on source operand"

This reverts commit 5e15c9c41f8318a8392c2e2c78544f218736549c, since
re2c default rules are only available as of re2c 0.13.7.

3 years agoAdd guard if lvalue of assignment may be a reference, but wasn't a reference during...
Dmitry Stogov [Mon, 11 Jan 2021 12:12:27 +0000 (15:12 +0300)]
Add guard if lvalue of assignment may be a reference, but wasn't a reference during recording

3 years agoRename ``zip_ent`` parameter to ``zip_entry`` for consistency
George Peter Banyard [Fri, 8 Jan 2021 03:47:14 +0000 (03:47 +0000)]
Rename ``zip_ent`` parameter to ``zip_entry`` for consistency

All other functions use ``zip_entry``

3 years agoMerge branch 'PHP-7.4' into PHP-8.0
Christoph M. Becker [Thu, 7 Jan 2021 12:48:17 +0000 (13:48 +0100)]
Merge branch 'PHP-7.4' into PHP-8.0

* PHP-7.4:
  Avoid modifying the return value of readline_completion_function()

3 years agoAvoid modifying the return value of readline_completion_function()
Christoph M. Becker [Wed, 6 Jan 2021 17:56:02 +0000 (18:56 +0100)]
Avoid modifying the return value of readline_completion_function()

The internal function `_readline_command_generator()` modifies the
internal array pointer of `readline_completion_function()`'s return
value.  We therefore separate the array, what also avoids failing
assertions regarding the array refcount.

Closes GH-6582.

3 years agoMake fetch_* OO same as func
Dharman [Wed, 6 Jan 2021 12:59:27 +0000 (12:59 +0000)]
Make fetch_* OO same as func

Clsoses GH-6580.

3 years agoFix #80592: all floats are the same in ODBC parameters
Christoph M. Becker [Tue, 5 Jan 2021 23:22:53 +0000 (00:22 +0100)]
Fix #80592: all floats are the same in ODBC parameters

We must not release the strings until we are done with them.

Closes GH-6579.

3 years agoFix/improve mysqli stubs
Dharman [Mon, 4 Jan 2021 18:08:42 +0000 (18:08 +0000)]
Fix/improve mysqli stubs

* mysqli_commit $flags default value is 0, not -1.
* A number of functions cannot actually return null.
* mysqli_poll parameter names were incorrect, as this function
  has a different signature from select.
* fetch functions apart from fetch_all can return false on failure.

3 years agoAdd missing SKIPIF clause for require_hash.phpt
Christoph M. Becker [Wed, 6 Jan 2021 10:00:10 +0000 (11:00 +0100)]
Add missing SKIPIF clause for require_hash.phpt

3 years agoMerge branch 'PHP-7.4' into PHP-8.0
Christoph M. Becker [Tue, 5 Jan 2021 22:43:20 +0000 (23:43 +0100)]
Merge branch 'PHP-7.4' into PHP-8.0

* PHP-7.4:
  Fix #77565: Incorrect locator detection in ZIP-based phars

3 years agoFix #77565: Incorrect locator detection in ZIP-based phars
Christoph M. Becker [Tue, 5 Jan 2021 14:52:38 +0000 (15:52 +0100)]
Fix #77565: Incorrect locator detection in ZIP-based phars

We must not assume that the first end of central dir signature in a ZIP
archive actually designates the end of central directory record, since
the data in the archive may contain arbitrary byte patterns.  Thus, we
better search from the end of the data, what is also slightly more
efficient.

There is, however, no way to detect the end of central directory
signature by searching from the end of the ZIP archive with absolute
certainty, since the signature could be part of the trailing comment.
To mitigate, we check that the comment length fits to the found
position, but that might still not be the correct position in rare
cases.

Closes GH-6507.

3 years agoPrevent double-free of Phar ZIP stream
Christoph M. Becker [Tue, 5 Jan 2021 11:52:00 +0000 (12:52 +0100)]
Prevent double-free of Phar ZIP stream

We must not alias the closed stream to `phar_archive_data.fp`, and use
PHAR_ZIP_FAIL() for consistency with the rest of this function.

Closes GH-6578.

3 years agoMerge branch 'PHP-7.4' into PHP-8.0
Christoph M. Becker [Tue, 5 Jan 2021 13:24:59 +0000 (14:24 +0100)]
Merge branch 'PHP-7.4' into PHP-8.0

* PHP-7.4:
  Fix memory leak in Phar::webPhar() on Windows

3 years agoFix memory leak in Phar::webPhar() on Windows
Christoph M. Becker [Mon, 4 Jan 2021 16:08:06 +0000 (17:08 +0100)]
Fix memory leak in Phar::webPhar() on Windows

Closes GH-6574.

3 years agoFix infinite recursion in unlinked_instanceof
Nikita Popov [Tue, 5 Jan 2021 12:02:30 +0000 (13:02 +0100)]
Fix infinite recursion in unlinked_instanceof

I suspect this is only a partial fix for the issue, it's probably
possible to recurse through a more complex pathway as well.

Fixes oss-fuzz #28961.

3 years agoMerge branch 'PHP-7.4' into PHP-8.0
Nikita Popov [Tue, 5 Jan 2021 09:12:43 +0000 (10:12 +0100)]
Merge branch 'PHP-7.4' into PHP-8.0

* PHP-7.4:
  gdbinit: use ____print_str to print htable keys

3 years agogdbinit: use ____print_str to print htable keys
Dylan K. Taylor [Mon, 4 Jan 2021 23:13:00 +0000 (23:13 +0000)]
gdbinit: use ____print_str to print htable keys

I noticed this problem while dumping the contents of EG(function_table),
where keys for closures start with a null byte. printf interprets this
as a zero-length string and emits nothing. This allows the key to be
rendered properly in readable form.

Closes GH-6577.

3 years ago[ci skip] Add forgotten NEWS entry (bug 80560)
Christoph M. Becker [Mon, 4 Jan 2021 17:17:31 +0000 (18:17 +0100)]
[ci skip] Add forgotten NEWS entry (bug 80560)

3 years agoFix bug #80584: 0x and 0X are considered valid hex numbers by filter_var()
George Peter Banyard [Mon, 4 Jan 2021 14:24:53 +0000 (15:24 +0100)]
Fix bug #80584: 0x and 0X are considered valid hex numbers by filter_var()

Closes GH-6573

3 years agoFix #76929: zip-based phar does not respect phar.require_hash
Christoph M. Becker [Wed, 16 Dec 2020 11:35:38 +0000 (12:35 +0100)]
Fix #76929: zip-based phar does not respect phar.require_hash

Based on the patch provided by david at bamsoftware.

Closes GH-6517.

3 years agoFix newly added GMP test
Nikita Popov [Mon, 4 Jan 2021 14:27:20 +0000 (15:27 +0100)]
Fix newly added GMP test

3 years agoFix GMP comparison object handler
George Peter Banyard [Tue, 29 Dec 2020 16:50:37 +0000 (17:50 +0100)]
Fix GMP comparison object handler

gmp_cmp() doesn't return false anymore in PHP 8 but will throw
an Error if compared to a non numeric string or another type of object.

Closes GH-6553

3 years agoTry to fix intermittent failures of stream_server_reneg_limit.phpt on macos
Nikita Popov [Mon, 4 Jan 2021 13:31:42 +0000 (14:31 +0100)]
Try to fix intermittent failures of stream_server_reneg_limit.phpt on macos

Make sure the server has started up before we try to connect to it.

3 years agoThrow ValueError instead of TypeError for malformed GMP number
Nikita Popov [Mon, 4 Jan 2021 11:14:01 +0000 (12:14 +0100)]
Throw ValueError instead of TypeError for malformed GMP number

If the passed argument has correct type (string) but does not
have a well-formed value, throw ValueError instead of TypeError.

Closes GH-6572.

3 years agoSQLite3::query() cannot return null
Christoph M. Becker [Fri, 1 Jan 2021 22:43:53 +0000 (23:43 +0100)]
SQLite3::query() cannot return null

3 years agoMac M1 crc32 detection support
David CARLIER [Thu, 31 Dec 2020 14:52:57 +0000 (14:52 +0000)]
Mac M1 crc32 detection support

Closes GH-6556.

3 years agoMerge branch 'PHP-7.4' into PHP-8.0
Nikita Popov [Mon, 4 Jan 2021 09:55:50 +0000 (10:55 +0100)]
Merge branch 'PHP-7.4' into PHP-8.0

* PHP-7.4:
  Disable non-cron travis jobs

3 years agoFix test name
Stanislav Malyshev [Mon, 4 Jan 2021 09:52:59 +0000 (01:52 -0800)]
Fix test name

3 years agoDisable non-cron travis jobs
Nikita Popov [Mon, 4 Jan 2021 09:52:37 +0000 (10:52 +0100)]
Disable non-cron travis jobs

This was already done for PHP-8.0 and master, do it for PHP-7.4
as well.

3 years ago[ci skip] Update NEWS
Stanislav Malyshev [Mon, 4 Jan 2021 09:47:47 +0000 (01:47 -0800)]
[ci skip] Update NEWS

3 years agoMerge branch 'PHP-7.4' into PHP-8.0
Stanislav Malyshev [Mon, 4 Jan 2021 09:47:09 +0000 (01:47 -0800)]
Merge branch 'PHP-7.4' into PHP-8.0

* PHP-7.4:
  [ci skip] Update NEWS
  [ci skip] Fix order
  [ci skip] Unpdate NEWS
  Fix #77423: parse_url() will deliver a wrong host to user

3 years ago[ci skip] Update NEWS
Stanislav Malyshev [Mon, 4 Jan 2021 09:46:32 +0000 (01:46 -0800)]
[ci skip] Update NEWS

3 years agoMerge branch 'PHP-7.3' into PHP-7.4
Stanislav Malyshev [Mon, 4 Jan 2021 09:46:11 +0000 (01:46 -0800)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  [ci skip] Fix order

3 years ago[ci skip] Fix order
Stanislav Malyshev [Mon, 4 Jan 2021 09:45:04 +0000 (01:45 -0800)]
[ci skip] Fix order

3 years agoMerge branch 'PHP-7.3' into PHP-7.4
Stanislav Malyshev [Mon, 4 Jan 2021 09:44:18 +0000 (01:44 -0800)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  [ci skip] Unpdate NEWS

3 years ago[ci skip] Unpdate NEWS
Stanislav Malyshev [Mon, 4 Jan 2021 09:43:45 +0000 (01:43 -0800)]
[ci skip] Unpdate NEWS

3 years agoFix bug #79405 - gethostbyname() silently truncates after a null byte
Stanislav Malyshev [Sun, 3 Jan 2021 02:55:29 +0000 (18:55 -0800)]
Fix bug #79405 - gethostbyname() silently truncates after a null byte

3 years agoFix #77423: parse_url() will deliver a wrong host to user
Christoph M. Becker [Wed, 13 May 2020 07:36:52 +0000 (09:36 +0200)]
Fix #77423: parse_url() will deliver a wrong host to user

To avoid that `parse_url()` returns an erroneous host, which would be
valid for `FILTER_VALIDATE_URL`, we make sure that only userinfo which
is valid according to RFC 3986 is treated as such.

For consistency with the existing url parsing code, we use ctype
functions, although that is not necessarily correct.

3 years agoFix imap stubs
Christoph M. Becker [Thu, 31 Dec 2020 18:30:11 +0000 (19:30 +0100)]
Fix imap stubs

Closes GH-6559.

3 years agoZipArchive methods do not return NULL
Christoph M. Becker [Sat, 2 Jan 2021 11:18:46 +0000 (12:18 +0100)]
ZipArchive methods do not return NULL

Closes GH-6563.

3 years agoMerge branch 'PHP-7.3' into PHP-7.4
Stanislav Malyshev [Sat, 2 Jan 2021 05:07:15 +0000 (21:07 -0800)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix #77423: parse_url() will deliver a wrong host to user