summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Update NEWS for PHP 7.4.1PHP-7.4.1Derick Rethans2019-12-171-1/+1
|
* Update NEWSStanislav Malyshev2019-12-171-3/+15
|
* Test fixesStanislav Malyshev2019-12-172-3/+2
|
* Merge branch 'PHP-7.3' into PHP-7.4Stanislav Malyshev2019-12-171-2/+0
| | | | | * PHP-7.3: Fix build - no model field anymore
* Merge branch 'PHP-7.3' into PHP-7.4Stanislav Malyshev2019-12-172-2/+15
| | | | | | * PHP-7.3: Fix test Fix bug #78793
* Merge branch 'PHP-7.3' into PHP-7.4Stanislav Malyshev2019-12-179-9/+87
| | | | | | | | | | * PHP-7.3: 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 Fix #78943: mail() may release string with refcount==1 twice
* Next release is 7.4.1, not 7.4.2Derick Rethans2019-12-101-1/+1
|
* Update NEWS for 7.4.2Derick Rethans2019-12-101-0/+3
|
* Update NEWS for PHP 7.4.1RC1Derick Rethans2019-12-101-1/+1
|
* Set zend.exception_ignore_args=0 in run-tests.phpNikita Popov2019-12-101-0/+1
| | | | Any existing tests are going to be written under this assumption...
* Fix incorrect zend_try usageNikita Popov2019-12-101-2/+5
|
* Fix release build failureNikita Popov2019-12-103-14/+12
| | | | | | | | | GCC complained about potentially uninitialized __orig_bailout, even though the variable has an initializer. This warning was quite persistent, I was only able to avoid it by using a separate function. Am I missing something?
* Improve error messageChristoph M. Becker2019-12-101-1/+1
| | | | | | | | | | | | Formerly, the error message was like: | Can't preload unlinked class MyException: Internal parent (Windows | only limitation)Exception Now it's like: | Can't preload unlinked class MyException: Windows can't link to | internal parent Exception
* Add support for class_alias to preloadingNikita Popov2019-12-104-0/+32
| | | | Related to bug #78918.
* Fixed bug #78935: Check that all linked classes can be preloadedNikita Popov2019-12-1016-6/+233
| | | | | | | | | During preloading, check that all classes that have been included as part of the preload script itself (rather than through opcache_compile_file) can actually be preloaded, i.e. satisfy Windows restrictions, have resolved initializers and resolved property types. When resolving initializers and property types, also autoload additional classes. Because of this, the resolution runs in a loop.
* Fix merge mistakeNikita Popov2019-12-101-2/+0
|
* Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2019-12-102-2/+27
|\ | | | | | | | | * PHP-7.3: Fix DCE with FE_FETCH
| * 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.
* | Fix #78912: INTL Support for accounting formatChristoph M. Becker2019-12-093-1/+20
| | | | | | | | | | | | | | We provide `NumberFormatter::CURRENCY_ACCOUNTING` to wrap `UNUM_CURRENCY_ACCOUNTING `[1]. [1] <https://unicode-org.github.io/icu-docs/apidoc/released/icu4c/unum_8h.html#a4eb4d3ff13bd506e7078b2be4052266dae97cdd7ed612d07d251021c076efb1c5>
* | Fix buildNikita Popov2019-12-091-0/+1
| |
* | Export zend_init_func_run_time_cache()Dmitry Stogov2019-12-092-0/+8
| |
* | Call zend_unregister_ini_entries() when unload extension loaded through dl() ↵Dmitry Stogov2019-12-093-0/+8
| | | | | | | | | | | | without MSHUTDOWN callback. Extensions with MSHUTDOWN should use UNREGISTER_INI_ENTRIES().
* | Fixed bug #78895 (Reflection detects abstract non-static class as abstract ↵Dmitry Stogov2019-12-093-1/+44
| | | | | | | | static. IS_IMPLICIT_ABSTRACT is not longer used)
* | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2019-12-090-0/+0
|\ \ | |/ | | | | | | | | * PHP-7.3: Extend CURLFile to support streams Use curl_mime_*() functions if available
| * 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)
* | Fixed bug #78926: Handle class table reallocation on failed linkNikita Popov2019-12-095-2/+29
| | | | | | | | | | | | | | | | | | | | When we change back the bucket key on a class linking failure, make sure to reload the bucket pointer, as the class table may have been reallocated in the meantime. Also remove a bogus bucket key change in anon class registration: We don't actually rename the class in this case anymore, the RTD key is already the final name.
* | Fix bug #78887: Add upgrading note about get_declared_classes() orderNikita Popov2019-12-091-0/+3
| | | | | | | | [ci skip]
* | Use unmangled named in property type inheritance errorNikita Popov2019-12-092-1/+12
| |
* | Fixed bug #78904: Don't call any magic for uninitialized typed propertiesNikita Popov2019-12-097-4/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | We already changed the behavior for __set() in f1848a4. However, it seems that this is also a problem for all the other property magic, see bug #78904. This commit makes the behavior of all the property magic consistent: Magic will not be triggered for uninitialized typed properties, only explicitly unset() ones. This brings behavior more in line how non-typed properties behave and avoids WTF. Closes GH-4974.
* | Fix bug #78916 (php-fpm 7.4.0 don't send mail via mail())Jakub Zelenka2019-12-082-4/+3
| |
* | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2019-12-074-3/+4
|\ \ | |/ | | | | | | * PHP-7.3: Fix #78923: Artifacts when convoluting image with transparency
| * 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>.
* | Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2019-12-062-12/+24
|\ \ | |/ | | | | | | * PHP-7.3: Fix constant evaluation of && and ||
| * 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 intermittent error in pdo_mysql___construct_options.phptNikita Popov2019-12-062-10/+1
| | | | | | | | For the love of god, don't write tests based on mt_rand!
* | Fix timeout testsNikita Popov2019-12-0512-202/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After taking a more detailed look at our commonly failing timeout tests... turns out that most of them are useless as written and don't test what they're supposed to. This PR has a couple of changes: * Tests for timeout in while/for/foreach should just have the loop as an infinite loop. Calling into something like busy_wait means that we just end up always testing whatever busy_wait does. * Tests for timeouts in calls need to be based on something like sleep, otherwise we'd have to introduce a loop, and we'd end up testing timeout of the looping structure instead. Using sleep only works on Windows, because that's the only system where sleep counts towards the timeout. As such, many of those tests are now Windows only. * Removed some tests where I don't see a good way to test what they're supposed to test. E.g. how can we test a timeout in eval() specifically? The shutdown function tests are marked as XFAIL, as we are currently missing a timeout check in call_user_function. I believe that's a legitimate issue. Closes GH-4969.
* | Fix mysqli ssl testsNikita Popov2019-12-052-5/+11
| | | | | | | | | | | | | | | | First, make sure the tests are skipped if we connect via unix socket, as we can't use SSL in that case. Second, use a cipher that is not blacklisted in current MySQL versions.
* | Fix bug #78823: add zlib library to mysqlndArjen de Korte2019-12-052-0/+6
| | | | | | | | | | | | | | | | | | | | The problem is newer binutils will no longer default to --copy-dt-needed-entries but use --no-copy-dt-needed-entries instead. So all libraries needed *must* be provided. Workarounds (either one works) 1) Add "-Wl,--copy-dt-needed-entries" to LDFLAGS to bring back the old behavior of the linker 2) Add "-lz" to list of libraries to be added In "ext/mysqlnd/mysqlnd_protocol_frame_codec.c" when the "zlib.h" header is included should also trigger adding '-lz' to the list of libraries.
* | Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2019-12-042-3/+3
|\ \ | |/ | | | | | | * PHP-7.3: Fix AST printing of nullable builtin types
| * Fix AST printing of nullable builtin typesNikita Popov2019-12-042-3/+3
| | | | | | | | Fixes oss-fuzz #19109.
* | Preload: Better reason message for internal parents on windowsNikita Popov2019-12-041-0/+7
| | | | | | | | Related to bug #78881.
* | Fixed bug #78898Nikita Popov2019-12-043-5/+43
| |
* | Add ReflectionMethod::getClosure() change to UPGRADINGNikita Popov2019-12-041-0/+5
| | | | | | | | | | | | Fixes bug #78897. [ci skip]
* | Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2019-12-041-1/+1
|\ \ | |/ | | | | | | * PHP-7.3: Fix print_r return types in opcache
| * 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.
* | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2019-12-030-0/+0
|\ \ | |/ | | | | | | * PHP-7.3: Next is 7.3.14
| * Next is 7.3.14Christoph M. Becker2019-12-034-6/+8
| |
* | Merge branch 'PHP-7.3' into PHP-7.4Remi Collet2019-12-030-0/+0
|\ \ | |/ | | | | | | * PHP-7.3: next is 7.2.27
| * Merge branch 'PHP-7.2' into PHP-7.3Remi Collet2019-12-030-0/+0
| |\ | | | | | | | | | | | | * PHP-7.2: next is 7.2.27