summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix buildPHP-8.0.2Nikita Popov2021-02-021-1/+1
|
* Fix bug #80672 - Null Dereference in SoapClientStanislav Malyshev2021-02-025-15/+40
|
* Update NEWS for PHP 8.0.2Gabriel Caruso2021-02-021-1/+1
|
* [ci-skip] Fix typo in placeholderGabriel Caruso2021-02-021-1/+1
|
* [ci-skip] Remove RC suffix to release non-RCGabriel Caruso2021-02-021-1/+1
|
* [ci-skip] Fix placeholder for non-RC releaseGabriel Caruso2021-02-021-1/+1
|
* Rm unneeded functionStanislav Malyshev2021-02-021-16/+0
|
* Alternative fix for bug 77423Christoph M. Becker2021-02-028-28/+38
| | | | | | | | | | | That bug report originally was about `parse_url()` misbehaving, but the security aspect was actually only regarding `FILTER_VALIDATE_URL`. Since the changes to `parse_url_ex()` apparently affect userland code which is relying on the sloppy URL parsing[1], this alternative restores the old parsing behavior, but ensures that the userinfo is checked for correctness for `FILTER_VALIDATE_URL`. [1] <https://github.com/php/php-src/commit/5174de7cd33c3d4fa591c9c93859ff9989b07e8c#commitcomment-45967652>
* Update NEWS for PHP 8.0.2RC1Gabriel Caruso2021-01-191-1/+1
|
* Fix NEWS placeholder for the next versionGabriel Caruso2021-01-191-1/+1
| | | | | 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.
* Merge branch 'PHP-7.4' into PHP-8.0Derick Rethans2021-01-190-0/+0
|\
| * Update NEWS and versionDerick Rethans2021-01-192-2/+4
| |
| * Update NEWS for PHP 7.4.15RC1Derick Rethans2021-01-191-1/+1
| |
* | Fix observer tests on WindowsNikita Popov2021-01-1938-140/+140
| | | | | | | | Use %e instead of a hardcoded forward slash.
* | Fixed bug #80644: ResourceBundle::get() doesn't reset error stateNikita Popov2021-01-193-1/+12
| |
* | Merge branch 'PHP-7.4' into PHP-8.0Nikita Popov2021-01-196-10/+37
|\ \ | |/ | | | | | | * PHP-7.4: Fixed bug #42560
| * Fixed bug #42560sj-i2021-01-196-10/+37
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | ldap_search() and friends can return arrayChristoph M. Becker2021-01-192-4/+4
| | | | | | | | | | | | | | See the description of <https://www.php.net/ldap-search>, and also the implementation. Closes GH-6620.
* | Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2021-01-196-1/+93
|\ \ | |/ | | | | | | * PHP-7.4: Fix #69279: Compressed ZIP Phar extractTo() creates garbage files
| * Fix #69279: Compressed ZIP Phar extractTo() creates garbage filesChristoph M. Becker2021-01-196-1/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Keep JIT region executable under ZTSDylan K. Taylor2021-01-191-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Observe unused return values in JITNikita Popov2021-01-191-12/+7
| | | | | | | | | | Even if the return value is not used, it should still be available to the observer.
* | Disable opcache optimizations during some observer testsNikita Popov2021-01-194-16/+18
| | | | | | | | | | | | 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).
* | SplFileObject::fgets() cannot return falseNikita Popov2021-01-183-4/+4
| | | | | | | | | | spl_filesystem_file_read() is called with silent=0, so it will throw on failure.
* | Sync gzgets signature with fgetsNikita Popov2021-01-182-4/+4
| |
* | Sync datefmt_get_calendar_object signatureNikita Popov2021-01-182-2/+2
| | | | | | | | | | In this case, it's only a matter of using the same type order in both cases.
* | Sync intlcal_create_instance() and IntlCalendar::createInstance()Nikita Popov2021-01-182-2/+2
| | | | | | | | | | | | 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.
* | Sync date_diff and DateTime::diff return typeNikita Popov2021-01-182-3/+3
| | | | | | | | This function/method cannot return false.
* | Fix parameter name of PharData::getMetadata()Nikita Popov2021-01-182-5/+3
| | | | | | | | The name should be the same as for Phar::getMetadata().
* | Fix stub for Phar::setStub()Dylan K. Taylor2021-01-182-10/+7
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2021-01-184-1/+42
|\ \ | |/ | | | | | | * PHP-7.4: Fix #80595: Resetting POSTFIELDS to empty array breaks request
| * Fix #80595: Resetting POSTFIELDS to empty array breaks requestChristoph M. Becker2021-01-184-2/+43
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Fixed bug #80617: Type narrowing warning in ZEND_TYPE_INIT_CODENikita Popov2021-01-142-1/+3
| |
* | Fixed bug #80596: Fix anonymous class union typehint errorsDaniil Gentili2021-01-143-3/+45
| | | | | | | | | | | | | | Cut off part after null byte when resolving the class name, to avoid cutting off a larger part lateron. Closes GH-6601.
* | Fixed bug #80422 (php_opcache.dll crashes when using Apache 2.4 with JIT)Dmitry Stogov2021-01-142-0/+9
| |
* | socket_create_pair() can no longer return NULLChristoph M. Becker2021-01-122-3/+3
| | | | | | | | Closes GH-6592.
* | Use arc4random_buf on macOSDavid CARLIER2021-01-121-1/+1
| | | | | | | | | | | | | | macOS uses an AES based arc4random_buf implementation since at least macOS 10.2. Closes GH-6591.
* | Add support for union types for internal functionsNikita Popov2021-01-125-53/+96
| | | | | | | | | | | | | | | | | | 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.
* | Use ephemeral port in socket_create_listen_used.phptNikita Popov2021-01-121-11/+12
| | | | | | | | Avoid parallelism issues.
* | Fixed bug #80545Jens de Nies2021-01-124-84/+248
| | | | | | | | | | | | | | | | 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.
* | Revert fix for bug 76813 and re2c version bumpChristoph M. Becker2021-01-115-22/+7
| | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2021-01-110-0/+0
|\ \ | |/ | | | | | | * PHP-7.4: Revert "Fix #76813: Access violation near NULL on source operand"
| * Revert "Fix #76813: Access violation near NULL on source operand"Christoph M. Becker2021-01-114-24/+3
| | | | | | | | | | This reverts commit 5e15c9c41f8318a8392c2e2c78544f218736549c, since re2c default rules are only available as of re2c 0.13.7.
* | Add guard if lvalue of assignment may be a reference, but wasn't a reference ↵Dmitry Stogov2021-01-111-0/+5
| | | | | | | | during recording
* | Rename ``zip_ent`` parameter to ``zip_entry`` for consistencyGeorge Peter Banyard2021-01-082-4/+4
| | | | | | | | All other functions use ``zip_entry``
* | Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2021-01-071-0/+1
|\ \ | |/ | | | | | | * PHP-7.4: Avoid modifying the return value of readline_completion_function()
| * Avoid modifying the return value of readline_completion_function()Christoph M. Becker2021-01-071-0/+1
| | | | | | | | | | | | | | | | | | 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.
* | Make fetch_* OO same as funcDharman2021-01-062-4/+4
| | | | | | | | Clsoses GH-6580.
* | Fix #80592: all floats are the same in ODBC parametersChristoph M. Becker2021-01-063-5/+40
| | | | | | | | | | | | We must not release the strings until we are done with them. Closes GH-6579.
* | Fix/improve mysqli stubsDharman2021-01-064-91/+61
| | | | | | | | | | | | | | | | * 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.