summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug #79465 - use unsigneds as indexes.php-7.3.17PHP-7.3.17Stanislav Malyshev2020-04-142-2/+3
| | | | (cherry picked from commit 9d6bf8221b05f86ce5875832f0f646c4c1f218be)
* Fix bug #79330 - make all execution modes consistent in rejecting \0Stanislav Malyshev2020-04-142-0/+10
| | | | (cherry picked from commit 14fcc813948254b84f382ff537247d8a7e5e0e62)
* Bump versionChristoph M. Becker2020-04-144-5/+5
|
* Bump versionphp-7.3.17RC1Christoph M. Becker2020-03-314-10/+8
|
* Next is 7.3.18Christoph M. Becker2020-03-314-6/+8
|
* Fix #79413: session_create_id() fails for active sessionsChristoph M. Becker2020-03-314-3/+21
| | | | | | | | | The comment on `PS_VALIDATE_SID_FUNC(files)` is very clear that the function is supposed to return `SUCCESS` if the session already exists. So to detect a collision, we have to check for `SUCCESS`, not `FAILURE`. We also fix the wrong condition in session_regenerate_id() as well.
* Fix #79427: Integer Overflow in shmop_open()Christoph M. Becker2020-03-302-0/+8
| | | | | | If `shm.shm_segsz > ZEND_LONG_MAX` the assignment to `shmop->size` a few lines below would overflow, so we catch that early and bail out if necessary.
* Fix #79424 ext/zip: don't use gl_pathc after call to globfreeMax Rees2020-03-292-1/+4
| | | | | This breaks on Linux with the musl libc, since it zeroes out gl_pathc during globfree.
* Add missing 'skip' to bug79332.phpt skip messageLukas Berger2020-03-261-1/+1
| | | | | | | | | | | | | | | | | | | | The skip message must start with the word 'skip', otherwise the test will not be skipped. *Before:* Running selected tests. TEST 1/1 [ext/com_dotnet/tests/bug79332.phpt] ========DIFF======== 001+ Fatal error: Uncaught Error: Class 'COMPersistHelper' not found in /srv/php/ext/com_dotnet/tests/bug79332.php:2 001- A com_exception has been thrown 002+ Stack trace: 003+ #0 {main} 004+ thrown in /srv/php/ext/com_dotnet/tests/bug79332.php on line 2 ========DONE======== FAIL Bug #79332 (php_istreams are never freed) [ext/com_dotnet/tests/bug79332.phpt] *After:* Running selected tests. SKIP Bug #79332 (php_istreams are never freed) [ext/com_dotnet/tests/bug79332.phpt] reason: com_dotnet extension not available
* Fixed bug #79412 (Opcache chokes and uses 100% CPU on specific script).Dmitry Stogov2020-03-253-3/+45
|
* Fix bug #79410 (system() swallows last chunk if it is exactly 4095 bytes ↵Christian Schneider2020-03-253-0/+21
| | | | | | without newline) Closes GH-5292.
* Add test fileNikita Popov2020-03-231-0/+19
| | | | Forgot the git add again...
* Handle NULL caller_call_oplineNikita Popov2020-03-234-6/+16
| | | | | This can happen if there is an EXIT in the call arguments, in which case the DO_CALL opcode may be eliminated as unreachable.
* Fix test for WindowsChristoph M. Becker2020-03-231-1/+1
| | | | | Windows filenames may very well contain a colon, so we adjust the test accordingly.
* Fix #79200: Some iconv functions cut Windows-1258Christoph M. Becker2020-03-233-38/+68
| | | | | | | | | | | To cater to potentially state-dependent encodings, we have to reset the conversion descriptor into its initial shift state to properly finish the conversion. Furthermore, state-dependent encodings may not show progress when comparing `in_left` before and after the conversion; we rather have to see whether `out_left` has decreased. Also we have to cater to the fact that the final potentially state resetting call does not signal failure, but we still have to break respective loops afterwards.
* Fix #79393: Null coalescing operator failing with SplFixedArrayChristoph M. Becker2020-03-233-13/+31
| | | | | | | We favor the KISS principle over optimization[1] – SPL is already special enough. [1] <https://github.com/php/php-src/pull/2489/commits/352f3d4476a79bb86136b431719df7394e5a8d4e#r112498098>ff
* NEWSRemi Collet2020-03-201-0/+3
|
* Fix Bug #79296 ZipArchive::open fails on empty fileRemi Collet2020-03-201-0/+15
|
* Fix #79396: DateTime hour incorrect during DST jump forwardNate Brunette2020-03-193-0/+29
| | | | | When you attempt to set the time to a non-existent time occuring during a DST jump forward, the hour does not move forward correctly.
* Clarify session.cookie_samesite="None"Nikita Popov2020-03-182-2/+4
|
* Merge branch 'PHP-7.2' into PHP-7.3Remi Collet2020-03-170-0/+0
|\ | | | | | | | | * PHP-7.2: bump verison to 7.2.30-dev
| * bump verison to 7.2.30-devRemi Collet2020-03-173-5/+8
| |
* | Merge branch 'PHP-7.2' into PHP-7.3Christoph M. Becker2020-03-171-10/+10
|\ \ | |/ | | | | | | * PHP-7.2: Fix NEWS
| * Fix NEWSChristoph M. Becker2020-03-171-5/+5
| |
* | Merge branch 'PHP-7.2' into PHP-7.3Christoph M. Becker2020-03-170-0/+0
|\ \ | |/ | | | | | | | | | | | | * PHP-7.2: [ci skip] Update NEWS Fix test Fix bug #79329 - get_headers should not accept \0 Fixed bug #79282
| * [ci skip] Update NEWSStanislav Malyshev2020-03-151-0/+7
| |
| * Fix testStanislav Malyshev2020-03-151-1/+1
| |
| * Fix bug #79329 - get_headers should not accept \0Stanislav Malyshev2020-03-151-1/+1
| |
| * Fixed bug #79282Stanislav Malyshev2020-03-152-1/+21
| |
* | [ci skip] Update NEWSStanislav Malyshev2020-03-161-0/+10
| |
* | Fix testStanislav Malyshev2020-03-161-1/+1
| |
* | Fix bug #79329 - get_headers should not accept \0Stanislav Malyshev2020-03-161-1/+1
| |
* | Fixed bug #79282Stanislav Malyshev2020-03-162-1/+21
| |
* | Fix #79371: mb_strtolower (UTF-32LE): stack-buffer-overflowChristoph M. Becker2020-03-162-1/+15
| | | | | | | | We make sure that negative values are properly compared.
* | Fix typo in php.ini commentJacob Dreesen2020-03-152-4/+4
| |
* | Fix #79199: curl_copy_handle() memory leakChristoph M. Becker2020-03-123-2/+27
| | | | | | | | | | `curl_copy_handle()` already registers a new resource, so we must not increase the refcount of the original resource.
* | Fix #61597: SXE properties may lack attributes and contentChristoph M. Becker2020-03-126-7/+111
| | | | | | | | | | We must not treat a node as string if it has attributes, unless it is an entity declaration which is always treated as string by simplexml.
* | Fix #78210: Invalid pointer addressChristoph M. Becker2020-03-114-3/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is actually about three distinct issues: * If an empty string is passed as $address to `stream_socket_sendto()`, the `sa` is not initialized, so we must not pass it as `addr` to `php_stream_xport_sendto()`. * On POSIX, `recvfrom()` truncates messages which are too long to fit into the specified buffer (unless `MSG_PEEK` is given), discards the excessive bytes, and returns the buffer length. On Windows, the same happens, but `recvfrom()` returns `SOCKET_ERROR` with the error code `WSAEMSGSIZE`. We have to catch this for best POSIX compatibility. * In `php_network_parse_network_address_with_port()`, we have to zero `in6` (not only its alias `sa`) to properly support IPv6. Co-Authored-By: Nikita Popov <nikita.ppv@googlemail.com>
* | Fix #79364: When copy empty array, next key is unspecifiedChristoph M. Becker2020-03-113-1/+26
| | | | | | | | | | We must not forget to keep the `nNextFreeElement` when duplicating empty arrays.
* | Enclose INI values containing {TMP} in quotesChristoph M. Becker2020-03-0911-11/+11
| | | | | | | | | | At least on Windows, the temporary directory may contain tilde signs, which would result in an INI parse error.
* | Skip test on Windows if privileges are insufficientChristoph M. Becker2020-03-061-0/+11
| |
* | Fix #75673: SplStack::unserialize() behaviorChristoph M. Becker2020-03-063-0/+28
| | | | | | | | | | | | Even though `SplStack::unserialize()` is not supposed to be called on an already constructed instance, it is probably better if the method clears the stack before actually unserializing.
* | Next is 7.3.17Christoph M. Becker2020-03-034-6/+8
| |
* | Update libmagic.patchChristoph M. Becker2020-03-022-66/+110
| | | | | | | | | | | | | | | | Some commits missed to update the patch file, so we're catching up on this. To generally make this easier, we back-port generate_patch.sh from PHP-7.4, where we now also generate magic.h from magic.h.in.
* | Fix #79333: com_print_typeinfo() leaks memoryChristoph M. Becker2020-03-022-1/+2
| | | | | | | | | | | | | | | | We have to free the `ansiname`s, regardless of whether they have been put into the hashtable or not. Since bug79299.phpt already shows the leak when run with a leak checker, there is no need for another regression test.
* | Fix #79332: php_istreams are never freedChristoph M. Becker2020-03-023-10/+20
| | | | | | | | | | | | | | | | | | | | Releasing the `com_dotnet_istream_wrapper` in `istream_destructor()` is pointless, since `istream_destructor()` is only called when the resource is going to be released. This recursion is not a real issue, though, since the resource is never exposed to userland, and has at most refcount 1, so due to well defined unsigned integer underflow, it never is released twice. However, returning early in this case causes a memory leak which needs to be fixed.
* | Fixed bug #79062Nikita Popov2020-02-284-118/+162
| | | | | | | | Back up the doc comment when performing heredoc scanahead.
* | Fix #79311: enchant_dict_suggest() fails on big endian architectureChristoph M. Becker2020-02-282-10/+10
| | | | | | | | | | | | | | | | | | | | For obvious reasons, we must not assign a `size_t` value to an `int` variable using memcpy(). However, there is actually no need for the intermediate `n_sugg_st` here, if we use the proper types in the first place. A regression test is not necessary, because dict_suggest.phpt already exhibits the erroneous behavior on big endian architectures.
* | Fix #79315 ZipArchive::addFile doesn't honor start/length parametersRemi Collet2020-02-282-1/+13
| |
* | Fixed incorrect overflow detectionDmitry Stogov2020-02-271-2/+2
| |