summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Update versions for PHP 8.0.1php-8.0.1Gabriel Caruso2021-01-053-4/+4
|
* Update NEWS for PHP 8.0.1Gabriel Caruso2021-01-051-1/+1
|
* Fix #77423: parse_url() will deliver a wrong host to userChristoph M. Becker2021-01-058-16/+62
| | | | | | | | | | | 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. (cherry picked from commit b132da7f9df3)
* Update NEWS for 8.0.2RC1Gabriel Caruso2020-12-151-0/+3
|
* Update NEWS for PHP 8.0.1RC1Gabriel Caruso2020-12-151-1/+1
|
* Optimize out result value of ASSIGN, ASSIGN_OP and INC/DEC opcodes, if possible.Dmitry Stogov2020-12-151-1/+109
|
* Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2020-12-153-2/+28
|\ | | | | | | | | * PHP-7.4: Fix #77322: PharData::addEmptyDir('/') Possible integer overflow
| * Fix #77322: PharData::addEmptyDir('/') Possible integer overflowChristoph M. Becker2020-12-153-2/+28
| | | | | | | | | | | | | | `phar_path_check()` already strips a leading slash, so we must not attempt to strip the trailing slash from an now empty directory name. Closes GH-6508.
* | Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2020-12-150-0/+0
|\ \ | |/ | | | | | | * PHP-7.4: 7.3.27 is next
| * Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-12-150-0/+0
| |\ | | | | | | | | | | | | * PHP-7.3: 7.3.27 is next
| | * 7.3.27 is nextChristoph M. Becker2020-12-154-6/+9
| | |
* | | JIT: Update invalid opcache.jit INI value message to include "tracing" and ↵Ayesh Karunaratne2020-12-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | "function" values `opcache.jit` accepts `tracing` and `function` as aliases, but they were not mentioned in the start-up INI warning message. This updates the error message to include all possible values. Closes GH-6490.
* | | Merge branch 'PHP-7.4' into PHP-8.0Nikita Popov2020-12-152-3/+4
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: IBM i PASE doesn't support ITIMER_PROF
| * | IBM i PASE doesn't support ITIMER_PROFCalvin Buckley2020-12-152-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Like Cygwin, this platform needs to use a real-time timer. This was based on a patch by @kadler, but it didn't handle unsetting the timer, so the timeout would continue to be active, triggering `hard_timeout` unexpectedly. The patch is fixed to handle unsetting. Closes GH-6503.
* | | JIT disabled build fix.David Carlier2020-12-151-0/+2
| | | | | | | | | | | | Closes GH-6514.
* | | Add Windows support for OCI 19Christoph M. Becker2020-12-145-1/+59
| | | | | | | | | | | | As requested by Christopher Jones.
* | | Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2020-12-141-108/+0
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Drop pdo_mysql_prepare_load_data.phpt
| * | Drop pdo_mysql_prepare_load_data.phptChristoph M. Becker2020-12-141-129/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Like the test title and some comments in this test describe, this test was supposed to have `::prepare()` failing because `LOAD DATA INFILE` would not be supported as prepared statement, and then the test checks whether follow-up queries would succeed. However, `LOAD DATA INFILE` is supported for prepared statements at least on Windows with mysqlnd, so the test does no longer test what it is supposed to do. Therefore, we drop it. Closes GH-6509.
* | | Remove unused flagDmitry Stogov2020-12-142-6/+1
| | |
* | | Fixed bug #80506 (Immediate SIGSEGV upon ini_set("opcache.jit_debug", 1))Dmitry Stogov2020-12-141-0/+2
| | |
* | | Fixed bug #80506 (Immediate SIGSEGV upon ini_set("opcache.jit_debug", 1))Dmitry Stogov2020-12-141-0/+2
| | |
* | | Merge branch 'PHP-7.4' into PHP-8.0Jakub Zelenka2020-12-135-6/+84
|\ \ \ | |/ /
| * | Fix bug #69625: FPM returns 200 status on request without SCRIPT_FILENAMEJakub Zelenka2020-12-135-6/+84
| | |
* | | Remove bug41347.phpt as the error cases are already testedekinhbayar2020-12-111-12/+0
| | | | | | | | | | | | Closes GH-6506.
* | | Fixed bug #79132Nikita Popov2020-12-115-4/+69
| | | | | | | | | | | | | | | | | | Following cmb's suggestion and replacing the counter with a check against the bound_params HT, which ensures that both cannot go out of sync.
* | | PDO MySQL: Fix nextRowset() on libmysqlclient with native PSNikita Popov2020-12-112-93/+79
| | | | | | | | | | | | | | | | | | The logic after next_result should match the one after execute. This was the case for mysqlnd but not libmysqlclient, which used the non-PS logic.
* | | PDO MySQL: Don't skip two LOCAL_INFILE tests with libmysqlclientNikita Popov2020-12-112-4/+0
| | |
* | | PDO MySQL: Unskip bug_41125.phptNikita Popov2020-12-111-7/+30
| | | | | | | | | | | | | | | | | | | | | This test was always skipped (leftover debug statement?) Contrary to the comments in the test and the test expectation, this actually works fine.
* | | Fixed bug #67004Nikita Popov2020-12-113-4/+39
| | | | | | | | | | | | | | | | | | | | | Repeated execute() with native PS failed to release the previous result set on libmysqlclient. Move freeing the result set into a common location.
* | | PDO MySQL: Use stmt_next_result with libmysqlclient as wellNikita Popov2020-12-111-13/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | libmysqlclient added this function in version 5.5, which happens to be the minimum we support. If we have a prepared statement, we should use it on both mysqlnd and libmysqlclient, even if the handling afterwards is different. This fixes error handling with native prepared statements.
* | | PDO MySQL: Fix libmysql option testNikita Popov2020-12-111-37/+32
| | | | | | | | | | | | | | | | | | | | | The fact that getAttribute() fails for various libmysqlclient-only options is a known issue, and the test was taking that into account. However, the change of the default error mode broke the handling. We need to handle the exceptions now.
* | | Fixed bug #62889Nikita Popov2020-12-113-25/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Our minimum libmysqlclient version requirement is high enough that we don't need to check for MYSQL_OPT_LOCAL_INFILE support. However, the mysql_get_option() function seems to only be available since 5.7 (though it's really hard to find any definitie information on when MySQL introduced certain functions or changes...) so we need to store the value of the flag locally to make it available through getAttribute().
* | | PDO MySQL: Fix leak with libmysqlclient and multiple rowsetsNikita Popov2020-12-111-46/+29
| | | | | | | | | | | | | | | | | | | | | | | | stmt->column_count gets reset before the next_rowset handler is invoked, so we need to fetch the value from the result set instead. Arguably PDO should be separating the destruction of the previous result set and the switch to the next result set more cleanly...
* | | Fix test cases for MariaDBDharman2020-12-113-85/+57
| | | | | | | | | | | | | | | | | | And remove unnecessary try-catch. Closes GH-6505.
* | | Fixed bug #72368Nikita Popov2020-12-1011-69/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | Generate a param count mismatch error even if the query contains no placeholders. Additionally we shouldn't HANDLE errors from pdo_parse_params, which are always reported via raise_impl_error. Doing so results in duplicate error messages.
* | | Allow drivers to omit error codeNikita Popov2020-12-106-9/+14
| | | | | | | | | | | | | | | | | | | | | And thus generate error messages that match what PDO emulation would generate. This fixes the error message regression from the previous commit.
* | | Fixed bug #79131Nikita Popov2020-12-109-12/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a driver reports an error during EVT_ALLOC (and some over EVTs), make sure we handle it as usual, i.e. warn or throw. This requires some adjustments in PDO PgSQL to stop manually doing this through an impl error. Unfortunately the PDO PgSQL error messages regress because of this, as they now include a completely arbitrary error code. There doesn't seem to be an ability to skip it right now.
* | | Eliminate some repeatable IS_REFERENCE checksDmitry Stogov2020-12-101-15/+47
| | |
* | | Fixed bug #79872 by improving error messageNikita Popov2020-12-103-6/+41
| | | | | | | | | | | | | | | | | | | | | | | | The actual behavior here is correct, but the previous error message was misleading, as neither fetchAll() nor buffered queries would help in this situation. Instead it is necessary to consume all rowsets, which can be done by either unsetting the statement or calling closeCursor().
* | | Merge branch 'PHP-7.4' into PHP-8.0Nikita Popov2020-12-103-0/+42
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Fixed bug #76815
| * | Fixed bug #76815Nikita Popov2020-12-103-0/+42
| | | | | | | | | | | | | | | | | | When we receive an error while reading a result set, we should assume that no more result sets are available. libmysqlclient implements the same behavior.
* | | Merge branch 'PHP-7.4' into PHP-8.0Nikita Popov2020-12-103-5/+34
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Fixed bug #71145
| * | Fixed bug #71145Nikita Popov2020-12-103-5/+34
| | | | | | | | | | | | Consume any additional result sets when running INIT_COMMAND.
* | | EXTERN_C wrapping for GC buffer APIstwosee2020-12-101-2/+2
| | | | | | | | | | | | Closes GH-6502.
* | | Merge branch 'PHP-7.4' into PHP-8.0Nikita Popov2020-12-100-0/+0
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Backport fix for bug #70066
| * | Backport fix for bug #70066Nikita Popov2020-12-105-11/+37
| | | | | | | | | | | | | | | | | | | | | Given the number of duplicates this bug report had, it seems worthwhile to fix this on PHP-7.4 as well. Cherry-pick of 106e7e4bca7c0fd975eb219b18e3c34957ba8657.
* | | Perform early guard type check for result of FETCH_CONSTANTDmitry Stogov2020-12-095-26/+65
| | |
* | | Fixed bug #70066Nikita Popov2020-12-095-11/+37
| | | | | | | | | | | | | | | If we fall back to emulated prepared statements, destroy S->stmt, so the code doesn't get confused about which mode we're in.
* | | Fixed bug #66878Nikita Popov2020-12-094-1/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Keep track of whether we have fully consumed all result sets, either using nextRowset() calls or closeCursor() and skip the attempt to consume remaining results sets during destruction in that case. Especiall if closeCursor() has been used, we really shouldn't have this sort of cross-statement inference.
* | | Remove unnecessary more_results() checksNikita Popov2020-12-091-17/+1
| | | | | | | | | | | | Just calling next_result() is sufficient.