summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Bump versionphp-7.3.14PHP-7.3.14Christoph M. Becker2020-01-214-6/+4
|
* Merge branch 'PHP-7.2' into PHP-7.3Stanislav Malyshev2020-01-217-5/+123
| | | | | | | | | | * PHP-7.2: Update NEWS Fix bug #79037 (global buffer-overflow in `mbfl_filt_conv_big5_wchar`) Fix #79099: OOB read in php_strip_tags_ex Fix #79091: heap use-after-free in session_create_id() (cherry picked from commit 25ec7eb3463f34a2be666c6785d1c6b3cc89575e)
* Bump versionphp-7.3.14RC1Christoph M. Becker2020-01-074-4/+6
|
* Revert "Extend CURLFile to support streams"Christoph M. Becker2020-01-066-147/+1
| | | | | | This reverts commit 17a9f1401aeb35fe1e3657b38102a410d151d42f, because this commit would break ABI, and also due to bug #79013. We keep the commit for PHP 7.4+, though.
* Fix #54298: Using empty additional_headers adding extraneous CRLFChristoph M. Becker2020-01-063-1/+29
| | | | | If the header string is empty, we pass `NULL` to `php_mail()` to avoid further checks on the string length.
* Fix #79068: gdTransformAffineCopy() changes interpolation methodChristoph M. Becker2020-01-064-1/+24
| | | | | We port <https://github.com/libgd/libgd/commit/9088591eae437358ee5b929adf82865e37e3001e>.
* Fix #79067: gdTransformAffineCopy() may use unitialized valuesChristoph M. Becker2020-01-064-3/+21
| | | | | We port <https://github.com/libgd/libgd/commit/7a06c1669c563917bc48c464521e3de962ddb4e8>.
* Fix #78808: [LMDB] MDB_MAP_FULL: Environment mapsize limit reachedChristoph M. Becker2020-01-034-0/+51
| | | | | | | We implement support for a fifth parameter, which allows to specify the mapsize. The parameter defaults to zero, in which case the compiled in default mapsize (usually 1048576) will be used. The mapsize should be a multiple of the page size of the OS.
* Fix #78538: shmop memory leakChristoph M. Becker2020-01-032-1/+10
| | | | | If the descriptor's refcount drops to zero, we have to unmap the respective file view, to avoid leaking memory.
* Fix #79015: undefined-behavior in php_date.cChristoph M. Becker2020-01-033-5/+52
| | | | | | We check that the given microsecond fraction is in the valid range [0, 1000000[, and otherwise mark it as invalid. We also drop the useless do loop; a plain block is sufficient here.
* Fix #79040: Warning Opcode handlers are unusable due to ASLRChristoph M. Becker2019-12-302-4/+8
| | | | | | | We must not use the same shared memory OPcache instance for different SAPIs, since their memory layout is different. To avoid this, we add the SAPI name (truncated to at most 20 characters) to the names of the memory base file, the mutex and the file mapping.
* Add missing skipif clauseChristoph M. Becker2019-12-281-0/+1
|
* Fix #79033: Curl timeout error with specific url and postChristoph M. Becker2019-12-283-4/+36
| | | | | | We must not set an empty mime structure as `CURLOPT_MIMEPOST`; instead we set it to `NULL` if `CURLOPT_POSTFIELDS` has been set to an empty array.
* Fixed bug #79029 (Use After Free's in XMLReader / XMLWriter).Xinchen Hui2019-12-254-7/+50
| | | | | | | | We backport the fix PHP 7.3, since this branch is affected as well. (cherry picked from commit b5e004379647bd1ebb75eb2eac8826fb6abdd3d8) (cherry picked from commit e36daa6927c05d2e687bb77495ef206cde118b33) (cherry picked from commit 2704ee6844c03348de9d15e74646d09007ef0f7c)
* Fix #78982: pdo_pgsql returns dead persistent connectionSATO Kentaro2019-12-202-1/+3
| | | | Call PQconsumeInput() before PQstatus() to update the status.
* Fix #78980: pgsqlGetNotify() overlooks dead connectionSATO Kentaro2019-12-202-2/+12
| | | | pgsqlGetNotify() didn't check result of PQconsumeInput().
* Fix #74170: locale information change after mime_content_typeSergei Turchanov2019-12-205-16/+47
| | | | | | | | | | | | | | Some functions in libmagic (distributed with fileinfo extension) perform this sequence of calls: func() { setlocale(LC_TYPE, "C") .. do some work .. setlocale(LC_TYPE, "") } It effectively resets LC_TYPE if it that was set before the function call. To avoid manipulations with current locale at all, the problematic functions were modified to use locale-independent functions.
* Fix #78402: pcntl_signal() misleading error messageSATO Kentaro2019-12-203-3/+10
| | | | | An error message can be misleading when a handler passed to pcntl_signal() is not callable.
* Fixed bug #78999 (Cycle leak when using function result as temporary)Dmitry Stogov2019-12-194-0/+57
|
* Fix #78983: pdo_pgsql config.w32 cannot find libpq-fe.hSATO Kentaro2019-12-192-1/+5
| | | | When configured with a path specified.
* Add destructor annotations in ini parserNikita Popov2019-12-192-1/+11
| | | | | It would be better to switch this to use %union and %type annotations, but not going to do that change for 7.3.
* fix release dateRemi Collet2019-12-181-1/+1
|
* Merge branch 'PHP-7.2' into PHP-7.3Remi Collet2019-12-180-0/+0
|\ | | | | | | | | * PHP-7.2: fix release date
| * fix release dateRemi Collet2019-12-181-1/+1
| |
* | Rethrow generator exception even without active stack frameNikita Popov2019-12-182-3/+34
| | | | | | | | | | | | | | Finally blocks in generators may be invoked during shutdown, in which case we don't have a stack frame. Similar to what zend_call_function does, we still need to rethrow these exceptions, otherwise they will be hidden (and leak).
* | Fix freeing of dynamic call nameNikita Popov2019-12-183-10/+30
| | | | | | | | | | | | We need to free op2 if the call construction fails. Also remove a redundant check for !call.
* | Update/fix NEWS [ci skip]Christoph M. Becker2019-12-171-4/+16
| |
* | Merge branch 'PHP-7.2' into PHP-7.3Christoph M. Becker2019-12-170-0/+0
|\ \ | |/ | | | | | | * PHP-7.2: [ci skip] Update NEWS
| * [ci skip] Update NEWSStanislav Malyshev2019-12-161-0/+16
| |
* | [ci skip] Update NEWSStanislav Malyshev2019-12-161-0/+4
| |
* | Fix testStanislav Malyshev2019-12-161-1/+0
| |
* | Merge branch 'PHP-7.2' into PHP-7.3Stanislav Malyshev2019-12-163-3/+16
|\ \ | |/ | | | | | | | | * PHP-7.2: Fix test Fix bug #78793
| * Fix testStanislav Malyshev2019-12-161-1/+1
| |
| * Fix bug #78793Stanislav Malyshev2019-12-162-2/+15
| |
* | Fix build - no model field anymoreStanislav Malyshev2019-12-161-2/+0
| |
* | Merge branch 'PHP-7.2' into PHP-7.3Stanislav Malyshev2019-12-169-7/+88
|\ \ | |/ | | | | | | | | | | | | | | * PHP-7.2: Fixed bug #78910 Fix #78878: Buffer underflow in bc_shift_addsub Fix test Fix #78862: link() silently truncates after a null byte on Windows Fix #78863: DirectoryIterator class silently truncates after a null byte
| * Fixed bug #78910Stanislav Malyshev2019-12-162-1/+19
| |
| * Fix #78878: Buffer underflow in bc_shift_addsubChristoph M. Becker2019-12-162-2/+15
| | | | | | | | | | We must not rely on `isdigit()` to detect digits, since we only support decimal ASCII digits in the following processing.
| * Fix testStanislav Malyshev2019-12-161-1/+1
| |
| * Fix #78862: link() silently truncates after a null byte on WindowsChristoph M. Becker2019-12-162-1/+18
| | | | | | | | | | Since link() is supposed to accepts paths (i.e. strings without NUL bytes), we must not accept arbitrary strings.
| * Fix #78863: DirectoryIterator class silently truncates after a null byteChristoph M. Becker2019-12-162-2/+33
| | | | | | | | | | | | Since the constructor of DirectoryIterator and friends is supposed to accepts paths (i.e. strings without NUL bytes), we must not accept arbitrary strings.
* | Fix #78943: mail() may release string with refcount==1 twiceChristoph M. Becker2019-12-151-3/+0
| | | | | | | | | | | | | | | | | | Since we need `headers_lc` as well as `headers_trim` in the following, we do not release the former even if they are the same string, to avoid complicating the release logic even more. A new test case is not necessary, since we already have mail_basic_alt2-win32.phpt and others.
* | Fixed bug #78921Nikita Popov2019-12-132-0/+40
| | | | | | | | | | By resetting fake_scope during autoloading. We already do the same when executing destructors.
* | Fix DCE with FE_FETCHNikita Popov2019-12-102-2/+25
| | | | | | | | For now, don't treat FE_FETCH op2 as no-val use. See GH-4982.
* | Extend CURLFile to support streamsChristoph M. Becker2019-12-096-1/+149
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Due to former restrictions of the libcurl API, curl multipart/formdata file uploads supported only proper files. However, as of curl 7.56.0 the new `curl_mime_*()` API is available (and already supported by PHP[1]), which allows us to support arbitrary *seekable* streams, which is generally desirable, and particularly resolves issues with the transparent Unicode and long part support on Windows (see bug #77711). Note that older curl versions are still supported, but CURLFile is still restricted to proper files in this case. [1] <http://git.php.net/?p=php-src.git;a=commit;h=a83b68ba56714bfa06737a61af795460caa4a105> (cherry picked from commit c68dc6b5e37e74d89e0a387079139c054c8faa81)
* | Use curl_mime_*() functions if availableChristoph M. Becker2019-12-091-1/+50
| | | | | | | | | | | | | | As of curl 7.56.0, `curl_formadd()` is deprecated in favor of `curl_mime_*()`, so we use the latter if available. (cherry picked from commit a83b68ba56714bfa06737a61af795460caa4a105)
* | Fix #78923: Artifacts when convoluting image with transparencywillson-chen2019-12-074-3/+6
| | | | | | | | | | | | We have to properly initialize `pxl` before using it. Fix ported from <https://github.com/libgd/libgd/pull/559>.
* | Fix constant evaluation of && and ||Nikita Popov2019-12-062-12/+24
| | | | | | | | | | | | | | | | | | | | | | | | The "return" in the for loop should have been a break on the switch, otherwise the result is just ignored... but because it prevents evaluation of the other operand, it also violates the invariant that everything has been constant evaluated, resulting in an assertion failure. The for loop isn't correct in any case though, because it's not legal to determine the result based on just the second operand, as the first one may have a side-effect that cannot be optimized away.
* | Fix AST printing of nullable builtin typesNikita Popov2019-12-042-3/+3
| | | | | | | | Fixes oss-fuzz #19109.
* | Fix print_r return types in opcacheTyson Andre2019-12-041-1/+1
| | | | | | | | | | | | | | https://www.php.net/print_r > When the return parameter is TRUE, this function will return a string. > Otherwise, the return value is TRUE.