Christoph M. Becker
830e566998
Prepare for 7.3.18RC1
2020-04-28 09:20:04 +02:00
Christoph M. Becker
6998cc5029
Bump version
2020-04-28 09:10:50 +02:00
Christoph M. Becker
29968d8f99
Fix #79470 : PHP incompatible with 3rd party file system on demand
...
We add support for Activision HSM (`IO_REPARSE_TAG_ACTIVISION_HSM`) and
VFS for Git (`IO_REPARSE_TAG_PROJFS`). The latter fixes bug #78784 .
2020-04-27 09:30:57 +02:00
Derick Rethans
b962d2e36f
Updated to version 2020.1 (2020a)
2020-04-24 12:31:30 +01:00
Graham Campbell
51fb8398e2
Add additional preg_match test case
...
(cherry picked from commit a1a044dcc7
on author's explicit request)
2020-04-23 17:35:09 +02:00
Christoph M. Becker
ccca2c448d
Fix #79503 : Memory leak on duplicate metadata
...
Duplicate metadata can only happen if someone tampers with the phar, so
we can and should treat that as error.
2020-04-22 15:07:46 +02:00
Christoph M. Becker
fa10abd6d7
Fix #79491 : Search for .user.ini extends up to root dir
...
The `start` parameter of `php_cgi_ini_activate_user_config` is supposed
to hold the byte offset of the doc root in the given `path`. However,
the current expression which fixes a potential type incompatibility
will ever only evaluate to zero or one, because it uses the *logical*
and operator (`&&`). Furthermore we notice that subtracting one from
`doc_root_len` is not necessary, so there is even no need for the
`start` parameter at all.
2020-04-20 10:56:36 +02:00
Nikita Popov
f62571c121
Apply doc root fix for FPM
...
This is the change from GH-5417 but for FPM. This was stripping the
last character from the doc_root. Given how it is used, this should
be harmless, but let's make it less confusing...
2020-04-20 10:47:54 +02:00
Joe Cai
94e09bfe55
Fix #79497 : Fix php_openssl_subtract_timeval()
...
I stumbled upon this while debugging a strange issue with
stream_socket_client() where it randomly throws out errors when
the connection timeout is set to below 1s. The logic to calculate
time difference in php_openssl_subtract_timeval() is wrong when
a.tv_usec < b.tv_usec, causing connection errors before the timeout
is reached.
2020-04-20 10:25:54 +02:00
Dmitry Stogov
d31ccb5fc8
zend_timeout() may access EX(opline)
2020-04-17 14:55:14 +03:00
guirish
a1c1736bfb
Fix MySQL local infile / attr handling on big endian systems
...
Make sure pointer types match what is used by libmysql everywhere.
Closes GH-5380.
2020-04-16 11:22:17 +02:00
Nikita Popov
79a36ff7f3
Fixed bug #79477
...
Make sure to deindirect properties when creating array.
2020-04-15 11:21:05 +02:00
Christoph M. Becker
c4cdf1ae12
Add missing CVE
2020-04-14 18:18:18 +02:00
Sara Golemon
2814850fd9
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #79468
NEWS
2020-04-14 10:31:35 -04:00
dinosaur
13842eda37
Fixed bug #79468
...
Close the stream filter resources when removing them from the stream.
2020-04-14 10:27:28 -04:00
Sara Golemon
6df761b7ff
NEWS
2020-04-14 10:25:37 -04:00
Nikita Popov
b56fb9019e
Don't leak peername if accept fails
...
Even if the accept fails, the peername may be populated.
2020-04-14 16:07:39 +02:00
Christoph M. Becker
a1b46fc152
Fix test cases
2020-04-14 13:58:48 +02:00
dinosaur
95eaccd0bb
Fixed bug #79468
...
Close the stream filter resources when removing them from the stream.
2020-04-14 11:59:51 +02:00
Christoph M. Becker
8967588702
Add NEWS entries [ci skip]
2020-04-14 08:54:00 +02:00
Stanislav Malyshev
d539e61c30
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug #79465 - use unsigneds as indexes.
Fix bug #79330 - make all execution modes consistent in rejecting \0
2020-04-13 21:09:08 -07:00
Stanislav Malyshev
9d6bf8221b
Fix bug #79465 - use unsigneds as indexes.
2020-04-13 21:08:37 -07:00
Stanislav Malyshev
14fcc81394
Fix bug #79330 - make all execution modes consistent in rejecting \0
2020-04-13 21:08:30 -07:00
Christoph M. Becker
7e91fcd7f9
Fix memory leak introduced by fixing bug #78221
...
We have to free the retrieved text content; to keep the code readable,
we extract a helper function to check for empty nodes. Unfortunately,
we cannot use xmlIsBlankNode(), because that also recognizes whitespace
only text content.
We also make sure to properly handle NULL returns from
xmlNodeGetContent().
2020-04-08 10:35:54 +02:00
George Peter Banyard
a0df5f3b54
Revert "Went to fast and forgot to update tests"
...
This reverts commit 656eac74fa .
2020-04-07 22:24:40 +02:00
George Peter Banyard
6031b08240
Revert "Fix Bug #79448 0 is a valid Unicode codepoint, but mb_substitute_character(0) fails"
...
This commit brings some substantial changes in behaviour due to the weird implementation.
This will be fixed in master due to BC concerns.
This reverts commit 1333b46d6d .
2020-04-07 22:23:24 +02:00
Christoph M. Becker
efec22b7be
Fix #78221 : DOMNode::normalize() doesn't remove empty text nodes
...
If a text node is not followed by another text node, we remove it, if
its textContent is empty.
2020-04-07 13:04:14 +02:00
George Peter Banyard
656eac74fa
Went to fast and forgot to update tests
...
However due to the really lax conversion to integer all strings pass as 0
2020-04-03 22:03:00 +02:00
George Peter Banyard
1333b46d6d
Fix Bug #79448 0 is a valid Unicode codepoint, but mb_substitute_character(0) fails
2020-04-03 21:18:45 +02:00
Qianqian Bu
ee21657a6a
Fix incorrect free for last_message
...
In commit a7305eb539 the last_message
field of the connection object was changed to be always non-persistent.
But there is a place on change_user path that still treats it
depending on conn->persistent flag. This will cause PHP crash after
com_change_user success when there is last_message set
2020-04-03 10:05:16 +02:00
Nikita Popov
cf68bc413b
Fixed bug #79434
2020-04-02 16:34:03 +02:00
Nikita Popov
14b770d407
Fix literal compaction collision between string and double
...
For the sake of simplicity I'm using a separate hashtable, rather
than trying to do hash perturabation on the double strings.
2020-04-01 14:20:59 +02:00
Christoph M. Becker
cc3af6fdea
Add NEWS entryc [ci skip]
2020-04-01 09:26:20 +02:00
George Peter Banyard
18dc9044f5
Fix bug 79441
2020-04-01 04:29:20 +02:00
Christoph M. Becker
33226c3a17
Next is 7.3.18
2020-03-31 10:22:55 +02:00
Christoph M. Becker
b510250b8e
Fix #79413 : session_create_id() fails for active sessions
...
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.
2020-03-31 08:38:23 +02:00
Christoph M. Becker
a681b12820
Fix #79427 : Integer Overflow in shmop_open()
...
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.
2020-03-30 08:56:49 +02:00
Max Rees
04920645f1
Fix #79424 ext/zip: don't use gl_pathc after call to globfree
...
This breaks on Linux with the musl libc, since it zeroes out gl_pathc during
globfree.
2020-03-29 14:22:31 +02:00
Lukas Berger
7f9b534e3a
Add missing 'skip' to bug79332.phpt skip message
...
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
2020-03-26 23:14:10 +01:00
Dmitry Stogov
65120cfc09
Fixed bug #79412 (Opcache chokes and uses 100% CPU on specific script).
2020-03-25 17:31:06 +03:00
Christian Schneider
c0840fec9c
Fix bug #79410 (system() swallows last chunk if it is exactly 4095 bytes without newline)
...
Closes GH-5292.
2020-03-25 10:50:35 +01:00
Nikita Popov
2e8db5d6be
Add test file
...
Forgot the git add again...
2020-03-23 17:13:57 +01:00
Nikita Popov
34f1266a9c
Handle NULL caller_call_opline
...
This can happen if there is an EXIT in the call arguments, in which
case the DO_CALL opcode may be eliminated as unreachable.
2020-03-23 17:12:01 +01:00
Christoph M. Becker
ba404f21e4
Fix test for Windows
...
Windows filenames may very well contain a colon, so we adjust the test
accordingly.
2020-03-23 16:22:45 +01:00
Christoph M. Becker
32a2644305
Fix #79200 : Some iconv functions cut Windows-1258
...
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.
2020-03-23 14:12:37 +01:00
Christoph M. Becker
47c745555c
Fix #79393 : Null coalescing operator failing with SplFixedArray
...
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
2020-03-23 13:29:25 +01:00
Remi Collet
51c57a9c67
NEWS
2020-03-20 11:16:08 +01:00
Remi Collet
8aab43c85d
Fix Bug #79296 ZipArchive::open fails on empty file
2020-03-20 11:14:58 +01:00
Nate Brunette
d70058a139
Fix #79396 : DateTime hour incorrect during DST jump forward
...
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.
2020-03-19 08:50:34 +01:00
Nikita Popov
c00cce3229
Clarify session.cookie_samesite="None"
2020-03-18 15:59:30 +01:00
Remi Collet
b114e3d953
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
bump verison to 7.2.30-dev
2020-03-17 11:28:47 +01:00
Remi Collet
3072b77c21
bump verison to 7.2.30-dev
2020-03-17 11:28:34 +01:00
Christoph M. Becker
9b8aa105ed
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix NEWS
2020-03-17 11:09:55 +01:00
Christoph M. Becker
6a4fff4682
Fix NEWS
2020-03-17 11:06:45 +01:00
Christoph M. Becker
3588b6bba6
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
[ci skip] Update NEWS
Fix test
Fix bug #79329 - get_headers should not accept \0
Fixed bug #79282
2020-03-17 10:56:47 +01:00
Stanislav Malyshev
e71fa03107
[ci skip] Update NEWS
2020-03-16 22:40:00 -07:00
Stanislav Malyshev
62e7b80267
Fix test
2020-03-16 22:40:00 -07:00
Stanislav Malyshev
69fdc14152
Fix bug #79329 - get_headers should not accept \0
2020-03-16 22:40:00 -07:00
Stanislav Malyshev
25238bdf60
Fixed bug #79282
2020-03-16 22:40:00 -07:00
Christoph M. Becker
1fdffd1c55
Fix #79371 : mb_strtolower (UTF-32LE): stack-buffer-overflow
...
We make sure that negative values are properly compared.
2020-03-16 22:40:00 -07:00
Stanislav Malyshev
c8d21d7728
[ci skip] Update NEWS
2020-03-15 19:38:31 -07:00
Stanislav Malyshev
2c081b7e26
Fix test
2020-03-15 17:55:28 -07:00
Stanislav Malyshev
0d139c5b94
Fix bug #79329 - get_headers should not accept \0
2020-03-15 17:30:44 -07:00
Stanislav Malyshev
41f66e2a2c
Fixed bug #79282
2020-03-15 17:26:00 -07:00
Jacob Dreesen
68e2da6362
Fix typo in php.ini comment
2020-03-15 15:00:05 +01:00
Christoph M. Becker
2b5fc8e325
Fix #79199 : curl_copy_handle() memory leak
...
`curl_copy_handle()` already registers a new resource, so we must not
increase the refcount of the original resource.
2020-03-12 11:23:53 +01:00
Christoph M. Becker
7c081db885
Fix #61597 : SXE properties may lack attributes and content
...
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.
2020-03-12 10:52:28 +01:00
Christoph M. Becker and Nikita Popov
53797c206a
Fix #78210 : Invalid pointer address
...
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 >
2020-03-11 11:30:15 +01:00
Christoph M. Becker
2462f2dab1
Fix #79364 : When copy empty array, next key is unspecified
...
We must not forget to keep the `nNextFreeElement` when duplicating
empty arrays.
2020-03-11 08:54:05 +01:00
Christoph M. Becker
d5e206620b
Enclose INI values containing {TMP} in quotes
...
At least on Windows, the temporary directory may contain tilde signs,
which would result in an INI parse error.
2020-03-09 22:49:08 +01:00
Christoph M. Becker
dc4f42508d
Skip test on Windows if privileges are insufficient
2020-03-06 16:38:49 +01:00
Christoph M. Becker
b84277297a
Fix #75673 : SplStack::unserialize() behavior
...
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.
2020-03-06 09:09:49 +01:00
Christoph M. Becker
9dda3b9eb2
Next is 7.3.17
2020-03-03 10:19:31 +01:00
Christoph M. Becker
f15ab32af8
Update libmagic.patch
...
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.
2020-03-02 15:03:45 +01:00
Christoph M. Becker
53140e5c56
Fix #79333 : com_print_typeinfo() leaks memory
...
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.
2020-03-02 11:36:30 +01:00
Christoph M. Becker
2adf1c4d23
Fix #79332 : php_istreams are never freed
...
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.
2020-03-02 10:45:37 +01:00
Nikita Popov
6c48da9a50
Fixed bug #79062
...
Back up the doc comment when performing heredoc scanahead.
2020-02-28 17:06:05 +01:00
Christoph M. Becker
6adb885966
Fix #79311 : enchant_dict_suggest() fails on big endian architecture
...
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.
2020-02-28 15:43:44 +01:00
Remi Collet
d31fc591e0
Fix #79315 ZipArchive::addFile doesn't honor start/length parameters
2020-02-28 10:29:50 +01:00
Dmitry Stogov
5b51b633e2
Fixed incorrect overflow detection
2020-02-27 23:37:41 +03:00
Christoph M. Becker
49762c84e0
Add upgrading node regarding fix for bug #79271
...
Cf. <https://github.com/php/php-src/pull/5180#issuecomment-590259750 >ff.
2020-02-27 10:33:20 +01:00
Dmitry Stogov
45b4368d5c
Fixed incorrect behavior of internal memory debugger
2020-02-27 12:27:22 +03:00
Christoph M. Becker
8654c32b58
Fix #64032 : mysqli reports different client_version
...
While `mysqli_get_client_version()` calls `mysql_get_client_version()`
to retrieve the client version, `mysql::$client_version` is initialized
to `MYSQL_VERSION_ID`. Both should match though, and since the former
is the more useful information, we fix `mysql::$client_version`.
We do not add a regression test, because it would usually succeed
anyway, and we already have several tests with respective `assert()`s.
2020-02-27 09:35:04 +01:00
Mark Plomer
8c6a7c3326
Fix #63206 : Fully support error/exception_handler stacking, even with null or inside the handler
...
Always push the current user_error/exception_handler to the stack,
even when it is empty, so restore_error_handler() always works as
expected.
The user_error_handler is especially temporarily empty when we are inside
the error handler, which caused inconsistent behaviour before.
2020-02-25 12:43:42 +01:00
Nikita Popov
56cdbe63c2
Don't treat any WS as start of header
...
Check that the header occurs after \n, not other whitespace
characters.
2020-02-24 10:20:33 +01:00
Nikita Popov
3d9c02364d
Reduce code duplication in HTTP header checks
2020-02-24 10:03:05 +01:00
Miguel Xavier Penha Neto
d0d60503b5
Fixes #79265 : Improper injection of Host header when using fopen for http requests
...
Check all occurrences of the string "host:" (and other headers),
not just the first one.
2020-02-24 09:50:32 +01:00
Christoph M. Becker
9e6358af36
Fix #79299 : com_print_typeinfo prints duplicate variables
...
`lastid` has to retain its value during the traversal, so we move it to
an outer scope.
Patch contributed by Litiano Moura.
2020-02-23 23:31:36 +01:00
Christoph M. Becker
f133f0024e
Fix #79294 : ::columnType() may fail after SQLite3Stmt::reset()
...
The fix for feature request #53466 did not properly handle resetting of
the corresponding statement; the problem with this is that the
statement does not know about its result sets. But even if we could
fix this, the `complete` handling still appears to be brittle, since
the `sqlite3_column_type()`docs[1] state:
| If the SQL statement does not currently point to a valid row, or if
| the column index is out of range, the result is undefined.
Fortunately, we can use `sqlite3_data_count()` instead, since[2]:
| If prepared statement P does not have results ready to return (via
| calls to the sqlite3_column() family of interfaces) then
| sqlite3_data_count(P) returns 0.
Thus, we guard `SQLite3::columnType()` with `sqlite3_data_count()`, and
completely drop updating the `php_sqlite3_result_object.complete`
field, but keep it for ABI BC purposes.
[1] <https://www.sqlite.org/c3ref/column_blob.html >
[2] <https://www.sqlite.org/c3ref/data_count.html >
2020-02-21 13:36:29 +01:00
Christoph M. Becker
ad000a63e8
Add test for bug #78569
2020-02-21 10:31:26 +01:00
Christoph M. Becker
ab5b6702d7
Fix NEWS [ci skip]
...
Cosmetics.
2020-02-20 10:55:17 +01:00
Christoph M. Becker
31dd45564c
Remove extra tab in NEWS [ci skip]
2020-02-18 11:09:37 +01:00
Remi Collet
2aecf3aba9
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
bump version to 7.2.29
2020-02-18 11:00:49 +01:00
Remi Collet
63f6608f89
bump version to 7.2.29
2020-02-18 11:00:28 +01:00
Christoph M. Becker
08073b0658
Fix #79038 : PDOStatement::nextRowset() leaks column values
...
Firstly, we must not rely on `stmt->column_count` when freeing the
driver specific column values, but rather store the column count in
the driver data. Since the column count is a `short`, 16 bit are
sufficient, so we can store it in reserved bits of `pdo_odbc_stmt`.
Furthermore, we must not allocate new column value storage when the
statement is not executed, but rather when the column value storage has
not been allocated.
Finally, we have to introduce a driver specific `cursor_closer` to
avoid that `::closeCursor()` calls `odbc_stmt_next_rowset()` which then
frees the column value storage, because it may be still needed for
bound columns.
2020-02-17 22:53:02 +01:00
Christoph M. Becker
16c7c71693
Fix NEWS [ci skip]
2020-02-17 19:35:42 +01:00
Christoph M. Becker
788065fb8c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update NEWS [ci skip]
2020-02-17 19:23:31 +01:00
Christoph M. Becker
5009b9811d
Update NEWS [ci skip]
2020-02-17 19:21:51 +01:00
Christoph M. Becker
2831334bd3
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Mark bug76348.phpt as online test
Fix bug #79082 - Files added to tar with Phar::buildFromIterator have all-access permissions
Fix bug #79221 - Null Pointer Dereference in PHP Session Upload Progress
2020-02-17 19:08:04 +01:00
Christoph M. Becker
7df594b943
Fix # 79171: heap-buffer-overflow in phar_extract_file
...
We must not access memory outside of the allocated buffer.
2020-02-17 00:20:04 -08:00
Stanislav Malyshev
6facfa59a5
Fix bug #79082 - Files added to tar with Phar::buildFromIterator have all-access permissions
2020-02-17 00:19:30 -08:00
Stanislav Malyshev
409965fe1c
Fix bug #79221 - Null Pointer Dereference in PHP Session Upload Progress
2020-02-17 00:19:30 -08:00
Christoph M. Becker
0966941130
Fix #79271 : DOMDocumentType::$childNodes is NULL
...
Dom level 2 core, DOM level 3 core and the DOM living standard agree
that `childNodes` always return a `NodeList`, and never `null`.
2020-02-17 09:07:54 +01:00
Nikita Popov
2826364298
Mark bug76348.phpt as online test
2020-02-16 22:40:25 -08:00
Stanislav Malyshev
e5c95234d8
Fix bug #79082 - Files added to tar with Phar::buildFromIterator have all-access permissions
2020-02-16 22:38:38 -08:00
Stanislav Malyshev
d76f7c6c63
Fix bug #79221 - Null Pointer Dereference in PHP Session Upload Progress
2020-02-15 20:52:19 -08:00
Christoph M. Becker
392dada1d6
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix typo in recent bugfix
2020-02-14 09:22:51 +01:00
Christoph M. Becker
8308196c97
Fix typo in recent bugfix
2020-02-14 09:21:13 +01:00
Christoph M. Becker
8ebadd1128
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77569 : Write Acess Violation in DomImplementation
2020-02-13 15:15:05 +01:00
Christoph M. Becker
cec8b24c84
Fix #77569 : Write Acess Violation in DomImplementation
...
We must not assume that the zval IS_STRING.
2020-02-13 15:13:26 +01:00
Christoph M. Becker
7b464ce6f3
Fix #79254 : getenv() w/o arguments not showing changes
...
To be able to see changes done only with `SetEnvironmentVariable()`, we
have to use `GetEnvironmentStrings()` instead of `environ`, because the
latter sees only changes done with `putenv()`.
For best backward compatibility we're using `GetEnvironmentStringsA()`;
switching to the wide string version likely makes sense for master,
though.
2020-02-11 11:47:29 +01:00
Christoph M. Becker
f649adedfe
Fix #79248 : Traversing empty VT_ARRAY throws com_exception
...
If the `VT_ARRAY` is empty, i.e. its upperbound is less than its lower
bound, we must not call `php_com_safearray_get_elem()`, because that
function throws in this case.
2020-02-08 17:05:29 +01:00
Christoph M. Becker
674d44ad7c
Skip test case on x86 where it otherwise fails [ci skip]
...
`-2200000000` can't be converted to integer on x86, so the constructor
call would fail.
2020-02-07 21:09:35 +01:00
Christoph M. Becker
b9738f5802
Fix #79242 : COM error constants don't match com_exception codes
...
Because a `HRESULT` is a `LONG`[1], no special treatment is required on
x86 platforms to get appropriate values. On x64 platforms we prefer
positive values, what we could accomplish by casting the `HRESULT`
value to `ULONG` and then to `zend_long`, but since the current
behavior is correct and the performance improvement is negligible, we
defer that to master.
[1] <https://docs.microsoft.com/en-us/windows/win32/winprog/windows-data-types#hresult >
2020-02-07 18:04:14 +01:00
Christoph M. Becker
5e2ea00b15
Fix #66322 : COMPersistHelper::SaveToFile can save to wrong location
...
Saving under the given `filename` may also work, but since
`::LoadFromFile` uses the `fullpath` we follow suit.
2020-02-06 14:59:55 +01:00
Nikita Popov
13bfa9f5ac
Fixed bug #79188
2020-02-05 11:18:46 +01:00
Christoph M. Becker
e3632fdc0d
Next is 7.3.16
2020-02-04 11:38:29 +01:00
Christoph M. Becker
079905acd5
Fix #78090 : bug45161.phpt takes forever to finish
...
Not all systems support the discard protocol (TCP port 9), and since
there is no particular reason to use it, we switch to using actual
server testing.
2020-02-04 00:44:04 +01:00
Christoph M. Becker
fe1bfb78d6
Fix #79191 : Error in SoapClient ctor disables DOMDocument::save()
...
The culprit is the too restrictive fix for bug #71536 , which prevents
`php_libxml_streams_IO_write()` from properly executing when unclean
shutdown is flagged. A *more* suitable solution is to move the
`xmlwriter_free_resource_ptr()` call from the `free_obj` handler to an
added `dtor_obj` handler, to avoid to write to a closed stream in case
of late object freeing. This makes the `EG(active)` guard superfluous.
We also fix bug79029.phpt which has to use different variables for the
three parts to actually check the original shutdown issue.
Thanks to bwoebi and daverandom for helping to investigate this issue.
2020-02-03 23:31:46 +01:00
Christoph M. Becker
b93e4aa11c
Relax test expectation
...
Since we're dealing with floating point numbers, precision issues may
hit us, and actually it's not necessary to check for the exact number
anyway, because it is not exact in the first place. Therefore, we
relax the test expectations.
2020-02-03 13:03:54 +01:00
Christoph M. Becker
c2935499b1
Fix #79212 : NumberFormatter::format() may detect wrong type
...
We have to convert to number *before* detecting the type, to cater to
internal objects implementing `cast_object`.
We also get rid of the fallback behavior of using `FORMAT_TYPE_INT32`,
because that can no longer happen; after `convert_scalar_to_number_ex`
the type is either `IS_LONG` or `IS_DOUBLE`. We cater explicitly to
the `IS_ARRAY` case what also avoids triggering a type confusion when
`::TYPE_INT64` is passed as `$type`.
2020-02-03 12:28:32 +01:00
Nikita Popov
ef1e4891b4
Fix bug #76047
...
Unlink the current stack frame before freeing CVs or extra args.
This means it will no longer show up in back traces that are
generated during CV destruction.
We already did this prior to destructing the object/closure,
presumably for the same reason.
2020-01-31 10:26:40 +01:00
Christoph M. Becker
8226e704e4
Fix #70078 : XSL callbacks with nodes as parameter leak memory
...
The fix for bug #49634 solved a double-free by copying the node with
`xmlDocCopyNodeList()`, but the copied node is later freed by calling
`xmlFreeNode()` instead of `xmlFreeNodeList()`, thus leaking memory.
However, there is no need to treat the node as node list, i.e. to copy
also the node's siblings; just creating a recursive copy of the node
with `xmlDocCopyNode()` is sufficient, while that also avoids the leak.
2020-01-30 13:04:57 +01:00
Nikita Popov
494615fcb8
Fix leak in DateTimeImmutable::modify()
2020-01-30 12:16:56 +01:00
Nikita Popov
6ccd675776
Add SKIPIF to test requiring mbregex
2020-01-30 11:20:42 +01:00
Nikita Popov
a62c06c4cf
Fix mb_ord() crash if internal encoding not supported
...
enc_name can be NULL here. Take the name from the mbfl_encoding
instead.
2020-01-29 16:18:46 +01:00
Nikita Popov
560ff9725e
Reset MBREX(search_re) in RSHUTDOWN
...
This is going to cause a segfault if reused in the next request.
To illustrate the issue, run these two scripts in sequence with
the built-in server:
// script1.php
mb_ereg_search_init('foobar');
mb_ereg_search('foo');
// script2.php
var_dump(mb_ereg_search_init("foobar"));
var_dump(mb_ereg_search_pos());
2020-01-29 16:05:11 +01:00
Nikita Popov
392ad206a4
Fix use of mb_ereg_search_getregs() after invalid pattern
...
This segfaulted because we assumed that if there are matches,
there must be a regular expression as well.
2020-01-29 12:50:18 +01:00
Christoph M. Becker
136f51f1e1
Fix #76584 : PharFileInfo::decompress not working
...
We actually have to decompress, when told to do so.
2020-01-28 10:31:36 +01:00
Ivan Mikheykin
fd08f062ae
Fix bug #78323 : Code 0 is returned on invalid options
...
Set CLI exit code to 1 when invalid parameters are passed,
and print error to stderr.
2020-01-27 13:32:19 +01:00
Florian Smeets
b836d9cdc1
Add CURLOPT CURLOPT_HTTP09_ALLOWED available since 7.64.0
2020-01-26 14:12:53 +01:00
George Peter Banyard
a1f2f8f06e
Fixed bug #79080 [ci skip]
...
Rewrote session.gc_probability and session.gc_divisor INI setting
description to be more succint.
2020-01-25 13:29:36 +01:00
Christoph M. Becker
49cbd23155
Make test independent of online XSD schema
...
The test still needs to access <http://www.w3.org/2009/01/xml.xsd >, but
at least we no longer depend on <http://x-road.eu/xsd/x-road.xsd >,
which may be moved again.
2020-01-24 14:18:16 +01:00
Christoph M. Becker
372b678e56
Yet another check for php_strip_tags_ex()
2020-01-24 13:02:02 +01:00
Nikita Popov
2c2cbbbf55
Fix bug76348.phpt
...
Adjust for URL change in XSD file and mark as online test.
Is it possible for use to store http://x-road.eu/xsd/xroad.xsd
locally instead? Do relative file system paths work here?
I'm not familiar with this.
2020-01-23 15:08:20 +01:00
liudaixiao
67421a780d
Fixed bug #78902
2020-01-23 14:57:16 +01:00
Léopold Jacquot
f720fb1e21
Add unit test for bug #78902
2020-01-23 14:53:28 +01:00
Nikita Popov
db9776c53c
Fixed bug #79151
...
Make sure we also NULL out next/prev of the removed element on
pop/shift. This only matter is that element is still being referenced
by an iterator.
2020-01-23 14:20:26 +01:00
Stanislav Malyshev
dd3c664f8f
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
More checks for php_strip_tags_ex
2020-01-22 22:41:56 -08:00
Stanislav Malyshev
2dc170e25d
More checks for php_strip_tags_ex
2020-01-22 22:37:30 -08:00
Christoph M. Becker
f1bf4bf6eb
Don't leak encoding_str
2020-01-22 11:15:16 +01:00
Christoph M. Becker
9be31a582a
Fix #79154 : mb_convert_encoding() can modify $from_encoding
...
We must not modify arrays passed by value.
2020-01-22 10:28:07 +01:00
Remi Collet
5a9475f4b9
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
next will be 7.2.28
2020-01-22 09:17:33 +01:00
Remi Collet
7e2bd95fa5
next will be 7.2.28
2020-01-22 09:17:00 +01:00
Christoph M. Becker
9eff906a02
Fix #79145 : openssl memory leak
...
We must increase the refcount of `return_value` only if `cert` is a
resource; this is already done in `php_openssl_evp_from_zval()`,
though.
2020-01-21 16:17:25 +01:00
Deus Kane
3046e35718
Fix #79146 : cscript can fail to run on some systems
...
In the buildconf and configure batch files, Windows' cscript utility was being
run without the /e:jscript flag. This works on systems that have not had the
default .js file association changed, but if .js has been re-associated to
(say) an IDE, the batch files fail with the error message:
Input Error: There is no script engine for file extension ".js".
2020-01-21 11:53:11 +01:00
Christoph M. Becker
b67fc51859
Update NEWS wrt. sec fixes
2020-01-21 11:31:14 +01:00
Stanislav Malyshev
25ec7eb346
Merge branch 'PHP-7.2' into PHP-7.3
...
* 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()
2020-01-20 22:46:29 -08:00
Stanislav Malyshev
5c90f8eb66
Update NEWS
2020-01-20 22:12:32 -08:00
Stanislav Malyshev
2bcbc95f03
Fix bug #79037 (global buffer-overflow in mbfl_filt_conv_big5_wchar)
2020-01-20 21:43:42 -08:00
Stanislav Malyshev
0f79b1bf30
Fix #79099 : OOB read in php_strip_tags_ex
2020-01-20 21:43:42 -08:00
Christoph M. Becker
f79c774274
Fix #79091 : heap use-after-free in session_create_id()
...
If the `new_id` is released, we must not use it again.
2020-01-20 21:43:42 -08:00
Nikita Popov
07bda97e76
Fixed bug #79115
2020-01-17 11:37:35 +01:00
Nikita Popov
018251a7c4
Fixed bug #71876
...
This is a backport of fcdc0a6db0
to the PHP-7.3 branch. We need to make sure that OnUpdateString
is also called for a NULL value, otherwise the reset of the encoding
at the end of the request will not work.
I believe I already tried to land this before once, but it didn't
actually end up on the PHP-7.3 branch due to a push conflict that
I only noticed just now.
2020-01-17 09:47:31 +01:00
Christoph M. Becker
1752393bb4
Fix #79084 : mysqlnd may fetch wrong column indexes with MYSQLI_BOTH
...
Column names can be numeric strings, so we have to make sure to insert
the column values with the appropriate numeric keys, instead of adding
them.
2020-01-13 13:21:45 +01:00
Christoph M. Becker
f6dea34831
Fix test cases which fail on Windows debug builds
...
We use the portable {TMP} instead of the hard-coded /tmp, and skip
mysqli_debug_append.phpt on Windows, because unlinking the trace file
while the connection is still open won't work there.
(cherry picked from commit 60081ca20d )
2020-01-10 20:00:31 +01:00
Christoph M. Becker
bc529b92ee
Fix test for Windows ZTS builds
...
Cf. <https://bugs.php.net/bug.php?id=61685#1578672905 >.
2020-01-11 06:15:32 +14:00
Christoph M. Becker
0dda4a844e
Fix #79078 : Hypothetical use-after-free in curl_multi_add_handle()
...
To avoid this, we have to verify the handlers already in
`curl_multi_add_handle()`, not only in `curl_multi_exec()`.
2020-01-08 18:29:10 +01:00
Christoph M. Becker
38c0a53b60
Bump version
2020-01-07 11:03:19 +01:00
Christoph M. Becker
06e78cad83
Revert "Extend CURLFile to support streams"
...
This reverts commit 17a9f1401a , because
this commit would break ABI, and also due to bug #79013 .
We keep the commit for PHP 7.4+, though.
2020-01-06 15:31:49 +01:00
Christoph M. Becker
ae2150692a
Fix #54298 : Using empty additional_headers adding extraneous CRLF
...
If the header string is empty, we pass `NULL` to `php_mail()` to avoid
further checks on the string length.
2020-01-06 14:47:23 +01:00
Christoph M. Becker
4bec59f175
Fix #79068 : gdTransformAffineCopy() changes interpolation method
...
We port
<https://github.com/libgd/libgd/commit/9088591eae437358ee5b929adf82865e37e3001e >.
2020-01-06 10:36:48 +01:00
Christoph M. Becker
2c5860517c
Fix #79067 : gdTransformAffineCopy() may use unitialized values
...
We port
<https://github.com/libgd/libgd/commit/7a06c1669c563917bc48c464521e3de962ddb4e8 >.
2020-01-06 09:35:13 +01:00
Christoph M. Becker
c05a069adf
Fix #78808 : [LMDB] MDB_MAP_FULL: Environment mapsize limit reached
...
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.
2020-01-03 18:49:12 +01:00
Christoph M. Becker
18172303f4
Fix #78538 : shmop memory leak
...
If the descriptor's refcount drops to zero, we have to unmap the
respective file view, to avoid leaking memory.
2020-01-03 18:10:29 +01:00
Christoph M. Becker
b48f2625b5
Fix #79015 : undefined-behavior in php_date.c
...
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.
2020-01-03 14:31:03 +01:00
Christoph M. Becker
0cecf83b26
Fix #79040 : Warning Opcode handlers are unusable due to ASLR
...
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.
2019-12-30 15:12:58 +01:00
Christoph M. Becker
1aa419dcdc
Add missing skipif clause
2019-12-28 11:00:37 +01:00
Christoph M. Becker
c47b18a222
Fix #79033 : Curl timeout error with specific url and post
...
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.
2019-12-28 10:47:03 +01:00
Xinchen Hui
27bb3289ac
Fixed bug #79029 (Use After Free's in XMLReader / XMLWriter).
...
We backport the fix PHP 7.3, since this branch is affected as well.
(cherry picked from commit b5e0043796 )
(cherry picked from commit e36daa6927 )
(cherry picked from commit 2704ee6844 )
2019-12-25 12:33:30 +01:00
SATO Kentaro
37d11d123e
Fix #78982 : pdo_pgsql returns dead persistent connection
...
Call PQconsumeInput() before PQstatus() to update the status.
2019-12-20 12:05:17 +01:00
SATO Kentaro
7e39e6934d
Fix #78980 : pgsqlGetNotify() overlooks dead connection
...
pgsqlGetNotify() didn't check result of PQconsumeInput().
2019-12-20 11:44:07 +01:00
Sergei Turchanov
c62cd9a43a
Fix #74170 : locale information change after mime_content_type
...
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.
2019-12-20 11:22:59 +01:00
SATO Kentaro
cbb0efaeeb
Fix #78402 : pcntl_signal() misleading error message
...
An error message can be misleading when a handler
passed to pcntl_signal() is not callable.
2019-12-20 11:02:20 +01:00
Dmitry Stogov
eb846939b1
Fixed bug #78999 (Cycle leak when using function result as temporary)
2019-12-19 23:11:08 +03:00
SATO Kentaro
3e35b08980
Fix #78983 : pdo_pgsql config.w32 cannot find libpq-fe.h
...
When configured with a path specified.
2019-12-19 13:20:43 +01:00
Nikita Popov
0f078f6e78
Add destructor annotations in ini parser
...
It would be better to switch this to use %union and %type annotations,
but not going to do that change for 7.3.
2019-12-19 10:43:05 +01:00
Remi Collet
bacfae8baf
fix release date
2019-12-18 14:17:31 +01:00
Remi Collet
22dec2b323
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
fix release date
2019-12-18 14:17:21 +01:00
Remi Collet
864f5ef12f
fix release date
2019-12-18 14:16:19 +01:00
Nikita Popov
897d99c7a4
Rethrow generator exception even without active stack frame
...
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).
2019-12-18 11:04:15 +01:00
Nikita Popov
189f625e2b
Fix freeing of dynamic call name
...
We need to free op2 if the call construction fails.
Also remove a redundant check for !call.
2019-12-18 10:11:09 +01:00
Christoph M. Becker
3d50131ef7
Update/fix NEWS [ci skip]
2019-12-17 10:04:42 +01:00
Christoph M. Becker
b94c28b0e6
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
[ci skip] Update NEWS
2019-12-17 10:01:50 +01:00
Stanislav Malyshev
0e413241ec
[ci skip] Update NEWS
2019-12-16 23:45:11 -08:00
Stanislav Malyshev
9705e631a4
[ci skip] Update NEWS
2019-12-16 23:41:04 -08:00
Stanislav Malyshev
a62154564d
Fix test
2019-12-16 10:32:49 -08:00
Stanislav Malyshev
5cb4686753
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix test
Fix bug #78793
2019-12-16 10:04:03 -08:00
Stanislav Malyshev
6d5cddabaf
Fix test
2019-12-16 10:03:43 -08:00
Stanislav Malyshev
c14eb8de97
Fix bug #78793
2019-12-16 01:14:58 -08:00
Stanislav Malyshev
b74a300edf
Fix build - no model field anymore
2019-12-16 01:10:42 -08:00
Stanislav Malyshev
a65b8abf2c
Merge branch 'PHP-7.2' into PHP-7.3
...
* 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
2019-12-16 00:38:54 -08:00
Stanislav Malyshev
d348cfb96f
Fixed bug #78910
2019-12-16 00:10:39 -08:00
Christoph M. Becker
eb23c60087
Fix #78878 : Buffer underflow in bc_shift_addsub
...
We must not rely on `isdigit()` to detect digits, since we only support
decimal ASCII digits in the following processing.
2019-12-16 00:05:03 -08:00
Stanislav Malyshev
b771a18133
Fix test
2019-12-16 00:03:18 -08:00
Christoph M. Becker
0e6c0654ed
Fix #78862 : link() silently truncates after a null byte on Windows
...
Since link() is supposed to accepts paths (i.e. strings without NUL
bytes), we must not accept arbitrary strings.
2019-12-16 00:03:06 -08:00
Christoph M. Becker
a5a15965da
Fix #78863 : DirectoryIterator class silently truncates after a null byte
...
Since the constructor of DirectoryIterator and friends is supposed to
accepts paths (i.e. strings without NUL bytes), we must not accept
arbitrary strings.
2019-12-16 00:02:57 -08:00
Christoph M. Becker
518a160b65
Fix #78943 : mail() may release string with refcount==1 twice
...
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.
2019-12-15 13:13:30 -08:00
Nikita Popov
621598eaa8
Fixed bug #78921
...
By resetting fake_scope during autoloading. We already do the same
when executing destructors.
2019-12-13 16:37:20 +01:00
Nikita Popov
87691e74e5
Fix DCE with FE_FETCH
...
For now, don't treat FE_FETCH op2 as no-val use. See GH-4982.
2019-12-10 09:00:09 +01:00
Christoph M. Becker
17a9f1401a
Extend CURLFile to support streams
...
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 c68dc6b5e3 )
2019-12-09 10:30:00 +01:00
Christoph M. Becker
e1202733a5
Use curl_mime_*() functions if available
...
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 a83b68ba56 )
2019-12-09 10:24:49 +01:00
willson-chen
b5d2cbe027
Fix #78923 : Artifacts when convoluting image with transparency
...
We have to properly initialize `pxl` before using it.
Fix ported from <https://github.com/libgd/libgd/pull/559 >.
2019-12-07 12:06:33 +01:00
Nikita Popov
249e49092d
Fix constant evaluation of && and ||
...
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.
2019-12-06 11:07:57 +01:00
Nikita Popov
fac43d6515
Fix AST printing of nullable builtin types
...
Fixes oss-fuzz #19109 .
2019-12-04 11:20:52 +01:00
Tyson Andre
c8e9aa854c
Fix print_r return types in opcache
...
https://www.php.net/print_r
> When the return parameter is TRUE, this function will return a string.
> Otherwise, the return value is TRUE.
2019-12-04 07:16:32 +01:00
Christoph M. Becker
65bbc67063
Next is 7.3.14
2019-12-03 12:04:17 +01:00
Remi Collet
3444b90746
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
next is 7.2.27
2019-12-03 11:26:05 +01:00
Remi Collet
d2cfb63f02
next is 7.2.27
2019-12-03 11:25:37 +01:00
Christoph M. Becker
861fa60814
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78814 : strip_tags allows / in tag name => whitelist bypass
2019-12-02 11:38:45 +01:00
Christoph M. Becker
600f1f898f
Fix #78814 : strip_tags allows / in tag name => whitelist bypass
...
When normalizing tags to check whether they are contained in the set
of allowable tags, we must not strip slashes, unless they come
immediately after the opening `<`, or immediately before the closing
`>`.
2019-12-02 11:37:25 +01:00
Christoph M. Becker
bb735c9e9e
Fix #78296 : is_file fails to detect file
...
If we're constructing extended-length paths (i.e. paths prefixed with
`\\?\`), we have to replace all forward slashes with backward slashes,
because the former are not supported by Windows for extended-length
paths.
The more efficient and likely cleaner alternative solution would be to
cater to this in `php_win32_ioutil_normalize_path_w()` by always
replacing forward slashes, but that might break existing code. It
might be sensible to change that for `master`, though.
2019-12-02 11:29:10 +01:00
Christoph M. Becker
3d81c54879
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78833 : Integer overflow in pack causes out-of-bound access
2019-12-02 11:19:15 +01:00
Christoph M. Becker
db420cb6a1
Fix #78833 : Integer overflow in pack causes out-of-bound access
...
We check for potential signed integer overflow, and bail out
gracefully, in that case.
2019-12-02 11:18:19 +01:00
Christoph M. Becker
1979c5d16f
Upgrade to Oniguruma 6.9.4
...
Oniguruma 6.9.4 fixes several CVEs.
2019-11-30 14:00:41 +01:00
Christoph M. Becker
8c4b0ddde5
Add missing skip checks
2019-11-29 23:50:05 +01:00
Christoph M. Becker
ff2140c49d
Partially revert "Adapt test cases for Oniguruma 6.9.4"
...
This partially reverts commit c55d09c2f5 ,
because `MB_ONIGURUMA_VERSION` is only available as of PHP 7.4.0, so
that change made no sense for PHP-7.3; we keep it for PHP-7.4, though.
We also stick with the modification to bug78633.phpt.
2019-11-29 23:40:30 +01:00
Christoph M. Becker
c55d09c2f5
Adapt test cases for Oniguruma 6.9.4
...
Apparently, bug 78633 has now really been fixed; the former fix only
catered to the buffer overflow, but yielded a wrong result. Also,
the order of the named captures has been fixed.
2019-11-29 16:59:19 +01:00
Christoph M. Becker
fee38633d2
Fix #78840 : imploding $GLOBALS crashes
...
We add support for IS_INDIRECT zvals to implode().
2019-11-27 09:32:16 +01:00
Christoph M. Becker
23c65a8173
Fix #77638 : var_export'ing certain class instances segfaults
...
If objects return immutable property hash tables (typically,
`zend_empty_array`), we must not try to apply recursion protection on
those.
2019-11-25 15:54:11 +01:00
Dmitry Stogov
bb30fe9e2b
Fixed bug #78868 (Calling __autoload() with incorrect EG(fake_scope) value)
2019-11-25 14:05:43 +03:00
Christoph M. Becker
e1da72bdf1
Fix #78853 : preg_match() may return integer > 1
...
Commit 54ebebd[1] optimized the match loop, but for this case it has
been overlooked, that we must only loop if we're doing global matching.
[1] <http://git.php.net/?p=php-src.git;a=commit;h=54ebebd686255c5f124af718c966edb392782d4a >
2019-11-22 19:26:26 +01:00
George Wang
e981f5af51
Merge branch 'PHP-7.2' into PHP-7.3
2019-11-21 17:58:16 -05:00
George Wang
c7141412ce
Added environment LSAPI_CLEAN_SHUTDOWN to control clean shutdown. Update SAPI version to LiteSpeed v7.6 .
2019-11-21 17:57:50 -05:00
Christoph M. Becker
b4f501d5a4
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78849 : GD build broken with -D SIGNED_COMPARE_SLOW
2019-11-21 10:01:05 +01:00
Christoph M. Becker
9b92c1d154
Fix #78849 : GD build broken with -D SIGNED_COMPARE_SLOW
...
Apparently, this has not been tested for a long time, and might be a
refactoring relict. Anyhow, we have to pass the context to
`GIFNextPixel` as well.
2019-11-21 09:59:26 +01:00
Christoph M. Becker
3b46fbfc36
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update NEWS
2019-11-18 12:47:53 +01:00
Christoph M. Becker
f6eac76b65
Update NEWS
2019-11-18 12:46:43 +01:00
Dmitry Stogov
e72e3370c6
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix $x = (bool)$x; for undefined with opcache
2019-11-18 11:26:30 +03:00
Tyson Andre
a2c41c0ea6
Fix $x = (bool)$x; for undefined with opcache
...
And `$x = !$x`
Noticed while working on GH-4912
The included test would not emit undefined variable errors in php 8.0
with opcache enabled. The command used:
```
php -d zend_extension=opcache.so --no-php-ini -d error_reporting=E_ALL \
-d opcache.file_cache= -d opcache.enable_cli=1 test.php
```
2019-11-18 11:24:03 +03:00
Christoph M. Becker
39d04f15f8
Fix ASLR related invalid opline handler issues
...
Opcache stores `opline->handler`s in shared memory. These pointers are
invalid, if the main PHP DLL is loaded at another base address due to
ASLR. We therefore store the address of `execute_ex` in the mmap base
file, and check on startup whether it matches its current address. If
not, we fall back on the file cache if enabled, and bail out otherwise.
This still does not address cases where the opline handler is located
inside of another DLL (e.g. for some profilers, debuggers), but there
seems to be no general solution for now.
(cherry picked from commit 8ba10b8fbc )
2019-11-15 09:46:58 +01:00
Dmitry Stogov
9083e178f6
Fixed wrong constant usage
2019-11-12 12:59:50 +03:00
Stanislav Malyshev
ea2a125789
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug #78804 - Segmentation fault in Locale::filterMatches
2019-11-11 23:08:38 -08:00
Stanislav Malyshev
2c9926f156
Fix bug #78804 - Segmentation fault in Locale::filterMatches
2019-11-11 22:32:35 -08:00
Levi Morrison
4a55794b98
Wrap php_random.h in C++ portability macros
...
Also remove portability headers. This goes against the existing
conventions of these files.
2019-11-08 07:58:26 -07:00
Levi Morrison
b9dfa12853
Wrap hrtime in extern "c" {}
...
This allows it to be used by C++ extensions without them having to do their own forward declares.
Closes GH-4890.
2019-11-07 14:41:58 +01:00
Nikita Popov
6dcc0b859f
Fix php_pcre_mutex_free()
...
We should only set the mutex to NULL if we actually freed it.
Due to missing braces non-main threads may currently set it to
NULL first.
2019-11-07 14:31:19 +01:00
Nikita Popov
29f4939923
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Remove outdated comments in test
2019-11-07 14:06:33 +01:00
Nikita Popov
ee243bc471
Remove outdated comments in test
2019-11-07 14:06:23 +01:00
Nikita Popov
8d2a9d8859
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #78759
2019-11-07 11:16:24 +01:00
Nikita Popov
5fa6dcd972
Fixed bug #78759
...
Handle INDIRECT values in array.
2019-11-07 11:15:29 +01:00
Nikita Popov
6d4965febd
Fixed bug #78787
...
Not the first time inheritance of shadow properties causes an issue,
thankfully this whole concept is gone in PHP 7.4.
2019-11-06 12:52:34 +01:00
Christoph M. Becker
4c9ba3e042
7.3.13 is next
2019-11-05 18:20:56 +01:00
Sara Golemon
e85cae8ef4
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Bump for 7.2.26-dev
2019-11-05 10:58:35 -05:00
Sara Golemon
d317e16e89
Bump for 7.2.26-dev
2019-11-05 10:57:29 -05:00
Nikita Popov
747cb46244
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #78775
2019-11-05 12:15:44 +01:00
Nikita Popov
4f984a2fdb
Fixed bug #78775
...
Clear the OpenSSL error queue before performing SSL stream operations.
As we don't control all code that could possibly be using OpenSSL,
we can't rely on the error queue being empty.
2019-11-05 12:13:46 +01:00
Christoph M. Becker
85874af404
Remove obsolete oniguruma.patch
...
The proper `SIZEOF_SIZE_T` definitions are available as of Oniguruma
6.9.1; no more need to patch.
2019-11-05 10:16:22 +01:00
Christoph M. Becker
e175a0a1c8
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix test cases for libxml2 2.9.10
2019-10-31 16:08:38 +01:00
Christoph M. Becker
e29922f054
Fix test cases for libxml2 2.9.10
...
Since the error reporting has been slightly changed, we have to adapt
the two affected test cases.
2019-10-31 16:07:34 +01:00
Nikita Popov
d3237b5504
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Add missing refcount increment
2019-10-30 09:22:51 +01:00
Nikita Popov
5f6eaf355c
Add missing refcount increment
2019-10-30 09:22:20 +01:00
Nikita Popov
33dd25d21c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #78689
2019-10-29 15:06:52 +01:00
Nikita Popov
f9895b4bf5
Fixed bug #78689
2019-10-29 15:06:16 +01:00
Stanislav Malyshev
8c2b3b0568
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix libmagic buffer overflow issue (CVE-2019-18218)
bump version
set versions for release
2019-10-28 20:47:44 -07:00
Stanislav Malyshev
2bdb13a1f7
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix libmagic buffer overflow issue (CVE-2019-18218)
bump version
set versions for release
2019-10-28 20:47:30 -07:00
Christoph M. Becker
736cd93ef5
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78751 : Serialising DatePeriod converts DateTimeImmutable
2019-10-28 13:08:34 +01:00
Christoph M. Becker
89c327f884
Fix #78751 : Serialising DatePeriod converts DateTimeImmutable
...
When getting the properties of a DatePeriod instance we have to retain
the proper classes, and when restoring a DatePeriod instance we have to
cater to DateTimeImmutable instances as well.
2019-10-28 13:07:28 +01:00
Nikita Popov
b61b60d15b
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug #78752
2019-10-28 10:28:04 +01:00
Nikita Popov
16c4910876
Fix bug #78752
...
NULL out the execute_data before destroying it, otherwise GC may
trigger while the execute_data is partially destroyed, resulting
in double-frees.
The handling of call stack unfreezing is a bit awkward because it's
a ZEND_API function, so we can't change the signature.
2019-10-28 10:27:32 +01:00
Stanislav Malyshev
469820048d
Fix libmagic buffer overflow issue (CVE-2019-18218)
...
Ported from https://github.com/file/file/commit/46a8443f76cec4b41ec736eca396984c74664f84
2019-10-27 16:30:38 -07:00
Nikita Popov
74699533e5
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #78747
2019-10-25 12:50:12 +02:00
Nikita Popov
5249993814
Fixed bug #78747
2019-10-25 12:47:18 +02:00
Nikita Popov
813305b67f
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Use ICU's CXXFLAGS when using pkg-config
2019-10-23 11:17:46 +02:00
Ryan Schmidt
8daf96cef3
Use ICU's CXXFLAGS when using pkg-config
...
This mirrors how ICU's CXXFLAGS are already used when using icu-config.
2019-10-23 11:17:37 +02:00
Nikita Popov
832b5c7b9d
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Add "-pthread" to EXTRA_LDFLAGS_PROGRAM as well
2019-10-23 11:07:16 +02:00
Nikita Popov
fa89c41f37
Add "-pthread" to EXTRA_LDFLAGS_PROGRAM as well
...
This is a backport of c518932c03
from the PHP 7.4 branch.
2019-10-23 11:06:51 +02:00
Joe Watkins
52f049879a
bump version
2019-10-22 18:58:39 +02:00
Joe Watkins
326cd05dae
set versions for release
2019-10-22 18:56:55 +02:00
Christoph M. Becker
36943dfff1
Update NEWS
2019-10-22 09:50:11 +02:00
Remi Collet
c00fd843d7
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
add NEWS entry
2019-10-22 09:37:51 +02:00
Remi Collet
2213bd36fd
add NEWS entry
2019-10-22 09:37:35 +02:00
Stanislav Malyshev
57b4dcbe77
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug #78599 (env_path_info underflow can lead to RCE) (CVE-2019-11043)
bump versions after release
set versions for release
2019-10-21 13:17:19 -07:00
Stanislav Malyshev
4b5cdda0c7
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix bug #78599 (env_path_info underflow can lead to RCE) (CVE-2019-11043)
bump versions after release
set versions for release
2019-10-21 13:17:09 -07:00
Joe Watkins
1c9b62fbd4
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug #78697 : inaccurate error message
2019-10-21 09:23:26 +02:00
Fabien Villepinte
bea2ff88c9
Fix bug #78697 : inaccurate error message
2019-10-21 09:22:09 +02:00
Jakub Zelenka
ab061f95ca
Fix bug #78599 (env_path_info underflow can lead to RCE) (CVE-2019-11043)
2019-10-20 22:50:04 -07:00
Christoph M. Becker
4f50d58cab
Fix #78633 : Heap buffer overflow (read) in mb_eregi
...
We backport kkos/oniguruma@15c4228aa2 .
2019-10-20 22:47:38 -07:00
Christoph M. Becker
ce035dc4a0
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78694 : Appending to a variant array causes segfault
2019-10-19 11:49:18 +02:00
Christoph M. Becker
45a7723267
Fix #78694 : Appending to a variant array causes segfault
...
`write_dimension` object handlers have to be able to handle `NULL`
`offset`s; for now we simply throw an exception instead of following
the `NULL` pointer.
2019-10-19 11:47:00 +02:00
Christoph M. Becker
c7c7ab53ac
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #70153 \DateInterval incorrectly unserialized
2019-10-18 15:32:08 +02:00
m.yakunin
d2cde0bfd3
Fix #70153 \DateInterval incorrectly unserialized
...
Added a separate macro for reading 'days' property, so that bool(false)
is correctly converted to the proper internal representation.
2019-10-18 15:31:14 +02:00
Derick Rethans
3725a446ba
Import timelib version 2018.03
2019-10-15 21:00:39 +01:00
Joe Watkins
22ac57b064
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix checksum calculation for opcache
2019-10-14 16:49:48 +02:00
Mitch Hagstrand
e2a6bf482f
Fix checksum calculation for opcache
2019-10-14 16:46:42 +02:00
Christoph M. Becker
7439d48bea
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78665 : Multicasting may leak memory
2019-10-12 14:44:55 +02:00
Christoph M. Becker
900bdcbd03
Fix #78665 : Multicasting may leak memory
2019-10-12 14:43:43 +02:00
Nikita Popov
74ac3dd6e2
Merge branch 'PHP-7.2' into PHP-7.3
2019-10-10 16:14:37 +02:00
Nikita Popov
46561dab6a
Fix leak in phar open
2019-10-10 16:14:21 +02:00
Nikita Popov
4ba8d78100
Merge branch 'PHP-7.2' into PHP-7.3
2019-10-10 11:41:29 +02:00
Nikita Popov
96c84b7bc1
Fix leak on static method call on non-existent class
2019-10-10 11:40:49 +02:00
Nikita Popov
a0163417ef
Merge branch 'PHP-7.2' into PHP-7.3
2019-10-09 17:33:44 +02:00
Nikita Popov
daf1fc6e31
Avoid float to int cast UB in exif
2019-10-09 17:33:29 +02:00
Christoph M. Becker
bbd481c11d
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78656 : Parse errors classified as highest log-level
2019-10-09 17:28:50 +02:00
Erik Lundin
3164186d53
Fix #78656 : Parse errors classified as highest log-level
2019-10-09 17:27:32 +02:00
Nikita Popov
6fd6ad8f53
Fixed bug #78658
2019-10-09 17:00:27 +02:00
Nikita Popov
cbf589b17c
Merge branch 'PHP-7.2' into PHP-7.3
2019-10-09 14:58:01 +02:00
Nikita Popov
d6ca174d5b
Remove redundant components < 0 check
...
components is an unsigned number, it cannot be smaller than zero.
2019-10-09 14:57:24 +02:00
Nikita Popov
736af5f660
Merge branch 'PHP-7.2' into PHP-7.3
2019-10-08 16:13:17 +02:00
Sergei Turchanov
a8f60ac9dd
Add pcre_get_compiled_regex_cache_ex() with local_aware flag
...
A new function `pcre_get_compiled_regex_cache_ex()` is introduced,
which allows to compile regexp pattern using the "C" locale instead
of a current locale.
This will be needed to replace setlocale() usage in fileinfo,
which is not thread-safe.
2019-10-08 16:11:55 +02:00
Christoph M. Becker
9fd555f99e
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Add missing SKIPIFs in exif tests
2019-10-08 14:12:12 +02:00
Fabien Villepinte
46894580b0
Add missing SKIPIFs in exif tests
2019-10-08 14:11:32 +02:00
Nikita Popov
2fdd142f99
Check for exception after applying stream filters
...
This makes the stream opening actually fail, and avoids assertion
failures when we tokenize with EG(exception) set.
Also avoid throwing an additional warning after an exception has
already been thrown.
2019-10-08 12:32:57 +02:00
Christoph M. Becker
d6fdc17f7f
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78642 : Wrong libiconv version displayed
2019-10-08 12:10:06 +02:00
Christoph M. Becker
195c2008e8
Fix #78642 : Wrong libiconv version displayed
...
The high byte of `_libiconv_version` specifies the major version; the
low byte the minor version.
2019-10-08 12:09:11 +02:00
Christoph M. Becker
26f45cb4bb
7.3.12 is next
2019-10-08 12:04:25 +02:00
Remi Collet
4b15f7ca09
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
next is 7.2.25
2019-10-08 11:36:36 +02:00
Remi Collet
05d6878b3b
next is 7.2.25
2019-10-08 11:36:10 +02:00
Christoph M. Becker
11654fdfa6
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78641 : addGlob can modify given remove_path value
2019-10-08 09:48:59 +02:00
Christoph M. Becker
fd3118ffb0
Fix #78641 : addGlob can modify given remove_path value
...
`remove_path` points to the given string, so we must not modify it.
Instead we use a duplicate, if we need the modification.
We may want to switch to `zend_string`s in master.
2019-10-08 09:45:05 +02:00
Nikita Popov
8a03fd6a5e
Merge branch 'PHP-7.2' into PHP-7.3
2019-10-07 17:52:35 +02:00
Nikita Popov
19e6abebc7
Check for object_init_ex() failure in user filter factory
2019-10-07 17:52:29 +02:00
Nikita Popov
2624c9a505
Merge branch 'PHP-7.2' into PHP-7.3
2019-10-07 16:44:31 +02:00
Nikita Popov
7d19668f60
Set session.gc_probability=0 in bug78624.phpt
...
We only want to test manually triggered session GC.
Avoid spurious output due to automatic GC.
2019-10-07 16:43:19 +02:00
Nikita Popov
ab61d5caf9
Backport fix for uaf during pcre jit fallback
...
Backports parts of https://vcs.pcre.org/pcre2?view=revision&revision=1175
fixing https://bugs.exim.org/show_bug.cgi?id=2453 .
2019-10-07 13:23:56 +02:00
Christoph M. Becker
3322c78a88
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78623 : Regression caused by "SP call yields additional empty result set"
2019-10-07 09:17:29 +02:00
Christoph M. Becker
114c03b9a6
Fix #78623 : Regression caused by "SP call yields additional empty result set"
...
This reverts commit 41a4379cb4 .
2019-10-07 09:15:51 +02:00
Nikita Popov
239e2dda64
Make sure T_ERROR is returned for all lexer exceptions
...
This originally manifested as a leak in oss-fuzz #18000 . The following
is a reduced test case:
<?php
[
5 => 1,
"foo" > 1,
" " => "" == 0
];
<<<BAR
$x
BAR;
Because this particular error condition did not return T_ERROR,
EG(exception) was set while performing binary operation constant
evaluation, which checks exceptions for cast failures.
Instead of adding this indirect test case, I'm adding an assertion
that the lexer has to return T_ERROR if EG(exception) is set.
2019-10-04 22:42:14 +02:00
Nikita Popov
1d6e9da743
Improve diagnostic on PCRE JIT mmap failure
...
Print a more informative message that indicates that this is
likely a permission issue, and also indicate that pcre.jit=0
can be used to work around it.
Also automatically disable the JIT, so that this message is
only shown once.
See bug #78630 .
2019-10-04 16:03:38 +02:00
Christoph M. Becker
1ce8c805e2
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Split intl tests for ICU 65
2019-10-04 13:53:58 +02:00
Christoph M. Becker
545412a6cd
Split intl tests for ICU 65
2019-10-04 13:53:22 +02:00
Christoph M. Becker
cf183a5e2c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78620 : Out of memory error
2019-10-04 09:09:39 +02:00
Christoph M. Becker
abaf9a76dc
Fix #78620 : Out of memory error
...
The integer addition in `ZEND_MM_ALIGNED_SIZE_EX` can overflow, what we
have to catch early.
2019-10-04 09:08:01 +02:00
Joe Watkins
f45eb353d1
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
fix #78624 : session_gc return value for user defined session handlers
2019-10-04 06:12:29 +02:00
Brent Shaffer
a6d219630c
fix #78624 : session_gc return value for user defined session handlers
2019-10-04 06:12:02 +02:00
Joe Watkins
f4d078b1c7
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug #76809 (SSL settings aren't respected when persistent connection is reused)
2019-10-03 06:57:05 +02:00
Fábio Souto
9a2b42a5c1
Fix bug #76809 (SSL settings aren't respected when persistent connection is reused)
2019-10-03 06:56:21 +02:00
Joe Watkins
5b1bb23edf
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #76859 stream_get_line skips data if used with data-generating filter
2019-10-03 06:51:10 +02:00
Konstantin Kopachev
05560b67bc
Fix #76859 stream_get_line skips data if used with data-generating filter
...
stream_get-line repeatedly calls php_stream_fill_read_buffer until
enough data is accumulated in buffer. However, when stream contains
filters attached to it, then each call to fill buffer essentially
resets buffer read/write pointers and new data is written over old.
This causes stream_get_line to skip parts of data from stream
This patch fixes such behavior, so fill buffer call will append.
2019-10-03 06:50:43 +02:00
Derick Rethans
0505fbf2e5
Updated to version 2019.3 (2019c)
2019-10-02 23:39:09 +01:00
Christoph M. Becker
d295e1dce2
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Revert "Fix #78620 : Out of memory error"
2019-10-02 19:02:28 +02:00
Christoph M. Becker
f2fb37a772
Revert "Fix #78620 : Out of memory error"
...
This reverts commit 8ce04df7e0 .
Cf. <https://github.com/php/php-src/pull/4766#discussion_r330658679 >.
2019-10-02 19:01:35 +02:00
Christoph M. Becker
752a34fb2c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78620 : Out of memory error
2019-10-02 18:20:09 +02:00
Christoph M. Becker
8ce04df7e0
Fix #78620 : Out of memory error
...
If the integer addition in `ZEND_MM_ALIGNED_SIZE_EX` overflows, the
macro evaluates to `0`, what we should catch early.
2019-10-02 18:18:52 +02:00
Nikita Popov
3c42471ef8
Merge branch 'PHP-7.2' into PHP-7.3
2019-10-02 12:07:19 +02:00
Nikita Popov
a5d3620d93
Fix segfault with __COMPILER_HALT_OFFSET__ and trailing {}
...
Fixes OSS-Fuzz #17895 .
2019-10-02 12:07:15 +02:00
Dmitry Stogov
f7596d1b5b
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed test that "fails" from time to time
2019-10-02 00:57:16 +03:00
Dmitry Stogov
3124129ca8
Fixed test that "fails" from time to time
2019-10-02 00:54:59 +03:00
Dmitry Stogov
848bc776ea
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed test that "fails" from time to time
2019-10-02 00:49:27 +03:00
Dmitry Stogov
2fcb5eadbb
Fixed test that "fails" from time to time
2019-10-02 00:48:42 +03:00
Christoph M. Becker
2fc5d00afa
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Add missing skip keyword in tests
2019-10-01 11:15:12 +02:00
Fabien Villepinte
209e37db7d
Add missing skip keyword in tests
2019-10-01 11:13:36 +02:00
Nikita Popov
0805e132b0
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-30 15:06:32 +02:00
Nikita Popov
6fcde56b03
Fixed bug #78612
2019-09-30 15:06:07 +02:00
Christoph M. Becker
2046b3ce4f
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78609 : mb_check_encoding() no longer supports stringable objects
2019-09-30 13:04:54 +02:00
Sergei Turchanov
e546d721e8
Fix #78413 : php-fpm request_terminate_timeout does not take effect after fastcgi_finish_request
...
To retain legacy behavior I decided to add an option to control request
termination logic. If request_terminate_timeout_track_finished is set,
then request will be tracked for time limits even after
fastcgi_finish_request was called.
This patch depends on the fix provided in BUG 78469 (otherwise php-fpm
workers listening on named pipes on Windows will be erroneously terminated)
(PR #4636 )
2019-09-30 12:54:09 +02:00
Christoph M. Becker
45db6fa567
Fix #78609 : mb_check_encoding() no longer supports stringable objects
...
We apply type juggling for other types than array.
2019-09-30 12:42:04 +02:00
Christoph M. Becker
466f91bb3b
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix build for libzip < 0.11.2
2019-09-29 13:34:16 +02:00
Christoph M. Becker
f6bfbe9553
Fix build for libzip < 0.11.2
...
We must not define method entries, if the actual method definitions or
the arginfo structures are not defined.
2019-09-29 13:33:18 +02:00
Nikita Popov
7df50ef147
Don't throw warnings during heredoc scan-ahead
...
Otherwise these warnings will turn up twice (or more...)
2019-09-28 17:15:36 +02:00
Christoph M. Becker
66c48e8694
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix SKIPIF in ext/mysqli
2019-09-27 16:04:00 +02:00
Fabien Villepinte
37d27e666a
Fix SKIPIF in ext/mysqli
2019-09-27 16:03:20 +02:00
Christoph M. Becker
878704ff6f
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix skipif.inc
2019-09-27 12:51:21 +02:00
Christoph M. Becker
115f6effec
Fix skipif.inc
2019-09-27 12:50:04 +02:00
Nikita Popov
91c4abcfcc
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-26 13:47:19 +02:00
Nikita Popov
ab938d7bbc
Fix memory leak with ** on array operands
2019-09-26 13:45:45 +02:00
Nikita Popov
99c67804d5
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-26 10:25:40 +02:00
Nikita Popov
8a9df88597
Fix null-pointer deref in if stmt printing
...
Fixes OSS-Fuzz #17721 .
2019-09-26 10:24:49 +02:00
Nikita Popov
915fe2fdc6
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-25 10:34:25 +02:00
Jinesh Patel
d2331cc3f2
Fix hash key length in umsg_parse_format()
...
Fix array length passed to zend_hash_str_find_ptr() casting from
UChar array to char array requires mul by sizeof(UChar).
2019-09-25 10:30:33 +02:00
Christoph M. Becker
7530938670
Update NEWS
2019-09-24 11:13:55 +02:00
Christoph M. Becker
8f949eba80
Fix #78559 : Heap buffer overflow in mb_eregi
...
We backport kkos/oniguruma@d3e402928b .
2019-09-23 21:49:55 -07:00
Christoph M. Becker
8c9c58436b
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix NEWS entry
2019-09-23 23:03:07 +02:00
Christoph M. Becker
ed099ab186
Fix NEWS entry
...
Cf. <https://bugs.php.net/78590 >.
2019-09-23 22:59:55 +02:00
Nikita Popov
954d073833
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-23 17:18:33 +02:00
Nikita Popov
3ddb63dce1
Fix skipif condition
2019-09-23 17:17:52 +02:00
Nikita Popov
d0f4966b05
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-23 16:42:33 +02:00
Nikita Popov
bc4c4c658c
Skip test on 32-bit
2019-09-23 16:42:24 +02:00
Nikita Popov
087051c9a5
Skip test on 32-bit
2019-09-23 14:52:32 +02:00
Nikita Popov
1a184f030a
Commit regenerated var_unserializer.c
2019-09-23 13:47:05 +02:00
Nikita Popov
f53af9ac23
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-23 13:18:39 +02:00
Nikita Popov
8509970e6a
Fix signed integer overflow in SplObjectStorage unserialization
...
If count is ZEND_LONG_MIN the count-- loop underflows. This is
ultimately harmless, but results in a ubsan warning.
Fix this by adding a sanity check that the count isn't negative,
because that doesn't make sense...
2019-09-23 13:18:27 +02:00
Nikita Popov
e65adc9c19
Fix ubsan violation in parse_iv2
...
This fixes two issues:
* Negative the value in an unsigned type to avoid signed overflow.
* Treat -0 as 0 rather than an invalid number that gets converted
to ZEND_LONG_MIN.
2019-09-23 13:08:44 +02:00
Christoph M. Becker
9c89f43d55
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix test to be skipped if dom is not available
2019-09-22 18:42:40 +02:00
Christoph M. Becker
697945aa89
Fix test to be skipped if dom is not available
2019-09-22 18:42:02 +02:00
Nikita Popov
9cd365e571
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-22 12:10:42 +02:00
Nikita Popov
f989a4cd44
Fix leak of temporary buffer during exif tag reading
2019-09-22 12:10:17 +02:00
Nikita Popov
623d897998
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-22 10:26:57 +02:00
Nikita Popov
0701835c01
Fix multiple leaks in exif_read_data()
...
This fixes two leaks related to duplicate tags, as well as a leak
of zero-length FMT_(S)BYTE with non-null value. This can show up
for MAKERNOTE values where the original length is non-zero, but
the first character is a null byte.
2019-09-21 20:40:03 +02:00
Christoph M. Becker
33e556fab4
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix length of key passed to zend_hash_str_find_ptr
2019-09-21 18:12:27 +02:00
Jinesh Patel
0d6c2448a7
Fix length of key passed to zend_hash_str_find_ptr
2019-09-21 18:11:21 +02:00
Christoph M. Becker
698088ca7c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78579 : mb_decode_numericentity: args number inconsistency
2019-09-21 16:16:52 +02:00
Christoph M. Becker
398b308316
Fix #78579 : mb_decode_numericentity: args number inconsistency
...
mb_decode_numericentity() accepts a fourth optional parameter, which is
unused, however. Since this parameter doesn't do any harm, and to avoid
the small BC break, we're keeping this parameter for PHP 7, but adjust
the arginfo.
For PHP 8, we will remove this parameter.
2019-09-21 16:15:23 +02:00
Nikita Popov
e76dea4283
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-19 21:14:40 +02:00
Nikita Popov
0fa13028cb
Fix out-of-bounds read in exif tag reading
...
This issue was recently introduced in c739023a50 ,
when the restriction that components>0 has been relaxed. We now need
to make sure that any tags that expect at least one component check
that this is the case.
2019-09-19 21:11:57 +02:00
Nikita Popov
85e7668129
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-19 17:21:45 +02:00
Nikita Popov
003c13d7bc
Fix iterable return type optimization
2019-09-19 17:21:00 +02:00
Nikita Popov
6bf5c8508a
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-19 14:20:04 +02:00
Nikita Popov
3e139a4653
Fix exif leak on duplicate copyright tags
2019-09-19 14:19:31 +02:00
Nikita Popov
f53b8268d6
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-19 11:36:09 +02:00
CJDennis
e3255a4f49
Fix typo
...
`sizeof("data")-1` and `sizeof("date")-1` are both 4, so no change in behaviour
2019-09-19 11:36:00 +02:00
Nikita Popov
85b001974a
Remove unstable test output
...
This may be printed in a different order, and we don't care about
it anyway.
2019-09-18 16:36:29 +02:00
Nikita Popov
e11ed02870
Fixed bug #78272
...
Use MAP_JIT only when running under hardened runtime, because MAP_JIT
is incompatible with fork().
The check is based on
https://github.com/mono/mono/commit/f879e35e3ed7496d819bd766deb8be6992d068ed .
2019-09-18 10:41:27 +02:00
Nikita Popov
03efeda538
Backport MAP_JIT fixes from PCRE2 10.33
...
This is intended to fix the primary issue from bug #77260 .
Prior to macOS 10.14 multiple MAP_JIT segments were not permitted,
leading to mmap failures and corresponding "no more memory" errors
on macOS 10.13.
2019-09-18 09:28:54 +02:00
Nikita Popov
409e9ea51d
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-17 17:34:08 +02:00
Nikita Popov
175f4f24ae
Increase timeout in test
2019-09-17 17:33:46 +02:00
Nikita Popov
c5d4c45e7d
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-17 15:42:58 +02:00
fancyweb
e691a98c1f
Fix #76342 : file_get_contents waits twice specified timeout
2019-09-17 15:42:29 +02:00
Nikita Popov
3a2fa489dd
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-17 12:19:39 +02:00
Drakano
252ebce0d7
Add tilde to allowed status/ping path
...
Because of user specific webdirs it should be possible to set a
status/ping path like "/~username/status".
Closes GH-4698.
2019-09-17 12:19:21 +02:00
Nikita Popov
f98684b06c
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-17 12:08:57 +02:00
Tyson Andre
29bced9521
Fix opcache return type for get_headers in zend_func_info
...
https://www.php.net/manual/en/function.get-headers.php#refsect1-function.get-headers-examples
shows that it will return string keys when the second argument is
non-zero. I've verified that this is the case.
This bug was there since the initial commit in c88ffa9a56 .
Closes GH-4702.
2019-09-17 12:08:29 +02:00
Nikita Popov
8a11f1284e
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-16 15:01:05 +02:00
Nikita Popov
2f6efd835d
Fixed bug #78545
...
By using an explicit (double) cast.
2019-09-16 15:00:20 +02:00
Nikita Popov
74876f09c4
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-16 13:02:56 +02:00
Nikita Popov
8873df8e86
Fix leak in SplObjectStorage unserialization
...
The result of php_var_unserialize always needs to be destroyed,
even if the call failed.
2019-09-16 13:02:32 +02:00
Christoph M. Becker
da8aa4a798
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Stick with zend_long for ABI compatibility
2019-09-15 15:13:13 +02:00
Christoph M. Becker
81cefab7b0
Stick with zend_long for ABI compatibility
...
Cf. <https://github.com/php/php-src/pull/4700#issuecomment-531515689 >.
2019-09-15 15:11:25 +02:00
Christoph M. Becker
00ad365125
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78535 : auto_detect_line_endings value not parsed as bool
2019-09-14 18:47:12 +02:00
bugreportuser
fdcca93056
Fix #78535 : auto_detect_line_endings value not parsed as bool
2019-09-14 18:46:09 +02:00
Nikita Popov
df982da587
Fix bug #78525
...
When calling free_result_buffers(), also free field metadata and
restore the mempool state to what it was before any allocations
have been made. Remove the mempool save/restore logic for the
inner result set as this is now handled on a higher level.
2019-09-13 14:37:03 +02:00
Christoph M. Becker
31f617d9bc
Fix exif build
...
As of PHP 7.3.0 the `model` field is removed.
2019-09-12 09:13:27 +02:00
Kalle Sommer Nielsen
f6f981c13c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
NEWS
2019-09-12 06:52:24 +03:00
Kalle Sommer Nielsen
716518373f
NEWS
2019-09-12 06:50:53 +03:00
Kalle Sommer Nielsen
6f0e5a45ff
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #78442 ('Illegal component' on exif_read_data since PHP7)
2019-09-12 06:31:52 +03:00
Kalle Sommer Nielsen
2823e938d4
Fixed bug #78442 ('Illegal component' on exif_read_data since PHP7)
2019-09-12 06:21:39 +03:00
Sara Golemon
e2bdd7b4ab
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Bump for 7.2.24
2019-09-10 13:05:17 -04:00
Sara Golemon
a270eb1911
Bump for 7.2.24
2019-09-10 13:04:01 -04:00
Remi Collet
664b1a3f57
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Raise minimal GCC version, Test with 4.8 is OK With 4.4: error: #pragma GCC diagnostic not allowed inside functions
2019-09-10 16:29:30 +02:00
Remi Collet
c43fc204b1
Raise minimal GCC version,
...
Test with 4.8 is OK
With 4.4: error: #pragma GCC diagnostic not allowed inside functions
2019-09-10 16:28:35 +02:00
Christoph M. Becker
cf31210f29
PHP 7.3.10RC1 has been tagged
2019-09-10 15:11:54 +02:00
Christoph M. Becker
318b92dc12
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Drop regression test
2019-09-10 10:08:07 +02:00
Christoph M. Becker
bca66002f1
Drop regression test
...
The state returned by `sodium_crypto_generichash_init()` has to be
regarded as opaque byte string; neither its size nor its exact
structure are fixed, and actually vary for diffent libsodium versions.
Therefore we drop the test altogether.
2019-09-10 10:07:39 +02:00
Nikita Popov
3f2d5c612e
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-09 17:29:39 +02:00
CHU Zhaowei
1ac6b0251b
Fix bug #72884 isCloneable() on SplFileObject should return false
2019-09-09 17:27:17 +02:00
Christoph M. Becker
73ede6911d
Fix version
...
7.3.10 is next, not 7.3.11.
2019-09-09 15:44:06 +02:00
Christoph M. Becker
af2033b1cd
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78510 : Partially uninitialized buffer returned by sodium_crypto_generichash_init()
2019-09-09 15:31:15 +02:00
Christoph M. Becker
8ead77936e
Fix #78510 : Partially uninitialized buffer returned by sodium_crypto_generichash_init()
...
Backport jedisct1/libsodium.php@28d13bf437 .
2019-09-09 15:30:28 +02:00
Stanislav Malyshev
60cfa5781a
fix version
2019-09-05 09:54:43 -07:00
Christoph M. Becker
b90cd91eba
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #41997 : SP call yields additional empty result set
2019-09-03 13:31:24 +02:00
Christoph M. Becker
41a4379cb4
Fix #41997 : SP call yields additional empty result set
...
When stored procedures are called, the "final result set is a status
result that includes no result set". Calling `::nextRowset()` on the
actual last result set should return FALSE, since there is actually no
further result set to be processed.
2019-09-03 13:29:30 +02:00
Nikita Popov
d66e0f165d
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-03 09:23:55 +02:00
Tyson Andre
9c3b7ccda5
Fix opcache return type for hash_update_stream
...
It can return false if the resource type is wrong.
```
php > var_export(hash_update_stream(hash_init('md5'),
imagecreate(1,1)));
Warning: hash_update_stream(): supplied resource is not a valid stream
resource in php shell code on line 1
false
```
The return types were initially added in
c88ffa9a56
2019-09-03 09:23:39 +02:00
Christoph M. Becker
f712925500
Update NEWS
2019-09-02 15:21:20 +02:00
Christoph M. Becker
86ddc469f9
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #76577 : outdated documentation concerning track_errors
2019-09-02 15:05:57 +02:00
Christoph M. Becker
cd63908ab8
Fix #76577 : outdated documentation concerning track_errors
2019-09-02 15:05:01 +02:00
Nikita Popov
7659182632
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-02 09:36:58 +02:00
Nikita Popov
5a0980f1d9
Fix pkg-config version constraint for ICU
...
On PHP 7.2 our minimum ICU version is 4.0, not 40.
2019-09-02 09:36:20 +02:00
Nikita Popov
e9cfd94b8e
Merge branch 'PHP-7.2' into PHP-7.3
2019-08-30 16:07:43 +02:00
Sergei Turchanov
8f564e5308
Fixed bug #78469
...
fcgi_accept_request function is supposed to call a FastCGI implementation's
on_accept hook when entering an "accepting" stage (that is right before
calling "accept"). This hook implementation (fpm_request_accepting) updates
a worker state to an "accepting" state which is effectively an "Idle" state,
and updates counters on the scoreboard of the corresponding pool (idle++,
active--).
But this is not done when listening for client connections on a named pipe on
Windows platform. In that case a combination of
ConnectNamedPipe/WaitForSingleObject is used (to be able to catch in_shutdown
as far as I understand), but it is nonetheless functionally equivalent to
"accept" call. Also by not calling on_hook neither a worker's state is updated
to "accepting" state nor scoreboard counters are updated.
2019-08-30 16:06:50 +02:00
Nikita Popov
34edd4aa2a
Merge branch 'PHP-7.2' into PHP-7.3
2019-08-29 12:33:04 +02:00
Nikita Popov
ed749edd47
Fix use-after-free of immediately invoked closure with extra args
2019-08-29 12:32:03 +02:00
Christoph M. Becker
195b8ae779
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78473 : odbc_close() closes arbitrary resources
2019-08-28 17:57:10 +02:00
Christoph M. Becker
b557265816
Fix #78473 : odbc_close() closes arbitrary resources
...
We have to bail out, if an invalid resource is given. For consistency
with the other `zend_fetch_resource(2)` calls, we return `FALSE`.
2019-08-28 17:55:15 +02:00
Joe Watkins
fadd7f0f1e
bump versions after release
2019-08-28 09:08:23 +02:00
Joe Watkins
481520d381
set versions for release
2019-08-28 09:06:38 +02:00
Stanislav Malyshev
5748cec3ee
Upgrade oniguruma lib to 6.9.3
2019-08-27 23:40:46 -07:00
Christoph M. Becker
e2b60796f0
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update SDK version for AppVeyor
2019-08-27 13:35:05 +02:00
Christoph M. Becker
88ab374627
Update SDK version for AppVeyor
2019-08-27 13:34:35 +02:00
Tsuyoshi Sadakata
ffcf57fa18
Fix bug #78334 (fpm log prefix message includes wrong stdout/stderr notation)
2019-08-26 18:05:11 +01:00
Nikita Popov
461db52400
Merge branch 'PHP-7.2' into PHP-7.3
2019-08-26 17:52:37 +02:00
Nikita Popov
589542f50c
Remove properties HT from nested GC data
...
The properties HT may be a GC root itself, so we need to remove it.
I'm not sure this issue actually applies to PHP 7.2, but committing
it there to be safe. As seen from the test case, the handling here
is rather buggy on 7.2.
2019-08-26 17:49:37 +02:00
Nikita Popov
e4ecadcb62
Merge branch 'PHP-7.2' into PHP-7.3
2019-08-26 11:13:49 +02:00
Tyson Andre
1e82a2d659
Also fix signature for passthru
...
Backported from a1a8d14485
https://www.php.net/manual/en/function.passthru.php#refsect1-function.passthru-returnvalues
`passthru()` is false with invalid args
`passthru('command')` is null.
2019-08-26 11:13:26 +02:00
Tyson Andre
f5bccc0eb5
Fix opcache optimizer info for time_nanosleep
...
This can also return an array. See
https://www.php.net/manual/en/function.time-nanosleep.php#refsect1-function.time-nanosleep-returnvalues
> If the delay was interrupted by a signal, an associative array will be
returned with the components:
>
> - seconds - number of seconds remaining in the delay
> - nanoseconds - number of nanoseconds remaining in the delay
Sending a SIGUSR1 to the below program would trigger this behavior.
```
pcntl_signal(\SIGUSR1, function ($signo, $signinfo) {
echo "Handling a signal $signo\n";
});
echo "Sleeping for 100 seconds\n";
var_export(time_nanosleep(100, 0));
```
The incomplete signature existed since c88ffa9a5 .
No phpt tests existed for time_nanosleep returning an array
2019-08-26 11:13:26 +02:00
Nikita Popov
a26f63213d
Merge branch 'PHP-7.2' into PHP-7.3
2019-08-26 10:26:49 +02:00
Nikita Popov
16d35eb643
Fix overflow in memory limit checks
...
Due to overflows in the memory limit checks, we were missing cases
where the allocation size was close to the address space size, and
caused an OOM condition rather than a memory limit error.
2019-08-26 10:25:30 +02:00
Stanislav Malyshev
d1646e328a
Fix test
...
Not sure why offset changed... probably different PCRE version calculates
them in different way.
2019-08-25 20:06:02 -07:00
Stanislav Malyshev
5d25ebb0dd
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #75457 : heap-use-after-free in php7.0.25
2019-08-25 19:21:04 -07:00
Stanislav Malyshev
4b4a656d9e
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #75457 : heap-use-after-free in php7.0.25
2019-08-25 19:20:59 -07:00
Christoph M. Becker
7bf1f9d561
Fix #75457 : heap-use-after-free in php7.0.25
...
Backport <https://vcs.pcre.org/pcre?view=revision&revision=1638 >.
2019-08-25 19:19:50 -07:00
Stanislav Malyshev
d3f2cfe20a
Update Oniguruma to 6.9.1
2019-08-25 00:02:32 -07:00
Stanislav Malyshev
5704eca6f7
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix CVE-2019-13224: don't allow different encodings for onig_new_deluxe()
set version for release
2019-08-24 23:16:09 -07:00
Stanislav Malyshev
087cb7bab2
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix CVE-2019-13224: don't allow different encodings for onig_new_deluxe()
set version for release
2019-08-24 23:15:36 -07:00
Stanislav Malyshev
1258303e66
Fix CVE-2019-13224: don't allow different encodings for onig_new_deluxe()
...
Backport from https://github.com/kkos/oniguruma/commit/0f7f61ed1b7b697e283e37bd2d731d0bd57adb55
2019-08-24 23:11:45 -07:00
Christoph M. Becker
03c7749dc8
Fix #77812 : Interactive mode does not support PHP 7.3-style heredoc
...
As of PHP 7.3.0, the rules regarding the heredoc and nowdoc closing
identifier have been relaxed. While formerly, the closing identifier
was required to be placed at the beginning of a line and to be
immediately followed by (a semicolon and) a line break, it may now be
preceeded by whitespace, and may be followed by any non-word character.
We adjust the recognition logic respectively.
2019-08-23 13:59:10 +02:00
Christoph M. Becker
c9d31941e4
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Suppress deprecation warning on IDNA2003 ICU methods for clang
2019-08-23 12:21:57 +02:00
Christoph M. Becker
ff7029b65b
Suppress deprecation warning on IDNA2003 ICU methods for clang
2019-08-23 12:18:58 +02:00
Christoph M. Becker
310708845f
Fix #78441 : Parse error due to heredoc identifier followed by digit
...
Since digits are allowed for identifiers, we have to cater to them as
well.
2019-08-21 22:51:51 +02:00
Remi Collet
08aafbe93e
ensure proper settings for test
2019-08-20 16:30:52 +02:00
Christoph M. Becker
963b40c9a8
Don't use C++ style comments
...
Cf. <https://github.com/php/php-src/blob/f45b61b8988b5b2d80dd4a1df7edd04282cf319a/CODING_STANDARDS.md#syntax-and-indentation >
cc @mcmic
2019-08-20 13:58:22 +02:00
Christoph M. Becker
3771d66142
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
fix the problem for connect_attr, set db condition, and add a new attribute _server_host
2019-08-20 13:33:45 +02:00
Qianqian Bu
cdf16c010a
fix the problem for connect_attr, set db condition, and add a new attribute _server_host
2019-08-20 13:31:58 +02:00
Christoph M. Becker
5e19f1d458
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78220 : Can't access OneDrive folder
2019-08-19 19:57:22 +02:00
Christoph M. Becker
81f52158b4
Fix #78220 : Can't access OneDrive folder
...
As of Windows 1903, when the OneDrive on-demand feature is enabled, the
OneDrive folder is reported as reparse point by `FindFirstFile()`, but
trying to get information about the reparse point using
`DeviceIoControl()` fails with `ERROR_NOT_A_REPARSE_POINT`. We work
around this problem by falling back to `GetFileInformationByHandle()`
if that happens, but only if the reparse point is reported as cloud
reparse point, and only if PHP is running on Windows 1903 or later.
The patch has been developed in collaboration with ab@php.net .
We should keep an eye on the somewhat quirky OneDrive behavior, since
it might change again in a future Windows release.
2019-08-19 19:55:35 +02:00
Nikita Popov
be7e819068
Fixed bug #77922
...
In PHP 7.3 shadow properties are no longer duplicated. Make sure we
only release them if the property was defined on the parent class,
which means that it changed from private->shadow, which is where
duplication does happen.
2019-08-17 10:58:54 +02:00
Sara Golemon
a192499d2a
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Suppress deprecation warning on IDNA2003 ICU methods
2019-08-16 12:41:02 -04:00
Sara Golemon
725f439778
Suppress deprecation warning on IDNA2003 ICU methods
2019-08-16 12:40:20 -04:00
Sara Golemon
9b9814fa77
Revert "Move to non deprecated API on suitable ICU versions"
...
This reverts commit 13a2f2d041 .
The APIs used by this commit aren't entirely equivalent to the original ones.
2019-08-16 11:39:05 -04:00
Christoph M. Becker
4966647443
Update NEWS
...
This fix has been cherry-picked into PHP-7.3.9.
2019-08-15 15:28:52 +02:00
Christoph M. Becker
8fb297cd82
Update credits_ext.h
2019-08-14 19:24:16 +02:00
Nikita Popov
1166359acb
Merge branch 'PHP-7.2' into PHP-7.3
2019-08-14 17:51:35 +02:00
Nikita Popov
fcabe7e5e4
Fixed bug #78412
...
$this should only be included in the generator GC buffer, if it
will be released on destruction.
2019-08-14 17:50:58 +02:00
Sara Golemon
e5da73d1f2
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Bump for 7.2.23
2019-08-13 19:34:12 -04:00
Sara Golemon
4b64d47c99
Bump for 7.2.23
2019-08-13 19:32:12 -04:00
Christoph M. Becker
5536105b67
Next will be 7.3.10
2019-08-13 23:57:48 +02:00
Christoph M. Becker
fe7997912d
Bump version numbers
...
This should have been done four weeks ago already.
2019-08-13 23:23:43 +02:00
Nikita Popov
a33361a37c
Merge branch 'PHP-7.2' into PHP-7.3
2019-08-13 11:22:41 +02:00
Nikita Popov
4eeb41d1ea
Fixed bug #77191
2019-08-13 11:19:58 +02:00
Nikita Popov
7ba54b9822
Merge branch 'PHP-7.2' into PHP-7.3
2019-08-13 09:54:26 +02:00
Nikita Popov
18f2918a0f
Don't destroy properties array with unset GC type
...
As the properties array can also be a GC root, it might have
already been destroyed.
2019-08-13 09:53:25 +02:00
Nikita Popov
4cd563d07e
Merge branch 'PHP-7.2' into PHP-7.3
2019-08-12 17:17:30 +02:00
Nikita Popov
f3fdf570b3
Intern alias old_name early
...
This is likely going to end up interned lateron at some point
when the new_name is referenced somewhere. However, it may be
that there are some uses that do not get interned before that.
In this case we will intern a string that already have zval
users, without updating the refcounted flag on those zvals.
In particular this can happen with something like [Foo::class],
where Foo is an imported symbol. The string it resolves to won't
get interned right away, but may be interned later.
use Foo as Bar;
$x = [Bar::class];
var_dump(Bar::X);
debug_zval_dump($x); // Will show negative refcount
class Foo {
const X = 1;
}
However, this doesn't really fix the root cause, there are probably
other situations where something similar can occur.
2019-08-12 17:12:28 +02:00
Derick Rethans
7aa1dd3ba1
Updated to version 2019.2 (2019b)
2019-08-11 16:05:58 +01:00
Dmitry Stogov
722a44d515
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed handling of references in nested data of objects with destructor
2019-08-09 17:47:06 +03:00
Dmitry Stogov
9b43e29d9b
Fixed handling of references in nested data of objects with destructor
2019-08-09 17:43:50 +03:00
Dmitry Stogov
22d23e08c9
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed second part of the bug #78379 (Cast to object confuses GC, causes crash)
2019-08-09 15:58:16 +03:00
Dmitry Stogov
6b1cc1252e
Fixed second part of the bug #78379 (Cast to object confuses GC, causes crash)
2019-08-09 15:42:39 +03:00
Dmitry Stogov
21a0a28fd0
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Added asserts to catch GC errors when refcount goes below zero.
2019-08-09 13:39:59 +03:00
Dmitry Stogov
2e2cd65d73
Added asserts to catch GC errors when refcount goes below zero.
2019-08-09 13:37:23 +03:00
Matteo Beccati
5ef1a30aaf
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Skip test when SIGKILL is not defined
2019-08-09 10:32:56 +02:00
Matteo Beccati
796efd849e
Skip test when SIGKILL is not defined
2019-08-09 10:32:15 +02:00
Nikita Popov
38f10ff5cf
Fix GC tracing
...
Due to the GC changes in 7.3 we stopped tracing most of the
interesting coloring changes...
2019-08-08 10:54:18 +02:00
Dmitry Stogov
bff2743caf
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #78379 (Cast to object confuses GC, causes crash)
2019-08-08 10:05:59 +03:00
Dmitry Stogov
358379be22
Fixed bug #78379 (Cast to object confuses GC, causes crash)
2019-08-08 10:00:39 +03:00
Christoph M. Becker
9ea39d15ab
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78282 : atime and mtime mismatch
2019-08-06 17:28:11 +02:00
Christoph M. Becker
954543cec6
Fix #78282 : atime and mtime mismatch
...
The fix for bug #78241 assumed that `time_t` would always be 64bit, but
actually is 32bit for x86. We therefore enforce 64bit arithmetic to
avoid wrapping.
(cherry picked from commit bf242d58e7 )
2019-08-06 17:25:54 +02:00
Christoph M. Becker
a87ef5e3dd
Fix #78346 : strip_tags no longer handling nested php tags
...
When the strip tags state machine has been flattened, an if statement
has mistakenly been treated as else if. We fix this, and also simplify
a bit right away.
2019-08-02 17:03:20 +02:00
Christoph M. Becker
81efd489db
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78179 : MariaDB server version incorrectly detected
2019-08-02 16:44:15 +02:00
Christoph M. Becker
f9f4a68368
Fix #78179 : MariaDB server version incorrectly detected
...
As of MariaDB 10.0.2, the server reports a fake version number as work-
around for replication issues[1]. We apply the same "fix" as in the
MariaDB client to cater to this.
[1] <https://github.com/MariaDB/server/commit/c50ee6c23dbeb090963580754bec2f0a96ac0557#diff-5b45fa673c88c06a9651c7906364f592 >
2019-08-02 16:42:49 +02:00
Nikita Popov
d89157cd67
Add test for bug #78363
2019-08-02 10:37:44 +02:00
Nikita Popov
e1934f8515
Merge branch 'PHP-7.2' into PHP-7.3
2019-08-02 10:35:48 +02:00
Nikita Popov
85e8ccd55e
Fixed bug #78363
2019-08-02 10:35:24 +02:00
Christoph M. Becker
b419b24ead
Remove upgrade-pcre.php script
...
This script has not been updated for PCRE2, and it's mostly useless
anyway. Therefore we remove it altogether.
2019-08-01 10:49:05 +02:00
Christoph M. Becker
8af14024c2
Fix 78213: Empty row pocket
...
We have to ensure that we don't create an arena which is smaller than
its header, regardless of the configured alignment.
2019-07-31 18:05:40 +02:00
Joe Watkins
1c01a1579e
set version for release
2019-07-31 08:21:39 +02:00
Christoph M. Becker
ef439abd46
Add security related NEWS entries [ci skip]
2019-07-30 09:49:39 +02:00
Remi Collet
6ea13baaf1
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
add security NEW entries + reorder [ci skip]
2019-07-30 09:27:06 +02:00
Remi Collet
b29ecec4ef
add security NEW entries + reorder [ci skip]
2019-07-30 09:26:50 +02:00
Christoph M. Becker
8947fd9e9f
Fix #78338 : Array cross-border reading in PCRE
...
We backport r1092 from pcre2.
2019-07-29 14:49:33 -07:00
Stanislav Malyshev
d69894734d
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77919 : Potential UAF in Phar RSHUTDOWN
Update NEWS
Fix bug #78256 (heap-buffer-overflow on exif_process_user_comment)
Fix bug #78222 (heap-buffer-overflow on exif_scan_thumbnail)
2019-07-29 13:20:44 -07:00
Stanislav Malyshev
284fb08fdc
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #77919 : Potential UAF in Phar RSHUTDOWN
Update NEWS
Fix bug #78256 (heap-buffer-overflow on exif_process_user_comment)
Fix bug #78222 (heap-buffer-overflow on exif_scan_thumbnail)
2019-07-29 13:19:16 -07:00
Christoph M. Becker
cd1101e8c8
Fix #77919 : Potential UAF in Phar RSHUTDOWN
...
We have to properly clean up in case phar_flush() is failing.
We also make the expectation of the respective test case less liberal
to avoid missing such bugs in the future.
2019-07-29 13:18:27 -07:00
Stanislav Malyshev
42e8b85d94
Update NEWS
2019-07-29 13:16:53 -07:00
Nikita Popov
44fe025c28
Merge branch 'PHP-7.2' into PHP-7.3
2019-07-29 17:34:16 +02:00
Albert Casademont
dc7aa22b18
Fix bug #78326
...
Similar to what fread() does, truncate the stream_get_contents()
result if the original buffer was way too large.
2019-07-29 17:33:57 +02:00
Nikita Popov
bbed5564eb
Merge branch 'PHP-7.2' into PHP-7.3
2019-07-29 16:57:57 +02:00
Nikita Popov
38f1288b64
Fix Zend signals unblocking
...
There are a few parts here:
* opcache should not be blocking signals while invoking compile_file,
otherwise signals may remain blocked on a compile error. While at
it, also protect SHM memory during compile_file.
* We should deactivate Zend signals at the end of the request, to make
sure that we gracefully recover from a missing unblock and signals
don't remain blocked forever.
* We don't use a critical section in deactivation, because it should
not be necessary. Additionally we want to clean up the signal queue,
if it is non-empty.
* Enable SIGG(check) in debug builds so we notice issues in the future.
2019-07-29 15:17:32 +02:00
Christoph M. Becker
76683ea999
Update NEWS [ci skip]
...
The fix has been cherry-picked into PHP-7.3.8, so the bug will be fixed
already there.
2019-07-29 14:48:23 +02:00
Nikita Popov
8e63bb5e46
Fixed bug #78341
...
The smart branch logic assumed b->start refers to the old offsets,
while b->start was already adjusted to the new offsets at this
point. Delay the change until later.
2019-07-29 13:02:01 +02:00
Nikita Popov
552ce9c763
Merge branch 'PHP-7.2' into PHP-7.3
2019-07-29 11:27:34 +02:00
Nikita Popov
68fd435ba8
Fixed bug #78333
...
Don't dereference float/double values at unknown address, instead
memcpy it into an aligned stack slot and dereference that.
2019-07-29 11:27:21 +02:00
Nikita Popov
727929765b
Merge branch 'PHP-7.2' into PHP-7.3
2019-07-29 11:26:09 +02:00
Nikita Popov
d142dfc93d
Fixed bug #78333
...
Don't dereference float/double values at unknown address, instead
memcpy it into an aligned stack slot and dereference that.
2019-07-29 11:25:27 +02:00
Stanislav Malyshev
aeb6d13185
Fix bug #78256 (heap-buffer-overflow on exif_process_user_comment)
2019-07-29 00:53:37 -07:00
Stanislav Malyshev
dea2989ab8
Fix bug #78222 (heap-buffer-overflow on exif_scan_thumbnail)
2019-07-29 00:53:28 -07:00
Christoph M. Becker
585131f901
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78342 : Bus error in configure test for iconv //IGNORE
2019-07-29 08:50:39 +02:00
Christoph M. Becker
30eb4b3563
Fix #78342 : Bus error in configure test for iconv //IGNORE
...
We have to check the return value of iconv_open() for error, to avoid
that and potentially other undesired behavior of iconv().
2019-07-29 08:48:13 +02:00
Levi Morrison
c624a7fe43
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Remove .post files only for passing tests
2019-07-25 09:49:18 -06:00
Levi Morrison
5649267b25
Remove .post files only for passing tests
...
This allows the sh script for failing tests with --POST-- to work
2019-07-25 09:48:39 -06:00
Peter Kokot
b42a13b08a
Update NEWS
2019-07-23 02:13:36 +02:00
Peter Kokot
9e2ac14702
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update NEWS
2019-07-23 02:13:12 +02:00
Peter Kokot
8f384bea93
Update NEWS
2019-07-23 02:13:00 +02:00
Nikita Popov
b59a9381b9
Remove test for bug #77185
...
Seems to be very unreliable in CI.
2019-07-22 12:40:26 +02:00
Nikita Popov
5e4dbce586
Reduce number of workers in test
...
4 seems to be enough to reliably reproduce the issue. Let's see
if this works better in CI.
2019-07-22 11:18:38 +02:00
Maksim Nikulin
bdf24f8d6d
Prevent use after free in fpm_event_epoll_wait
...
epoll event backend does not guarantee that child input/output events
are reported before SIGCHILD due to finished worker. While a bunch of
events received by epoll is being processed, child-related structures
may be removed before dispatching of an I/O event for the same child.
The result may be attempt to access to memory region allocated for
another purpose, segfault of the master process, and unavailable web
sites.
Postpone processing of SIGCHILD events till other events in the same
bunch are processed.
Fix Bug #62418 php-fpm master process crashes
Fix Bug #65398 Race condition between SIGCHLD and child stdout/stderr event leads to segfault
Fix Bug #75112 php-fpm crashing, hard to reproduce
Fix Bug #77114 php-fpm master segfaults in fpm_event_epoll_wait/fpm_event_fire
Fix Bug #77185 Use-after-free in FPM master event handling
2019-07-22 10:32:58 +02:00
George Wang
82f35ab089
Merge branch 'PHP-7.2' into PHP-7.3
2019-07-21 00:01:06 -04:00
George Wang
eb7e45f662
Checked in LiteSpeed SAPI 7.5, addressed two main problems in "clean shutdown" introduced in 7.4.3,
...
1. falls in an infinite loop because PHP engine's inconsistent state, now override the ITIMER_PROF to 0.1 second, clean shutdown must finish before that.
2. generate too much error log, we completely disable "error_reporting" before calling php_request_shutdown().
2019-07-20 23:59:43 -04:00
Nikita Popov
4a9f78f9d7
Merge branch 'PHP-7.2' into PHP-7.3
2019-07-18 14:41:35 +02:00
Abyr Valg
c8c183eb62
Fixed bug #77946
...
Save multi_info_read() result into easy handle.
2019-07-18 14:40:47 +02:00
Nikita Popov
79efd55fc3
Merge branch 'PHP-7.2' into PHP-7.3
2019-07-17 15:59:14 +02:00
Nikita Popov
b864abfe23
Fixed bug #69100
2019-07-17 15:58:29 +02:00
George Peter Banyard
e7e66d5275
Convert short tag to standard tag in Zend test file
...
Closes GH-4389.
(cherry picked from commit e6c2b28865 )
2019-07-16 15:27:50 +02:00
Christoph M. Becker
956ecc2ce5
Update NEWS [ci skip]
2019-07-16 13:44:13 +02:00
Remi Collet
344d01bee3
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
move NEWS entry [ci skip]
2019-07-16 13:00:30 +02:00
Remi Collet
bd0514913b
move NEWS entry [ci skip]
2019-07-16 13:00:13 +02:00
Nikita Popov
eea9d61763
Merge branch 'PHP-7.2' into PHP-7.3
2019-07-16 11:10:51 +02:00
Nikita Popov
8a19fe29de
Fixed bug #78297
2019-07-16 11:09:17 +02:00
Remi Collet
bf1ace7dd3
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
next is 7.2.22
2019-07-16 10:39:03 +02:00
Remi Collet
c9037421ac
next is 7.2.22
2019-07-16 10:38:20 +02:00
Dmitry Stogov
c570980175
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed incorrect specialization (missed IS_INDIRECT handling)
2019-07-16 01:52:11 +03:00
Dmitry Stogov
9ccf3fb996
Fixed incorrect specialization (missed IS_INDIRECT handling)
2019-07-16 01:50:10 +03:00
Nikita Popov
2d737a1e4b
Merge branch 'PHP-7.2' into PHP-7.3
2019-07-15 15:20:15 +02:00
Nikita Popov
88ffe05797
Fix bug #77124
...
This is a backport of 6fcae63f61
to PHP 7.2.
2019-07-15 15:19:31 +02:00
Remi Collet
ad48464ec2
typo [ci skip]
2019-07-15 14:17:13 +02:00
Remi Collet
590d8f8263
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78269 password_hash uses weak options for argon2
2019-07-15 14:11:38 +02:00
Remi Collet
a7ff3a6483
Fix #78269 password_hash uses weak options for argon2
2019-07-15 14:11:30 +02:00
Remi Collet
eab0079c90
Fix #78269 password_hash uses weak options for argon2
2019-07-15 14:10:38 +02:00
Nikita Popov
193f28c7d5
Fixed bug #78010
...
Prevent the gc_info from becoming all zero for a registered root
by setting the top bit to one for compressed root addresses.
2019-07-15 12:00:30 +02:00
Nikita Popov
3eb057c4a7
Merge branch 'PHP-7.2' into PHP-7.3
2019-07-15 10:23:51 +02:00
Andrew Collington
768ad70f70
Fix bug #78291 Missing opcache directives
...
New opcache directives have been added recently which are returned
if using `ini_get_all('zend opcache')` but are not listed in the
directives if using `opcache_get_configuration()`. This fix adds
those missing directives as well as if `opcache.mmap_base` is used
instead of `opcache.lockfile_path`. Also adds a test to ensure the
directives match with both methods of fetching.
2019-07-15 10:22:47 +02:00
Nikita Popov
3f73916f10
Merge branch 'PHP-7.2' into PHP-7.3
2019-07-12 16:51:47 +02:00
Nikita Popov
a7de2af46c
Use TRY_ADDREF/TRY_DELREF in soap
...
The DELREF part is a possible fix for bug #78278 , the ADDREF part
is a drive-by fix.
2019-07-12 16:50:43 +02:00
Nikita Popov
9d141f9889
Merge branch 'PHP-7.2' into PHP-7.3
2019-07-12 16:30:33 +02:00
Nikita Popov
4a91f66b8f
Fixed bug #78279
...
Even if we don't initialize the callback on every request, we
should still reset our globals to default values...
2019-07-12 16:29:18 +02:00
Christoph M. Becker
fa65f5ecf5
Fix #78212 : Segfault in built-in webserver
...
Since syslog's ident and facility parameters have been added to
config[1], vsyslog() segfaults on Windows, if openlog() has not been
called before. We bring back the removed lines to fix this.
[1] <http://git.php.net/?p=php-src.git;a=commit;h=2475337bd8a0fad0dac03db3f5e7e9d331d53653 >
2019-07-11 13:09:54 +02:00
Nikita Popov
e7a83ec8df
Fix bug #78271
...
When cleaning nops in the dfa pass, we were always keeping the
smart branch inhibiting nop that occurs directly before the jump
instruction. However, as we skip unreachable blocks entirely, it
may happen that we need to keep a nop that occurs further back,
prior to the unreachable blocks. Account for that case now.
We should really do something about the smart branch situation,
this is very fragile...
2019-07-10 17:25:40 +02:00
Nikita Popov
3fa9f9cfae
Add CONFLICTS to recognized sections
...
It does nothing on 7.3, but this makes it easier to write tests in
3rd party extensions.
2019-07-10 13:09:06 +02:00
Nikita Popov
825f47564a
Merge branch 'PHP-7.2' into PHP-7.3
2019-07-09 11:05:18 +02:00
Nikita Popov
22ed362810
Revert "Fixed bug #76980 "
...
This reverts commit 35353dc49a .
This changes causes issues for Symfony, see
https://github.com/symfony/symfony/issues/32395 . I'm reverting it
from PHP 7.2 and PHP 7.3 and only leaving it in PHP 7.4.
2019-07-09 11:04:16 +02:00
Christoph M. Becker
7404d756e9
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Upgrade to SQLite 3.28.0
2019-07-09 10:04:41 +02:00
Christoph M. Becker
40f7533cc1
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Upgrade to SQLite 3.28.0
2019-07-09 10:02:47 +02:00
Christoph M. Becker
e944ae6b2a
Upgrade to SQLite 3.28.0
...
Over the years, multiple security vulnerabilities[1] have been found
and fixed in SQLite3, so it makes sense to update our bundled libsqlite
to the latest available version.
[1] <https://www.cvedetails.com/vulnerability-list/vendor_id-9237/Sqlite.html >
2019-07-09 09:59:46 +02:00
Peter Kokot
4fcf8e9385
Update NEWS [ci skip]
2019-07-08 18:48:50 +02:00
Peter Kokot
ed4aa4b624
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update NEWS [ci skip]
2019-07-08 18:48:27 +02:00
Peter Kokot
f81be1aff6
Update NEWS [ci skip]
2019-07-08 18:47:55 +02:00
Nikita Popov
e3c701ea38
Merge branch 'PHP-7.2' into PHP-7.3
2019-07-05 12:07:10 +02:00
Nikita Popov
5846e85283
Backport fe_reset_rw case
2019-07-05 12:06:52 +02:00
Nikita Popov
920283ff2b
Merge branch 'PHP-7.2' into PHP-7.3
2019-07-05 11:40:45 +02:00
Nikita Popov
c353f17d42
Fix inference for compound object op on dim
2019-07-05 11:39:42 +02:00
George Wang
3ec8776940
Merge branch 'PHP-7.2' into PHP-7.3
2019-07-04 12:04:08 -04:00
George Wang
32af676bd9
Updated to LiteSpeed SAPI V7.4.3
...
Increased response header count limit from 100 to 1000.
Added crash handler to cleanly shutdown PHP request.
Added CloudLinux mod_lsapi mode
Fixed bug #76058
2019-07-04 12:03:21 -04:00
Christoph M. Becker
807c755670
[ci skip] Remove NEWS entry
...
This commit already was contained in PHP 7.3.7, but doesn't need a NEWS
entry, since the regression had only been introduced with PHP 7.3.7RC1.
2019-07-04 14:50:23 +02:00
Fabien Villepinte
cb1237a3ed
Fix typo in NEWS [skip ci]
2019-07-04 14:43:45 +02:00
Nikita Popov
af3c854074
Merge branch 'PHP-7.2' into PHP-7.3
2019-07-03 12:36:50 +02:00
Nikita Popov
0e48e35e04
Fixed bug #78231
2019-07-03 12:36:06 +02:00
Nikita Popov
4892bbc167
Fixed bug #78230
2019-07-03 10:20:07 +02:00
Christoph M. Becker
5e5b7cb4d4
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78241 : touch() does not handle dates after 2038 in PHP 64-bit
2019-07-03 10:02:22 +02:00
Christoph M. Becker
44c8b7414c
Fix #78241 : touch() does not handle dates after 2038 in PHP 64-bit
...
`time_t` defaults to `_time64` (which is 64bit signed) even on x86, but
`Int32x32To64()` truncates it to signed 32bit. We replace the macro
with the "manual" calculation.
2019-07-03 09:59:17 +02:00
Nikita Popov
9ad09ce905
Merge branch 'PHP-7.2' into PHP-7.3
2019-07-02 16:12:24 +02:00
Nikita Popov
32c68428a9
Backport test fix
...
Closes GH-3816.
2019-07-02 16:11:54 +02:00
Christoph M. Becker
41949bb71e
Fix NEWS
...
Bug #78185 fixed a regression in PHP 7.3.7RC2, so should not be listed
here.
2019-07-02 15:08:10 +02:00
Nikita Popov
7174c44557
Merge branch 'PHP-7.2' into PHP-7.3
2019-07-02 12:28:37 +02:00
Alex Scott
a4acff3e21
Fix bug #78138 : opcache.validate_permission incorrectly works with PHAR files
...
opcache incorrectly handles PHAR files when opcache.validate_permission
option enabled, because it calls
access("phar://path-to/file.phar/path/inside.php", R_OK);
rather than
access("path-to/file.phar", R_OK)
2019-07-02 12:25:50 +02:00
Christoph M. Becker
3e25ddb07b
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Add missing SKIPIFs
2019-07-01 18:12:28 +02:00
Christoph M. Becker
57688ad7bf
Add missing SKIPIFs
...
All these tests are meant to run with OPcache available, and some will
even fail inevitably without it, so we add OPcache as SKIPIF
requirement.
2019-07-01 18:11:13 +02:00
Christoph M. Becker
99e6c701e6
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Add missing SKIPIFs
2019-07-01 17:22:55 +02:00
Christoph M. Becker
75bc3446f8
Add missing SKIPIFs
...
All these tests are meant to run with OPcache available, and some will
even fail inevitably without it, so we add OPcache as SKIPIF
requirement.
2019-07-01 17:21:16 +02:00
Christoph M. Becker
d714be0f57
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix brittle test
2019-07-01 16:43:47 +02:00
Christoph M. Becker
be559e6c37
Fix brittle test
...
This test is easily tripped by former test runs with other PHP
versions. To avoid such false positives, we check that there is at
least one respective OPcache file, and that all found OPcache user ID
folders have exactly 32 hexadecimal digits.
2019-07-01 16:42:55 +02:00
Peter Kokot
b039a4115f
Update NEWS [ci skip]
2019-07-01 02:54:42 +02:00
Peter Kokot
624488b5e8
Fix bug #78197 : PCRE2 version check
...
When external PCRE library version is of format ##.##-RC# the check
failed.
2019-07-01 02:42:29 +02:00
Derick Rethans
cc3fe3bd30
Fixed tests due to changed timezone data
2019-06-30 15:50:38 +01:00
Derick Rethans
aae5907cb7
Update timelib to 2018.02
2019-06-30 15:45:13 +01:00
Anatol Belski
07cdf0109f
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update NEWS [ci skip]
2019-06-29 17:40:14 +02:00
Anatol Belski
a149f9f3c0
Update NEWS [ci skip]
2019-06-29 17:39:45 +02:00
Anatol Belski
b926690947
Fix typo
2019-06-29 13:30:35 +02:00
Joshua Westerheide
6cdeedb8de
Add tests from fix #78183 from PHP-7.2
2019-06-29 13:29:53 +02:00
Anatol Belski
0a31836bed
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78183 : finfo_file shows wrong mime-type for .tga file
2019-06-29 13:29:41 +02:00
Joshua Westerheide
855bbc88c9
Fix #78183 : finfo_file shows wrong mime-type for .tga file
...
Due to a bug in the underlying libmagic 5.31, .tga images returned mime type "image/x-tgaimage/x-tga".
2019-06-29 13:24:52 +02:00
Nikita Popov
19d0a51533
Merge branch 'PHP-7.2' into PHP-7.3
2019-06-28 16:09:09 +02:00
sunnyeo
f7327b6244
Fix bugs in AST printer
...
Closes GH-4324.
2019-06-28 16:08:44 +02:00
Christoph M. Becker
646debaf38
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug #78192 PDO SQLite SegFault when reuse statement after schema has changed
2019-06-28 12:36:55 +02:00
Vincent
05c00a832c
Fix bug #78192 PDO SQLite SegFault when reuse statement after schema has changed
...
Reset stmt->columns when column count changed on new execution of prepared statement
2019-06-28 12:36:02 +02:00
Christoph M. Becker
801ab18ea7
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Remove stream_socket_sendto.phpt
2019-06-26 17:01:29 +02:00
Nikita Popov
7d28a24c66
Remove stream_socket_sendto.phpt
...
Fails for me locally due to different number of warnings with
different messages. Rather than adding more wildcards I'm dropping
this test entirely, as it doesn't seem to test anything particularly
useful.
(cherry picked from commit 84333cad67 )
2019-06-26 16:58:37 +02:00
Christoph M. Becker
18bba63f39
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78202 : Opcache stats for cache hits are capped at 32bit NUM
2019-06-25 13:04:28 +02:00
Christoph M. Becker
4366f22dfc
Fix #78202 : Opcache stats for cache hits are capped at 32bit NUM
...
We use the proper format specifiers now.
2019-06-25 13:00:28 +02:00
Andrey Hristov
8326f95fe3
Merge branch 'PHP-7.2' into PHP-7.3
2019-06-21 16:32:13 +03:00
Andrey Hristov
102c64e827
Add explicit cast to uint32_t.
...
It works even without it but explicit stuff is better. The compiler probably converts the 16-bit
uint16_t to uint32_t before doing the shift.
2019-06-21 16:31:56 +03:00
Nikita Popov
66e4b78519
Merge branch 'PHP-7.2' into PHP-7.3
2019-06-21 15:07:59 +02:00
Nikita Popov
99f3e0f0ed
Fix PKCS12 leak in openssl
2019-06-21 15:07:37 +02:00
Nikita Popov
c939a67866
Fix d leak in ecc openssl_pkey_new
2019-06-21 15:07:32 +02:00
Nikita Popov
dfe6f0c1c6
Fix netscape spki leak in openssl
2019-06-21 15:07:26 +02:00
Nikita Popov
a0da2fb2b7
Fix X509 leak in openssl_pkcs7_verify()
2019-06-21 15:07:18 +02:00
Nikita Popov
e0bafc6da4
Fix CSR leaks in openssl
2019-06-21 15:07:10 +02:00
Nikita Popov
90cb3743be
Free cert in php_openssl_load_stream_cafile()
...
X509_STORE_add_cert() increments the refcount of the cert, so we
should free it here.
2019-06-21 15:07:00 +02:00
Nikita Popov
414db07bdb
Merge branch 'PHP-7.2' into PHP-7.3
2019-06-21 12:55:12 +02:00
Niklas Keller
fea9f93166
Fix memory leak in TLS matches_san_list
2019-06-21 12:54:30 +02:00
Christoph M. Becker
a85254b898
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78189 : file cache strips last character of uname hash
2019-06-20 17:59:59 +02:00
Christoph M. Becker
fcd6f2de60
Fix #78189 : file cache strips last character of uname hash
...
We must not forget to increase `len` by one to cater to the directory
separator.
2019-06-20 17:58:32 +02:00
Christoph M. Becker
a0f370e78a
Update NEWS
2019-06-20 16:59:39 +02:00
Remi Collet
676b564f43
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
fix test for Windows and for parallel run
2019-06-20 11:58:49 +02:00
Remi Collet
d8202bf917
fix test for Windows and for parallel run
2019-06-20 11:58:32 +02:00
Remi Collet
d7597f73cc
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
improve test clean section
2019-06-20 11:51:51 +02:00
Remi Collet
b3cfeda3c7
improve test clean section
2019-06-20 11:51:18 +02:00
Remi Collet
27b5b46cb9
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
move NEWS entry
2019-06-20 10:41:21 +02:00
Remi Collet
c2ee2e4c74
move NEWS entry
2019-06-20 10:40:52 +02:00
Remi Collet
a197dc72c3
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
add test for #78185
2019-06-20 10:28:00 +02:00
Remi Collet
63f2d88088
add test for #78185
2019-06-20 10:27:33 +02:00
Dmitry Stogov
35acda856a
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #78185 (File cache no longer works)
2019-06-20 09:05:50 +03:00
Dmitry Stogov
cd6a6e4cf2
Fixed bug #78185 (File cache no longer works)
2019-06-20 09:04:14 +03:00
Andrey Hristov
7ba1e6b34d
Merge branch 'PHP-7.2' into PHP-7.3
2019-06-19 16:43:06 +03:00
Andrey Hristov
82021ad9df
Fix version comparison
2019-06-19 16:42:43 +03:00
Joe Watkins
a5db319463
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
fix setcookie Max-Age to use php_time
2019-06-19 12:42:25 +02:00
Joe Watkins
31a1c1e67c
fix setcookie Max-Age to use php_time
2019-06-19 12:42:00 +02:00
Joe Watkins
264536877d
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
export php_time
2019-06-19 12:40:23 +02:00
Joe Watkins
599b94ff14
export php_time
2019-06-19 12:39:51 +02:00
Joe Watkins
025899e3b5
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Resolve discrepencies between second value yielded by gettimeofday and time, fixes #69044
2019-06-19 08:59:04 +02:00
Joe Watkins
65067dff01
Resolve discrepencies between second value yielded by gettimeofday and time, fixes #69044
2019-06-19 08:56:20 +02:00
Christoph M. Becker
96663fd6ae
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78173 : XML-RPC mutates immutable objects during encoding
2019-06-18 17:08:58 +02:00
Asher Baker
d54220bc79
Fix #78173 : XML-RPC mutates immutable objects during encoding
...
With opcache.protect_memory=1 enabled, the XML-RPC extension causes a
segfault on PHP 7.2 as it is modifying the recursion counter of objects
it touches, without first checking if they are immutable or not.
This doesn't affect 7.3+
2019-06-18 17:08:11 +02:00
Christoph M. Becker
740d9ecdee
Update NEWS
2019-06-18 09:33:35 +02:00
Remi Collet
efa1388cd3
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
move NEWS entry
2019-06-18 07:51:05 +02:00
Remi Collet
e59b986fa7
move NEWS entry
2019-06-18 07:50:44 +02:00
Nikita Popov
11b354dd54
Merge branch 'PHP-7.2' into PHP-7.3
2019-06-17 13:30:56 +02:00
Nikita Popov
03db04c3ab
Accept null for preg_quote delimiter argument
...
Related to bug #78163 .
2019-06-17 13:30:15 +02:00
Erik Lundin
9f0515c40c
Add syslog.filter=raw
...
This passes through syslog message unchanged, without splitting
messages at newlines.
2019-06-17 13:13:25 +02:00
Dmitry Stogov
96a6f7f7f5
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Backport 96a12578c1
2019-06-14 13:29:30 +03:00
Dmitry Stogov
28808ca96d
Backport 96a12578c1
2019-06-14 13:29:13 +03:00
Dmitry Stogov
a5b39abd86
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Backport 91a6cdbff5
2019-06-14 13:25:06 +03:00
Dmitry Stogov
40f463b560
Backport 91a6cdbff5
2019-06-14 13:24:47 +03:00
Nikita Popov
98457b6d60
Fix some leaks in ldap
...
The result of zval_get_string() needs to be released. In some places
where it is inconvenient to manage, I went back to convert_to_string.
It is safe in those places due to existing array separations.
Also fix a preexisting leak when getting controls, the previous
value was not destroyed.
2019-06-14 11:11:24 +02:00
Côme Chilliet
5d2fe48785
Some more string conversion handling, fixing bug #77958
2019-06-13 22:12:34 +02:00
Côme Chilliet
c219d8d5c2
Avoid converting zval when not needed
...
Also added exception checks so that exception from __toString are
correctly handled in the future
2019-06-13 20:58:45 +02:00
Nikita Popov
bada2049ca
Merge branch 'PHP-7.2' into PHP-7.3
2019-06-13 12:52:32 +02:00
Nikita Popov
f1a8138055
Fixed bug #78106
...
When disabling opcache during the request via opcache.enable ini
setting, make sure we also disable ZCG(accelerator_enabled).
2019-06-13 12:51:35 +02:00
Nikita Popov
ee137a7033
Merge branch 'PHP-7.2' into PHP-7.3
2019-06-13 12:38:57 +02:00
Nikita Popov
f8a68fd935
Add test for bug #78106
...
Also add PHP_TEST_EXTRA_ARGS environment variable, which allows
to pass on -c, -d etc flags provided by run-tests.php. Otherwise
we won't get the built-in server to run with opcache.
2019-06-13 12:35:29 +02:00
Tyson Andre
5d3e3a62a2
Be more precise about possible types for mysqli methods
...
mysqli has an uncommon approach to 64-bit compatibility:
it will convert numbers that can't be represented on 32-bit
platforms to a string.
This is documented at
https://www.php.net/manual/en/mysqli-stmt.affected-rows.php#refsect1-mysqli-stmt.affected-rows-returnvalues
So if there's a query to a remote mysqli server that affects
more than 2.2 billion rows, then the opcache inference might be
incorrect.
(It's possible to add a MAY_BE_STRING_ON_32_BIT_PLATFORM bitflag macro to
account for this, but I don't think there's a need or want to?)
Patches 3162285b86
This is based on the list of php 7.4 functions using
MYSQLI_RETURN_LONG_INT in mysqli_api.c
2019-06-11 15:40:33 +02:00
Tyson Andre
07c63c6fdf
Fix opcache signatures for mysqli_stat
...
See mysqli_api.c and https://www.php.net/manual/en/mysqli.stat.php
2019-06-11 15:39:59 +02:00
Tyson Andre
7350e808c5
Fix bug in opcache flags for mysqli_get_charset
...
https://www.php.net/manual/en/mysqli.get-charset.php
tests/mysqli_field_seek.phpt has a test of this returning an object.
Looking at the source in ext/mysqli/mysqli_nonapi.c,
this should be object|null, not array|null
This might actually cause bugs in opcache's inferences,
(no proof of this)
so it might make sense to pull this patch into an earlier minor version.
2019-06-11 15:39:59 +02:00
Christoph M. Becker
bcf20963c1
Next is 7.3.8
2019-06-11 13:31:30 +02:00
Remi Collet
feb92adc5c
next is 7.2.21
2019-06-11 12:20:26 +02:00
Remi Collet
3080fc3971
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
next is 7.2.21
2019-06-11 12:19:17 +02:00
Remi Collet
05c60abfdb
next is 7.2.21
2019-06-11 12:18:43 +02:00
Christoph M. Becker
b215d1339f
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77937 : preg_match failed
2019-06-11 08:44:07 +02:00
Christoph M. Becker
f3ff72e54b
Fix #77937 : preg_match failed
...
On some recent Windows systems, ext\pcre\tests\locales.phpt fails,
because 'pt_PT' is accepted by `setlocale()`, but not properly
supported by the ctype functions, which are used internally by PCRE2 to
build the localized character tables.
Since there appears to be no way to properly check whether a given
locale is fully supported, but we want to minimize BC impact, we filter
out typical Unix locale names, except for a few cases which have
already been properly supported on Windows. This way code like
setlocale(LC_ALL, 'de_DE.UTF-8', 'de_DE', 'German_Germany.1252');
should work like on older Windows systems.
It should be noted that the locale names causing trouble are not (yet)
documented as valid names anyway, see
<https://docs.microsoft.com/en-us/cpp/c-runtime-library/locale-names-languages-and-country-region-strings?view=vs-2019 >.
2019-06-11 08:42:32 +02:00
Dmitry Stogov
a0749fe483
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed possible misalignment in 32-bit build.
2019-06-10 12:52:50 +03:00
Dmitry Stogov
199eb2b110
Fixed possible misalignment in 32-bit build.
2019-06-10 12:51:59 +03:00
Peter Kokot
53b0f4ba4e
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Extend wildcard files section in EditorConfig [ci skip]
2019-06-09 22:54:59 +02:00
Peter Kokot
65ada39360
Extend wildcard files section in EditorConfig [ci skip]
...
Changes:
- Trim trailing whitespace for all files except patches. There isn't
really any practical reason to not trim the trailing whitespace in all
other files. Binary files or phpt files that include trailing
whitespace as part of the test should be manually set in editors/IDEs
or by disabling the editorconfig for particular editing.
- Add *.ac, *.d, *.l, *.skl, *.re, *.wsdl, *.dtd, *.html, *.rng, *.xml,
*.xsd, *.xsl, buildconf, and Makefile* files settings.
Closes #4156
2019-06-09 22:53:58 +02:00
Dmitry Stogov
15e01132cf
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Restored NEWS entry
2019-06-07 12:38:37 +03:00
Dmitry Stogov
10b208f28d
Restored NEWS entry
2019-06-07 12:37:49 +03:00
Nikita Popov
9569a0b8ca
Merge branch 'PHP-7.2' into PHP-7.3
2019-06-07 10:57:43 +02:00
Nikita Popov
d7c7522be9
Enable STRICT_TRANS_TABLES in new test
...
The part testing error cases relies on this.
2019-06-07 10:57:09 +02:00
Dmitry Stogov
972223c342
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #77135 (Extract with EXTR_SKIP should skip $this)
2019-06-07 11:48:57 +03:00
Dmitry Stogov
83cdb89f8a
Fixed bug #77135 (Extract with EXTR_SKIP should skip $this)
2019-06-07 11:36:39 +03:00
Nikita Popov
a5f98139c9
Merge branch 'PHP-7.2' into PHP-7.3
2019-06-07 09:49:01 +02:00
Cameron Porter
7d1aa7534d
Fixed bug #38546
...
Properly support binding boolean parameters with emulated prepared
statements disabled. Also add the necessary mysqlnd support for
MYSQL_TYPE_TINY.
2019-06-07 09:48:43 +02:00
Christoph M. Becker
5f2f6180b9
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix test regarding Unix Domain Sockets on Windows
2019-06-06 15:00:35 +02:00
Christoph M. Becker
2df32942d3
Fix test regarding Unix Domain Sockets on Windows
...
Recent Windows versions actually support Unix Domain Sockets. Cf.
<https://github.com/curl/curl/pull/3939 >.
2019-06-06 14:59:58 +02:00
Christoph M. Becker
22a3fa0b2e
Fix #78114 : segfault when calling sodium_* functions from eval
...
We must not follow the NULL pointer.
2019-06-06 10:00:15 +02:00
Joe Watkins
249c20023d
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
fix flaky posix test
2019-06-05 16:35:43 +02:00
Joe Watkins
f4474e5724
fix flaky posix test
2019-06-05 16:34:50 +02:00
Nikita Popov
d154301866
Merge branch 'PHP-7.2' into PHP-7.3
2019-06-04 16:27:57 +02:00
Nikita Popov
a3e6b50442
Fixed bug #78050
...
This is a backport of a982125561 .
2019-06-04 16:26:34 +02:00
Nikita Popov
a4633b13d4
Merge branch 'PHP-7.2' into PHP-7.3
2019-06-04 16:14:14 +02:00
Nikita Popov
2d3bc71e89
Reload tsrmls_id in release builds as well
...
If TSRM is shut down and started again (something that phpdbg does),
then tsrmls_id needs to be reloaded everywhere. As tsrmls_id
update is a rare operation, doing that shouldn't be a problem.
2019-06-04 16:12:59 +02:00
Remi Collet
9a495911c8
this was in 7.3.5, not 7.3.6
2019-06-04 07:19:29 +02:00
Nikita Popov
37bba7a678
Merge branch 'PHP-7.2' into PHP-7.3
2019-06-03 15:15:07 +02:00
Nikita Popov
ac60007bec
Clear errors after SSL_CTX_load_verify_locations()
...
We report our own errors here. Make sure these don't clog up the
error queue.
2019-06-03 15:14:01 +02:00
Jakub Zelenka
8f69ca8dcd
Merge branch 'PHP-7.2' into PHP-7.3
2019-06-02 19:13:18 +01:00
Jakub Zelenka
2e02579474
Fix bug #78079 (openssl_encrypt_ccm.phpt fails with OpenSSL 1.1.1c)
...
It also fixes invalid setting of tag length
2019-06-02 19:10:56 +01:00
Anatol Belski
793fd6bce9
Fix expect section
2019-06-01 14:50:14 +02:00
Anatol Belski
547665c720
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update SDK version for AppVeyor
2019-06-01 13:44:10 +02:00
Anatol Belski
59b0b38d3c
Update SDK version for AppVeyor
2019-06-01 13:43:31 +02:00
Anatol Belski
2205546edf
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Change ZPP only if compiled with ICU >= 64
Update tests for ICU 64
2019-06-01 02:26:07 +02:00
Anatol Belski
ee153deb1f
Change ZPP only if compiled with ICU >= 64
2019-06-01 02:18:56 +02:00
Nikita Popov
b01d9fdab1
Update tests for ICU 64
...
(cherry picked from commit 8a8bc5c452 )
2019-06-01 02:17:16 +02:00
Anatol Belski
06eef1f70f
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix var name
2019-05-31 20:50:17 +02:00
Anatol Belski
d293f6dcff
Fix var name
2019-05-31 20:49:42 +02:00
Craig Duncan
370997fb5d
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Add a test for bug #65672
Ensure the internal properties cannot be overwritten
2019-05-30 18:55:55 +01:00
Craig Duncan
8b53c7232e
Add a test for bug #65672
2019-05-30 18:55:42 +01:00
Craig Duncan
dc586bff36
Ensure the internal properties cannot be overwritten
2019-05-30 18:55:36 +01:00
Nikita Popov
61a38bb274
SCCP: Fix leak when determining TYPE_CHECK from type info
...
As TYPE_CHECK is the only opcode where we do something like this,
I'm adding this hack.
2019-05-29 16:47:19 +02:00
Nikita Popov
de7d0256a3
Merge branch 'PHP-7.2' into PHP-7.3
2019-05-29 09:47:43 +02:00
Craig Duncan
5d67271db0
Add tests for DatePeriod properties
2019-05-29 09:47:10 +02:00
Christoph M. Becker
f3cd6931ca
Update NEWS for 7.3.6
2019-05-29 09:27:23 +02:00
Remi Collet
582469eef2
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
add NEWS entries for sec fix
2019-05-29 08:53:42 +02:00
Remi Collet
3051147019
add NEWS entries for sec fix
2019-05-29 08:53:23 +02:00
Joe Watkins
6c73b2088a
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
disabled functions must not have return type
2019-05-29 08:30:41 +02:00
Joe Watkins
7821cc3b9f
disabled functions must not have return type
2019-05-29 08:30:08 +02:00
Craig Duncan
72c330f1e6
Restore the execute bit for run-tests.php
...
It looks like this was accidentally removed in 03f15f705a
2019-05-28 21:51:26 +01:00
Nikita Popov
817b50826e
Merge branch 'PHP-7.2' into PHP-7.3
2019-05-28 16:41:08 +02:00
Nikita Popov
59dfaa3f99
Fix type inference of SEND_UNPACK with empty array
...
An empty array will not be turned into an array of references.
This violated the invariant than an array has values iff it has
keys.
2019-05-28 16:40:56 +02:00
Joe Watkins
dee977b7a7
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
bump version after release
2019-05-28 09:54:15 +02:00
Joe Watkins
d661a75d54
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
bump version after release
2019-05-28 09:53:32 +02:00
Joe Watkins
5533f2490a
bump version after release
2019-05-28 09:52:52 +02:00
Stanislav Malyshev
9d473f1eac
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug #77967 - Bypassing open_basedir restrictions via file uris
2019-05-27 21:36:05 -07:00
Stanislav Malyshev
fbb6a27212
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix bug #77967 - Bypassing open_basedir restrictions via file uris
2019-05-27 21:36:00 -07:00
Stanislav Malyshev
c34895e837
Fix bug #77967 - Bypassing open_basedir restrictions via file uris
2019-05-27 18:48:48 -07:00
Stanislav Malyshev
13dffa9d32
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug #77988 - heap-buffer-overflow on php_jpg_get16
2019-05-27 17:28:25 -07:00
Stanislav Malyshev
dc1d99e772
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix bug #77988 - heap-buffer-overflow on php_jpg_get16
2019-05-27 17:28:20 -07:00
Stanislav Malyshev
73ff4193be
Fix bug #77988 - heap-buffer-overflow on php_jpg_get16
2019-05-27 17:28:09 -07:00
Stanislav Malyshev
e63b2ba310
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix function name
2019-05-27 17:21:23 -07:00
Stanislav Malyshev
9bca9ef6cf
Fix function name
2019-05-27 17:20:56 -07:00
Stanislav Malyshev
c7eb0feed8
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update NEWS
Fix bug #78069 - Out-of-bounds read in iconv.c:_php_iconv_mime_decode() due to integer overflow
Fix #77973 : Uninitialized read in gdImageCreateFromXbm
2019-05-27 16:49:25 -07:00
Stanislav Malyshev
e77c8e45ba
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Update NEWS
Fix bug #78069 - Out-of-bounds read in iconv.c:_php_iconv_mime_decode() due to integer overflow
Fix #77973 : Uninitialized read in gdImageCreateFromXbm
2019-05-27 16:49:19 -07:00
Stanislav Malyshev
16e037bd46
Update NEWS
2019-05-27 16:48:32 -07:00
Stanislav Malyshev
7cf7148a8f
Fix bug #78069 - Out-of-bounds read in iconv.c:_php_iconv_mime_decode() due to integer overflow
2019-05-27 16:32:42 -07:00
Christoph M. Becker
ed6dee9a19
Fix #77973 : Uninitialized read in gdImageCreateFromXbm
...
We have to ensure that `sscanf()` does indeed read a hex value here,
and bail out otherwise.
2019-05-27 16:11:32 -07:00
Nikita Popov
0cb43ec51c
Merge branch 'PHP-7.2' into PHP-7.3
2019-05-27 17:43:13 +02:00
Michael Maroszek
a0c9d0849a
Fixed bug #76345
2019-05-27 17:42:20 +02:00
Nikita Popov
31ce1cbbb9
Func info: Fix calls to zero-arg varargs
...
The num_args does not include variadics, so a "zero-arg" function
may accept additional arguments through that. No functions seem
to be affected right now, but they will be after #4175 .
2019-05-27 16:14:51 +02:00
Jakub Zelenka
209b12e064
Merge branch 'PHP-7.2' into PHP-7.3
2019-05-26 18:49:52 +01:00
Jakub Zelenka
8baf3ffde6
Add fpmi to the opcache supported sapis
2019-05-26 18:47:22 +01:00
Nikita Popov
6f9dfd9473
Fix bug #77955
...
Free metadata before freeing the arena. I don't have a repro script,
but the added assertion fails for many existing tests prior to this
change.
2019-05-23 13:40:52 +02:00
Nikita Popov
b394654c1e
Merge branch 'PHP-7.2' into PHP-7.3
2019-05-23 11:12:59 +02:00
Nikita Popov
9a74b23297
Fixed bug #78038 socket_select with references
2019-05-23 11:12:15 +02:00
Dmitry Stogov
d4867e099e
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed race condition in opcache restart
2019-05-23 00:21:04 +03:00
Dmitry Stogov
fa6a4483e6
Fixed race condition in opcache restart
2019-05-23 00:20:35 +03:00
Dmitry Stogov
aa9c76d027
Fixed dump of constant flags
2019-05-22 22:59:40 +03:00
Nikita Popov
f308aa4e1e
Merge branch 'PHP-7.2' into PHP-7.3
2019-05-22 12:45:16 +02:00
Sjon Hortensius
96404eb8e2
Fix #77956 - When mysqli.allow_local_infile = Off, return a client error
2019-05-22 12:44:55 +02:00
Christoph M. Becker
69c634a56d
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix test case for cURL 7.65.0
2019-05-22 12:02:03 +02:00
Christoph M. Becker
62fe6ba20c
Fix test case for cURL 7.65.0
...
Reported and patch provided by @Jan-E.
2019-05-22 12:01:23 +02:00
Nikita Popov
3a719696bc
Merge branch 'PHP-7.2' into PHP-7.3
2019-05-22 11:43:26 +02:00
Nikita Popov
3a0de243c3
Use a different URL in bug44811.phpt
2019-05-22 11:41:51 +02:00
Rasmus Lerdorf
2d29263a9f
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix precedence issue causing sub-second timeouts to be 0 in curl_multi_select
2019-05-21 14:46:24 -07:00
Rasmus Lerdorf
7b42cdf95e
Fix precedence issue causing sub-second timeouts to be 0 in
...
curl_multi_select
2019-05-21 14:44:11 -07:00
Nikita Popov
97ba6b0d8b
Don't evaluate functions with partial array arguments
2019-05-21 17:35:03 +02:00
Nikita Popov
30f1b17262
Fix null check in sccp add_array_elem chain handling
...
We need to check result_use rather than result_def for a null zval.
Previously we were later assuming that the null zval is really a
partial array, which does not go well.
2019-05-21 17:15:07 +02:00
Nikita Popov
fc4836b193
Fix partial array handling in FE_RESET edge feasibility
2019-05-21 16:59:27 +02:00
Nikita Popov
cd188d0398
Handle partial arrays in zend_is_true() checks
2019-05-21 16:53:34 +02:00
Nikita Popov
bdce5849b7
Extract ct_eval_binary_op()
...
And use it in more places, though some of them are currently not
reachable by partial arrays to the best of my knowledge.
2019-05-21 16:43:41 +02:00
Nikita Popov
367788cbc3
Improve SCCP debug code
...
In particular properly dump partial arrays when tracing execution.
2019-05-21 16:42:13 +02:00
Christoph M. Becker
d23bc33dc1
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Prevent test case failure
2019-05-21 11:18:32 +02:00
Christoph M. Becker
e6a191de1b
Prevent test case failure
...
If opcache.log_verbosity_level is greater than 1, opcache will raise
warnings, which will be written to stderr in the default case. These
warnings are actually to be expected, but would break the test, so we
make sure that the log_verbosity_level is 1 when running this test.
2019-05-21 11:17:51 +02:00
Nikita Popov
4ebd9a5366
Merge branch 'PHP-7.2' into PHP-7.3
2019-05-21 10:04:51 +02:00
Vincent JARDIN
5f8c22d415
Support content_type stream context option in soap
...
Allows overriding the HTTP header using the HTTP context:
$client = new SoapClient('http://url.wsdl&v=latest ', [
'stream_context' => stream_context_create([
'http' => [
'content_type' => 'foobarX',
],
]),
]);
This is a backport of c55af3c65a
to the PHP 7.2 branch.
2019-05-21 10:04:15 +02:00
Christoph M. Becker
11740abd6b
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
use {TMP} placeholder in phpt tests
2019-05-21 09:03:01 +02:00
Holly Li (WIPRO LIMITED)
202e6936d6
use {TMP} placeholder in phpt tests
2019-05-21 09:02:37 +02:00
Dmitry Stogov
354a76bb80
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Prevent race condition in opcache_reset()
2019-05-21 00:08:03 +03:00
Dmitry Stogov
a8a019d68a
Prevent race condition in opcache_reset()
2019-05-21 00:07:17 +03:00
Christoph M. Becker
db8ef71353
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix test wrt. opcache.error_log
2019-05-20 11:10:20 +02:00
Christoph M. Becker
64ec9f4dbe
Fix test wrt. opcache.error_log
...
Since the test expects log messages to be written to stderr, we have to
make sure that opcache.error_log is set correctly when running the
test.
2019-05-20 11:09:44 +02:00
Christoph M. Becker
fd607635a4
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78025 : segfault when accessing properties of DOMDocumentType
2019-05-17 13:32:13 +02:00
Christoph M. Becker
e246dea9fe
Fix #78025 : segfault when accessing properties of DOMDocumentType
...
Instead of following the NULL pointer, we return an empty string.
2019-05-17 13:31:18 +02:00
Nikita Popov
9d76fbd0c4
Fixed bug #78015
...
Don't try to evaluate various operations with partial array operands.
We could evaluate some of these, but let's be conservative for now...
2019-05-15 14:35:31 +02:00
Nikita Popov
5846119e50
Merge branch 'PHP-7.2' into PHP-7.3
2019-05-15 12:48:35 +02:00
Nikita Popov
35353dc49a
Fixed bug #76980
...
If we perform a class fetch that is not marked as exception safe,
convert exceptions thrown by autoloaders into a fatal error.
Ideally fetching the interfaces would be exception safe, but as it
isn't right now, we must abort at this point.
2019-05-15 12:46:23 +02:00
Christoph M. Becker
714d2d8ae1
Update NEWS regarding re-tagging 7.3.6RC1
2019-05-15 11:31:53 +02:00
Sara Golemon
8511c204c3
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Bump for 7.2.20
2019-05-14 20:23:25 -04:00
Sara Golemon
4fa32d67bf
Bump for 7.2.20
2019-05-14 20:22:00 -04:00
Dmitry Stogov
bb7ecb8704
Moved NEWS entry
2019-05-14 14:55:28 +03:00
Dmitry Stogov
a43678aa12
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed possible crashes, because of inconsistent PCRE cache and opcache SHM reset
2019-05-14 14:54:30 +03:00
Dmitry Stogov
5c4d125d4c
Fixed possible crashes, because of inconsistent PCRE cache and opcache SHM reset
2019-05-14 14:53:52 +03:00
Christoph M. Becker
2d93cce03a
Prepare 7.3.7-dev
2019-05-14 11:44:58 +02:00
Christoph M. Becker
1a98878bfe
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix test case
2019-05-14 10:25:02 +02:00
Christoph M. Becker
704a0ab0c9
Fix test case
...
stderr is supposed to be redirected to NUL (which is roughly equivalent
to /dev/null on POSIX), but actually was redirected to a file.
2019-05-14 10:23:58 +02:00
Jakub Zelenka
aa74c30466
Merge branch 'PHP-7.2' into PHP-7.3
2019-05-13 18:51:05 +01:00
Jakub Zelenka
ad63bd169b
Add ping to the fpm test for bug #77934
2019-05-13 18:50:24 +01:00
Christoph M. Becker
69bab6e5a5
Fix #78003 : strip_tags output change since PHP 7.3
...
A refactoring of the strip tags state machine[1] missed the special
treatment of `depth > 0` when a `>` is encountered in state 2 or 3. We
re-add it for BC reasons.
[1] <http://git.php.net/?p=php-src.git;a=commit;h=5cf64742773ddbf9af69d962a4d12b567fcf0084 >
2019-05-13 13:10:24 +02:00
Nikita Popov
bec68d59a2
Merge branch 'PHP-7.2' into PHP-7.3
2019-05-13 11:06:14 +02:00
Theodore Brown
b6b15fc65c
Fix #77993 : Wrong parse error for invalid hex literal on Windows
...
If a PHP file contains an invalid hex literal such as `0x_10`, the expected error
is `Parse error: syntax error, unexpected 'x_10' (T_STRING) in %s on line %d`.
This already worked correctly on Linux, but on Windows prior to this patch a different
error was produced: `Parse error: Invalid numeric literal in %s on line %d`.
2019-05-13 11:04:56 +02:00
Peter Kokot
43e6fd1e2b
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Convert CRLF to LF
2019-05-13 03:53:31 +02:00
Peter Kokot
f95b27c6f6
Convert CRLF to LF
...
These files are tracked with CRLF line endings in Git and can be
converted to LF. Neither are parts of tests or code itself.
2019-05-13 03:51:00 +02:00
Jakub Zelenka
0cad701374
Merge branch 'PHP-7.2' into PHP-7.3
2019-05-11 20:08:57 +01:00
Jakub Zelenka
cc5c51e7f0
Fix bug #77934 (php-fpm kill -USR2 not working)
2019-05-11 20:07:39 +01:00
Peter Kokot
bec22af8d7
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Convert CRLF to LF in *.wsdl files
2019-05-11 17:15:08 +02:00
Peter Kokot
b15bfb9129
Convert CRLF to LF in *.wsdl files
...
These EOL types are part of different environments and not part of the
tests themselves.
2019-05-11 17:12:28 +02:00
Christoph M. Becker
49b5ffe48c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix typo
2019-05-10 18:44:47 +02:00
Christoph M. Becker
3759c6316d
Fix typo
...
Since opcache.enable defaults to 1 anyway, this change is only
cosmetic.
2019-05-10 18:43:40 +02:00
George Wang
d2037b1bd4
Merge branch 'PHP-7.2' into PHP-7.3
2019-05-09 18:14:11 -04:00
George Wang
af4143753f
Updated LiteSpeed SAPI to 7.3.2 to allow request header value length up to 64K.
2019-05-09 18:13:25 -04:00
Christoph M. Becker
fd1ffa4692
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix erroneous assertions
2019-05-09 16:55:35 +02:00
Christoph M. Becker
27f168cf63
Fix erroneous assertions
...
Since PHP strings are binary safe (i.e. they may contain NUL bytes), we
must not assume that strlen()/wcslen() actually return the length of
the string. Only if the given in_len is zero, it is safe to assert
this.
2019-05-09 16:54:11 +02:00
Nikita Popov
90318fbcbe
Merge branch 'PHP-7.2' into PHP-7.3
2019-05-09 12:35:11 +02:00
Nikita Popov
35c80583f0
Fixed bug #75186
2019-05-09 12:33:53 +02:00
Christoph M. Becker
e46b3c3e70
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix log_verbosity_bug.phpt
2019-05-09 12:15:32 +02:00
Christoph M. Becker
e359812ce3
Fix log_verbosity_bug.phpt
...
This test may fail on Windows due to the file cache fallback. We
ensure that this will not happen.
2019-05-09 12:15:00 +02:00
Christoph M. Becker
236522529c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Add {TMP} placeholder for PHPT INI sections
2019-05-08 19:22:21 +02:00
Christoph M. Becker
3d0a0f801b
Add {TMP} placeholder for PHPT INI sections
...
Several tests use `/tmp` in the `--INI--` section, but this is not
portable. We therefore introduce the `{TMP}` placeholder which
evaluates to the system's temporary directory using
`sys_get_temp_dir()`.
We also remove the doubtful `strpos()` optimization.
2019-05-08 19:21:38 +02:00
Nikita Popov
e2ef4e9e2f
Merge branch 'PHP-7.2' into PHP-7.3
2019-05-08 11:37:49 +02:00
Nikita Popov
d19b6aa5ba
Fix resolution of "parent" during inheritance check
...
We can't assume that the method we're checking against is part of
the parent class...
2019-05-08 11:35:26 +02:00
Peter Kokot
d153fbc5a9
Convert CRLF line endings to LF
...
This patch simplifies line endings tracked in the Git repository and
syncs them to all include the LF style instead of the CRLF files.
Newline characters:
- LF (\n) (*nix and Mac)
- CRLF (\r\n) (Windows)
- CR (\r) (old Mac, obsolete)
To see which line endings are in the index and in the working copy the
following command can be used:
`git ls-files --eol`
Git additionally provides `.gitattributes` file to specify if some files
need to have specific line endings on all platforms (either CRLF or LF).
Changed files shouldn't cause issues on modern Windows platforms because
also Git can do output conversion is core.autocrlf=true is set on
Windows and use CRLF newlines in all files in the working tree.
Unless CRLF files are tracked specifically, Git by default tracks all
files in the index using LF newlines.
2019-05-07 04:34:37 +02:00
Jakub Zelenka
36a7d9fca4
Merge branch 'PHP-7.2' into PHP-7.3
2019-05-05 21:05:55 +01:00
Jakub Zelenka
9977de0028
Fix OpenSSL online test for ca context
...
The php.net is redirected to https so use nginx.org
2019-05-05 21:04:28 +01:00
Javier Spagnoletti
78d24429f2
Update NEWS with changes made at #4093
2019-05-03 17:32:40 +02:00
Javier Spagnoletti
6b73e692c9
Add more missing CURL_VERSION_* constants
...
And also check for CURL_VERSION_* constants in the sync-constants.php
script.
Related to request #72189 : Add missing `CURL_VERSION_*` constants.
2019-05-02 15:11:42 +02:00
Christoph M. Becker
d91b643c87
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update NEWS wrt. sec fixes
2019-04-30 09:36:09 +02:00
Christoph M. Becker
1210c3b960
Update NEWS wrt. sec fixes
2019-04-30 09:34:53 +02:00
Stanislav Malyshev
66b32f25d5
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug #77950 - Heap-buffer-overflow in _estrndup via exif_process_IFD_TAG
2019-04-30 00:05:43 -07:00
Stanislav Malyshev
cb5af4e8a0
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix bug #77950 - Heap-buffer-overflow in _estrndup via exif_process_IFD_TAG
2019-04-30 00:05:32 -07:00
Stanislav Malyshev
f80ad18afa
Fix bug #77950 - Heap-buffer-overflow in _estrndup via exif_process_IFD_TAG
...
I do not completely understand what is going on there, but I am pretty
sure dir_entry <= offset_base if not a normal situation, so we better not
to rely on such dir_entry.
2019-04-30 00:05:23 -07:00
Stanislav Malyshev
506a764089
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77821 : Potential heap corruption in TSendMail()
2019-04-29 22:09:10 -07:00
Stanislav Malyshev
2c3933821f
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #77821 : Potential heap corruption in TSendMail()
2019-04-29 22:09:04 -07:00
Christoph M. Becker
6c631ccfef
Fix #77821 : Potential heap corruption in TSendMail()
...
`zend_string_tolower()` returns a copy (not a duplicate) of the given
string, if it is already in lower case. In this case we must not not
`zend_string_free()` both strings. The cleanest solution is to call
` zend_string_release()` on both strings, which properly handles the
refcount.
2019-04-29 22:08:19 -07:00
Christoph M. Becker
a30b919872
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77943 : imageantialias($image, false); does not work
2019-04-29 17:23:45 +02:00
Christoph M. Becker
18a9ae412f
Fix #77943 : imageantialias($image, false); does not work
...
Firstly, we must not call `gdImageSetAntiAliased()` (which sets the
color to anti-alias), but rather modify the `gdImage.AA` flag.
Furthermore, we have to actually use the supplied boolean value.
We also make sure that we don't attempt to enable anti-aliasing for
palette images.
2019-04-29 17:23:16 +02:00
Christoph M. Becker
44494c09bc
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Add tests for bug77943
2019-04-29 16:29:29 +02:00
Christoph M. Becker
3891e0d13a
Add tests for bug77943
2019-04-29 16:29:08 +02:00
Christoph M. Becker
3fc1bdc81c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77943 : imageantialias($image, false); does not work
2019-04-29 16:18:27 +02:00
Christoph M. Becker
cd94cf60a2
Fix #77943 : imageantialias($image, false); does not work
...
Firstly, we must not call `gdImageSetAntiAliased()` (which sets the
color to anti-alias), but rather modify the `gdImage.AA` flag.
Furthermore, we have to actually use the supplied boolean value.
We also make sure that we don't attempt to enable anti-aliasing for
palette images.
2019-04-29 16:16:46 +02:00
Nikita Popov
ff2b5bda59
Merge branch 'PHP-7.2' into PHP-7.3
2019-04-29 13:53:45 +02:00
Nikita Popov
5da0579259
Fixed bug #77945
...
Make sure that we proper distinguish between empty string key and
no key during SDL serialization.
2019-04-29 13:52:18 +02:00
Christoph M. Becker
7faaf5a89a
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix tests
2019-04-29 09:05:04 +02:00
Christoph M. Becker
9bf11045db
Fix tests
...
These tests are obviously meant to test successful and failing uri:
DSNs, but did not pass proper file:// URIs, so actually ended up
testing for invalid data source URIs twice. We fix this, and adjust
the expectations accordingly.
We also unfork the -win32 variant, since both test cases are almost
identical, and the expected error message may be either one.
2019-04-29 09:04:33 +02:00
Christoph M. Becker
06b130579e
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Make MySQLPDOTest::extractVersion() more liberal
2019-04-28 23:49:19 +02:00
Christoph M. Becker
fc9cdb723b
Make MySQLPDOTest::extractVersion() more liberal
...
MySQL/MariaDB version strings may have suffixes which may contain dots;
for instance, Debian stretch has 5.5.5-10.1.37-MariaDB-0+deb9u1 or
such. Therefore, we make the version extraction more liberal, and only
require that there are at least three parts separated by dot, and
ignore additional parts.
We also fix an erroneous test expectation, which would be triggered on
CI now, right away. This patch has been provided by petk@.
2019-04-28 23:48:27 +02:00
Peter Kokot
f83c207d60
Update NEWS
2019-04-28 00:51:18 +02:00
Peter Kokot
1bdd97a601
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update NEWS
Fix #77024 : SplFileObject::__toString() may return array
2019-04-28 00:50:54 +02:00
Peter Kokot
6d8892aacd
Update NEWS
2019-04-28 00:50:40 +02:00
Craig Duncan
91c6fb881e
Fix #77024 : SplFileObject::__toString() may return array
...
- Correct the behaviour of casting spl files to strings
- Add a test for Bug 77024
2019-04-28 00:44:48 +02:00
Christoph M. Becker
3309f2fbb9
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
PHP, meet MySQL
2019-04-27 19:22:10 +02:00
Christoph M. Becker
57d5dc5688
PHP, meet MySQL
...
All pdo_mysql tests are skipped on AppVeyor because "No such host is
known". We change the DSN to use semicolons instead of spaces to fix
that.
2019-04-27 19:21:51 +02:00
Christoph M. Becker
e561d4100b
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77944 : Wrong meta pdo_type for bigint on LLP64
2019-04-27 18:47:32 +02:00
Christoph M. Becker
16609880f8
Fix #77944 : Wrong meta pdo_type for bigint on LLP64
...
When actually fetching the data, bigint (unsigned) column values are
returned as integers on LLP64 architectures, so their pdo_type has to
be PDO::PARAM_INT accordingly.
2019-04-27 18:46:27 +02:00
Christoph M. Becker
70239ea1d3
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77940 : test using outdated mon_thousands_sep for Swedish
2019-04-25 23:29:03 +02:00
Christoph M. Becker
7ddfe73e69
Fix #77940 : test using outdated mon_thousands_sep for Swedish
...
Of course, we should expect a comma, not a period.
2019-04-25 23:28:41 +02:00
Christoph M. Becker
3e31ae5d70
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77940 : test using outdated mon_thousands_sep for Swedish
2019-04-25 19:40:05 +02:00
Christoph M. Becker
bfbfb9dabd
Fix #77940 : test using outdated mon_thousands_sep for Swedish
...
This time so that it works for all Windows 10 versions (hopefully).
2019-04-25 19:39:42 +02:00
Christoph M. Becker
dcba479848
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77940 : test using outdated mon_thousands_sep for Swedish
2019-04-25 08:59:09 +02:00
Christoph M. Becker
37ca6a7a2a
Fix #77940 : test using outdated mon_thousands_sep for Swedish
2019-04-25 08:58:13 +02:00
Christoph M. Becker
ad0acc0aa9
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77938 : socket_get_option error
2019-04-25 00:04:37 +02:00
Christoph M. Becker
fe202d99c8
Fix #77938 : socket_get_option error
...
Since tcp_socket/ssl streams are not representable, we suppress the
redirect to fix the test case.
2019-04-25 00:03:45 +02:00
Remi Collet
191e15309f
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
news entry for litespeed
2019-04-24 09:46:06 +02:00
Remi Collet
5d21a15cc3
news entry for litespeed
2019-04-24 09:45:48 +02:00
Nikita Popov
68892410f7
Merge branch 'PHP-7.2' into PHP-7.3
2019-04-23 12:43:32 +02:00
Nikita Popov
4831e150c5
Fixed bug #77843
2019-04-23 12:43:07 +02:00
Nikita Popov
cedee4408b
Fixed bug #77931
2019-04-23 11:40:13 +02:00
George Wang
fb4c811835
Merge branch 'PHP-7.2' into PHP-7.3
2019-04-21 15:59:07 -04:00
George Wang
ce73841cdc
Improved LSAPI_End_Response_r() .
2019-04-21 15:04:54 -04:00
George Wang
ccf051c317
Fixed bug in litespeed_finish_request(), disable fastcgi_finish_request() alias for now.
2019-04-21 14:59:51 -04:00
Peter Kokot
0b8414832e
Update changelog
2019-04-20 19:13:06 +02:00
Peter Kokot
2549f7d220
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update changelog
Fix #77921 : static.php.net doesn't work anymore
2019-04-20 19:12:31 +02:00
Peter Kokot
295c66911f
Update changelog
2019-04-20 19:12:17 +02:00
Peter Kokot
4450288344
Fix #77921 : static.php.net doesn't work anymore
...
This embeds the PHP logo image in the FPM status HTML page instead of
using remote location. The phpinfo() output also uses such approach
and browser compatibility looks decent [1].
1: https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs
2019-04-20 19:00:51 +02:00
Peter Kokot
d1bce98597
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update Git repository for Windows build tool kit
2019-04-19 21:11:01 +02:00
Peter Kokot
06fa35568e
Update Git repository for Windows build tool kit
2019-04-19 21:09:46 +02:00
Christoph M. Becker
fd4c42efab
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Use php-sdk-2.2.0beta5 on AppVeyor
2019-04-18 16:51:38 +02:00
Christoph M. Becker
a7ada30ac6
Use php-sdk-2.2.0beta5 on AppVeyor
2019-04-18 16:51:10 +02:00
Dmitry Stogov
3a04adce82
Check assert only when RC_DEBUG is enabled
2019-04-18 14:26:15 +03:00
Nikita Popov
b2f49c69b1
Add a dl() test to Travis
...
Compile the zend_test extension as shared and try loading it with dl()
to test for obvious issues. Doing this as a standalone call because this
is very specific to the CI setup.
2019-04-18 12:57:54 +02:00
Nikita Popov
e9aa0337ab
Fix more dl() interned string assertions
2019-04-18 12:14:07 +02:00
Dmitry Stogov
bfadd9fdaf
It's safe to keep old string if it's stored not in SHM.
2019-04-17 21:57:17 +03:00
Dmitry Stogov
ac12cc85aa
Fixed dl() function. It failed in DEBUG build without opcache because of assert during string interning.
2019-04-17 19:31:28 +03:00
Christoph M. Becker
f0ccd9ffc6
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77911 : Wrong warning for session.sid_bits_per_character
2019-04-17 17:24:15 +02:00
Christoph M. Becker
d20053a556
Fix #77911 : Wrong warning for session.sid_bits_per_character
2019-04-17 17:23:23 +02:00
Derick Rethans
6088713216
Merge branch 'PHP-7.2' into PHP-7.3
2019-04-17 09:40:18 +01:00
Ignace Nyamagana Butera
7b1a4e2400
Fixed bug #77909 : DatePeriod::__construct() with invalid recurrence count value
...
Improve error message on invalid reccurence count
Adding test when reccurence is -1
2019-04-17 09:39:03 +01:00
Christoph M. Becker
ec8457d982
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix tests for non English environments
2019-04-17 09:57:37 +02:00
Christoph M. Becker
6fe75f9e45
Fix tests for non English environments
2019-04-17 09:56:55 +02:00
Remi Collet
e90bce7f08
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
next is 7.2.19
2019-04-16 13:12:33 +02:00
Remi Collet
6c44a71e4a
next is 7.2.19
2019-04-16 13:11:23 +02:00
Nikita Popov
f9a755d0d2
Fix HT flags copying wrt iterator count
...
HT_FLAGS() includes the full flag word, including the iterator
count. When we're fully reassigning it, we need to make sure that
we either really do want to copy the iterator count (as in some
cases in array.c) or we need to mask only the actual flag byte.
Add an assert to hash_iterators_del() to make sure the iterator
count is non-zero (which is how I ran into this) and make sure that
the iterator count is correctly preserved during array splicing.
2019-04-16 12:14:45 +02:00
Christoph M. Becker
5ae49c43dc
Prepare main branch for PHP 7.3.6
2019-04-16 11:56:03 +02:00
Nikita Popov
9a9eed472b
Fix second part of bug #77903
...
When a HT iterator is one past the end and we rehash, we need to make
sure that it is move to the new one past the end position, to make
sure that newly inserted elements are picked up.
2019-04-16 10:38:20 +02:00
Nikita Popov
e1b4cabbd6
Partial fix for bug #77903
...
In the hash position APIs, make sure we always advance to the next
non-undef element and not just when the position is 0 (similar to
what foreach does). This can happen when the position of an
ArrayIterator is one past its current end and a new element is
inserted not directly at that position because the array is packed.
There is still a bug here (as shown in the tests), but this is a
separate issue that also affects plain array iteration in foreach.
2019-04-16 10:23:11 +02:00
Nikita Popov
a2f3ec1777
Merge branch 'PHP-7.2' into PHP-7.3
2019-04-15 15:27:30 +02:00
Nikita Popov
619c4e9f2e
Fixed bug #77895
2019-04-15 15:26:58 +02:00
Nikita Popov
e05c6a25f9
Merge branch 'PHP-7.2' into PHP-7.3
2019-04-15 15:00:49 +02:00
Nikita Popov
9b1950b005
Zero sockaddr struct
...
in6 has a bunch of extra fields that we're leaving uninitialized. I
don't see them locally, but there's valgrind warnings on gcov.
2019-04-15 14:59:05 +02:00
Nikita Popov
5611058766
Merge branch 'PHP-7.2' into PHP-7.3
2019-04-15 10:54:31 +02:00
Nikita Popov
917952453c
Fix uninitialized cert_captured
...
This is a legimitimate bug and also shows up under valgrind.
2019-04-15 10:53:33 +02:00
Nikita Popov
14047b50b4
Merge branch 'PHP-7.2' into PHP-7.3
2019-04-15 10:25:11 +02:00
Nikita Popov
e9c0367fdc
Fixed bug #77882
2019-04-15 10:22:40 +02:00
Côme Chilliet
3e1eff251b
Updated NEWS
2019-04-15 10:19:19 +02:00
Côme Chilliet
ea0f26420d
Fix a NULL dereferencing crash in php-ldap
...
This happens when parsing a control response to a VLV request which does
not contain a "context" string.
See bug #77869
2019-04-15 10:16:29 +02:00
George Wang
7f551c728c
Merge branch 'PHP-7.2' into PHP-7.3
2019-04-12 17:44:32 -04:00
George Wang
1e7f1b90e8
LiteSpeed SAPI 7.3, better process management, new API function litespeed_finish_request().
2019-04-12 17:43:45 -04:00
Christoph M. Becker
8ed3b74a0c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix tests wrt. internationalization
2019-04-12 13:08:13 +02:00
Christoph M. Becker
d07a6fdedf
Fix tests wrt. internationalization
2019-04-12 13:07:39 +02:00
Nikita Popov
354a1c27aa
Merge branch 'PHP-7.2' into PHP-7.3
2019-04-12 10:37:08 +02:00
Nikita Popov
3b53d28e60
Fix key leaks in mb_convert_encoding()
2019-04-12 10:36:58 +02:00
Christoph M. Becker
d2d1a50b04
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix potential OPcache file cache related issues
2019-04-11 18:30:27 +02:00
Anatol Belski
5477d68300
Fix potential OPcache file cache related issues
...
To solve issues detected during testing, we backport the following
commits to PHP 7.2:
129c5c1181
9ac133a0b3
ce72bc6b65
2019-04-11 18:28:49 +02:00
Nikita Popov
a61d24e4d8
Avoid onig match param unused variable warning
2019-04-11 12:35:24 +02:00
Anatol Belski
ce72bc6b65
Ensure double slashes are replaced by the path normalization
2019-04-10 15:20:36 +02:00
Anatol Belski
1aa30bb71c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix phar:// include handling with file cache
2019-04-10 14:56:29 +02:00
Anatol Belski
f31d7ca85e
Fix phar:// include handling with file cache
2019-04-10 14:55:15 +02:00
Nikita Popov
b67ca4f07c
Merge branch 'PHP-7.2' into PHP-7.3
2019-04-10 13:06:55 +02:00
Nikita Popov
8f13599a64
Fix 29nb_async_connect.phpt
...
Intermediate states are unreliable across versions (I think), make
sure we go through the whole connect procedure.
2019-04-10 13:06:02 +02:00
Nikita Popov
6615b9c287
Merge branch 'PHP-7.2' into PHP-7.3
2019-04-10 12:22:34 +02:00
Nikita Popov
c7a86a38a3
Fix pgsql use after free trying to reuse closed connection
...
When a connection is closed, we also need to remove the hash entry
from the regular_list, as it now points to freed memory. To do this
store a reverse mapping from the connection to the hash string.
It would be nicer to introduce a wrapping structure for the pgsql
link resource that could store the hash (and notices), but that would
require large changes to the extension, so I'm going for a more
minimal fix here.
2019-04-10 12:18:57 +02:00
Nikita Popov
ed1df9d135
Merge branch 'PHP-7.2' into PHP-7.3
2019-04-10 10:38:32 +02:00
Nikita Popov
b55715d61a
Fix use after free on pg_close() of default connection
2019-04-10 10:38:24 +02:00
Dmitry Stogov
8e5a2096a9
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Repare SWITCH VM
2019-04-09 01:11:02 +03:00
Dmitry Stogov
7b8212f4d1
Repare SWITCH VM
2019-04-09 00:41:11 +03:00
Nikita Popov
a90ac8b5b2
Merge branch 'PHP-7.2' into PHP-7.3
2019-04-08 13:00:05 +02:00
twosee
bdac9ef10d
Preserve keys in emulate_read_fd_set()
...
Keys are already preserved in the non-emulated case.
2019-04-08 12:58:46 +02:00
Nikita Popov
08a3062816
Merge branch 'PHP-7.2' into PHP-7.3
2019-04-08 11:41:48 +02:00
Nikita Popov
d7b5954f28
Fixed bug #77853
2019-04-08 11:40:50 +02:00
Nikita Popov
0a25b41f6d
Merge branch 'PHP-7.2' into PHP-7.3
2019-04-08 11:12:52 +02:00
Nikita Popov
eea61cda7d
Fixed bug #77844
...
We should probably return an integer result from the operation in
typed mode, right now the result is always a string.
2019-04-08 11:11:58 +02:00
Stanislav Malyshev
805a330681
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Always use ZEND_SECURE_ZERO() when cleaning up data
bump versions after release
2019-04-06 19:06:16 -07:00
Stanislav Malyshev
d1d692abe7
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Always use ZEND_SECURE_ZERO() when cleaning up data
bump versions after release
2019-04-06 19:05:37 -07:00
Stanislav Malyshev
588db7cecf
Always use ZEND_SECURE_ZERO() when cleaning up data
...
Optimizing compilers have an annoying tendency to throw out
memsets over data that they think aren't used anymore. Apply secure
zero-out in cases where this has potential to happen.
2019-04-06 18:15:42 -07:00
Joe Watkins
0c6a68fa36
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Follow up #77849 PDOStatement objects in undefined state after clone
2019-04-06 01:27:58 +02:00
Joe Watkins
a2b8a62abf
Follow up #77849 PDOStatement objects in undefined state after clone
2019-04-06 01:26:47 +02:00
Joe Watkins
0d5be6ce91
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug #77849 Disable cloning of PDO handle/connection objects to avoid segfault
2019-04-06 00:55:46 +02:00
Cameron Porter
9ec1525eb5
Fix bug #77849 Disable cloning of PDO handle/connection objects to avoid segfault
2019-04-06 00:54:59 +02:00
Christoph M. Becker
31fe6cfe76
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update Appveyor CI to php-sdk-2.2.0beta4
2019-04-05 23:15:50 +02:00
Christoph M. Becker
7b0ed8975d
Update Appveyor CI to php-sdk-2.2.0beta4
2019-04-05 23:15:22 +02:00
Christoph M. Becker
54bed8d2ea
Fix typos
2019-04-04 14:22:36 +02:00
Matteo Beccati
9f02f9fd5c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Ref #76801 remove old file source from file_sources hash in case of file included more than once
2019-04-03 14:36:11 +02:00
Alessandro Chitolina
4029c0b6a2
Ref #76801 remove old file source from file_sources hash in case of file included more than once
2019-04-03 14:35:57 +02:00
Dmitry Stogov
0f811bb7b6
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed CFG construction for SWITCH opcodes
2019-04-03 03:09:47 +03:00
Dmitry Stogov
56a5d0bd91
Fixed CFG construction for SWITCH opcodes
2019-04-03 03:09:03 +03:00
Christoph M. Becker
849c49a714
Update NEWS
2019-04-02 16:54:15 +02:00
Joe Watkins
731eeb8dec
bump versions after release
2019-04-02 16:50:20 +02:00
Remi Collet
002983e463
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
fix paste issue
2019-04-02 11:05:54 +02:00
Remi Collet
f7755163b7
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
fix paste issue
2019-04-02 11:05:39 +02:00
Remi Collet
dc1cd3daf2
fix paste issue
2019-04-02 11:05:09 +02:00
Christoph M. Becker
b8fdaa7c42
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Pointer arithmetic on void pointers is illegal
2019-04-02 10:41:26 +02:00
Christoph M. Becker
f6efe70505
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Pointer arithmetic on void pointers is illegal
2019-04-02 10:40:56 +02:00
Christoph M. Becker
01a4de5c58
Pointer arithmetic on void pointers is illegal
...
We quick-fix this by casting to char*; it might be more appropriate to
use char pointers in the first place.
2019-04-02 10:39:44 +02:00
Stanislav Malyshev
da5fbb8c36
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #77831 - Heap-buffer-overflow in exif_iif_add_value in EXIF
2019-04-02 00:13:00 -07:00
Stanislav Malyshev
c83af86f8b
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed bug #77831 - Heap-buffer-overflow in exif_iif_add_value in EXIF
2019-04-02 00:12:54 -07:00
Stanislav Malyshev
887a7b5714
Fixed bug #77831 - Heap-buffer-overflow in exif_iif_add_value in EXIF
2019-04-02 00:12:26 -07:00
Derick Rethans
a22bd7a3a8
Updated to version 2019.1 (2019a)
2019-04-01 10:38:40 +01:00
Stanislav Malyshev
3d5b6f234e
Update NEWS & UPGRADING
2019-04-01 00:03:49 -07:00
Stanislav Malyshev
bc8f292c05
Merge branch 'mb-limit-73' into PHP-7.3
...
* mb-limit-73:
Add fallbacks for older oniguruma versions
Add mbstring.regex_stack_limit to php.ini-*
Implement RF bug #72777 - ensure stack limits on mbstring functions.
2019-04-01 00:00:14 -07:00
Stanislav Malyshev
d2a86e1c0f
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update NEWS
2019-03-31 23:11:27 -07:00
Stanislav Malyshev
682d28abf7
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Update NEWS
2019-03-31 23:11:24 -07:00
Stanislav Malyshev
c684d32fb8
Update NEWS
2019-03-31 23:11:15 -07:00
Stanislav Malyshev
9efaac30ae
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug #77753 - Heap-buffer-overflow in php_ifd_get32s
2019-03-31 23:09:57 -07:00
Stanislav Malyshev
f3ab302270
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix bug #77753 - Heap-buffer-overflow in php_ifd_get32s
2019-03-31 23:09:18 -07:00
Stanislav Malyshev
f3aefc6d07
Fix bug #77753 - Heap-buffer-overflow in php_ifd_get32s
2019-03-31 23:09:06 -07:00
Christoph M. Becker
d8b7728b0e
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77827 : preg_match does not ignore \r in regex flags
2019-03-31 13:33:21 +02:00
Christoph M. Becker
88460c017a
Fix #77827 : preg_match does not ignore \r in regex flags
2019-03-31 13:31:54 +02:00
Stanislav Malyshev
e12c069d33
Add fallbacks for older oniguruma versions
2019-03-30 23:18:33 -07:00
Anatol Belski
a2c87c7f29
Fix memory leak
2019-03-30 21:28:51 +01:00
Matteo Beccati
263c587854
Fixed SKIPIF when --disable-mbregex is used
2019-03-30 18:29:49 +01:00
Matteo Beccati
f030f34622
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed SKIPIF when --disable-mbregex is used
2019-03-30 18:29:44 +01:00
Matteo Beccati
0dbb581cf4
Fixed SKIPIF when --disable-mbregex is used
2019-03-30 18:28:33 +01:00
Christoph M. Becker
9d8b913de5
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix test expectation
2019-03-29 09:56:58 +01:00
Christoph M. Becker
0aa1a2c833
Fix test expectation
...
The `W32_SM_SENDMAIL_FROM_MALFORMED` error message will only be shown
if the `$additional_headers` parameter is passed to `mail`, which is
not the case for this test. Instead we have to expect `BAD_MSG_RPATH`.
2019-03-29 09:55:04 +01:00
Stanislav Malyshev
bc4cb277d3
Add mbstring.regex_stack_limit to php.ini-*
2019-03-28 22:57:07 -07:00
Stanislav Malyshev
66c35b083b
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Validate subject encoding in mb_split and mb_ereg_match
Validate pattern against mbregex encoding
SQLite3: add DEFENSIVE config for SQLite >= 3.26.0 as a mitigation strategy against potential security flaws
2019-03-28 00:42:56 -07:00
Stanislav Malyshev
402adc1df1
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Validate subject encoding in mb_split and mb_ereg_match
Validate pattern against mbregex encoding
SQLite3: add DEFENSIVE config for SQLite >= 3.26.0 as a mitigation strategy against potential security flaws
2019-03-28 00:35:22 -07:00
Yasuo Ohgaki
738016bd88
Implement RF bug #72777 - ensure stack limits on mbstring functions.
...
The patch creates new config: mbstring.regex_stack_limit, which
defaults to 100000.
2019-03-28 00:31:57 -07:00
Joe Watkins
62a652a0d5
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
fix build: readline support must be disabled by default in phpdbg
2019-03-28 07:35:15 +01:00
Joe Watkins
b7442f1bb8
fix build: readline support must be disabled by default in phpdbg
2019-03-28 07:34:45 +01:00
Nikita Popov
0ecac37c40
Validate subject encoding in mb_split and mb_ereg_match
...
We were already validating the subject encoding in most functions,
but not these two.
2019-03-27 23:20:27 -07:00
Nikita Popov
40fe50daf6
Validate pattern against mbregex encoding
...
Oniguruma does not consistently perform this validation itself (at least
on older versions), so make sure we check pattern encoding validity on the
PHP side.
2019-03-27 23:19:46 -07:00
Joe Watkins
218154e695
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Consider phpdbg as cli
2019-03-27 10:38:45 +01:00
Samuele Kaplun
79f046f89e
Consider phpdbg as cli
...
* When configuring extensions, considers the PHPDBG SAPI as CLI thus
allowing e.g. to have the pcntl extension available within PHPDBG.
Signed-off-by: Samuele Kaplun <kaplun@protonmail.com >
2019-03-27 10:38:03 +01:00
Joe Watkins
eb405a2192
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77805 phpdbg build fails when readline is shared
2019-03-27 10:04:07 +01:00
Joe Watkins
7af270eb28
Fix #77805 phpdbg build fails when readline is shared
2019-03-27 10:02:42 +01:00
Joe Watkins
1e4cff9ddb
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
more work on phpdbg conditional breaks
2019-03-27 00:02:31 +01:00
Joe Watkins
6d3a2b4693
more work on phpdbg conditional breaks
2019-03-27 00:02:15 +01:00
Joe Watkins
e177d26d0e
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77800 phpdbg segfaults on conditional breakpoints
2019-03-26 23:06:15 +01:00
Joe Watkins
7df8e4fc0a
Fix #77800 phpdbg segfaults on conditional breakpoints
2019-03-26 23:05:06 +01:00
Peter Kokot
6ef6d31776
[ci skip] Update NEWS
2019-03-25 21:57:20 +01:00
Peter Kokot
58e00df9fe
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
[ci skip] Update NEWS
Fix #77794 : Incorrect Date header format in built-in server
2019-03-25 21:56:39 +01:00
Peter Kokot
72a2ab39ba
[ci skip] Update NEWS
2019-03-25 21:46:41 +01:00
Niklas Keller
7f9872387e
Fix #77794 : Incorrect Date header format in built-in server
...
- Fix the date format to be compliant with https://tools.ietf.org/html/rfc7231#section-7.1.1.2
- Fix date format length and use GMT time
- Previously, local time was used instead of GMT.
- Remove extra whitespace
- Simplify string appends in php_cli_server.c
2019-03-25 21:41:45 +01:00
Nikita Popov
e4d9d91462
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-25 17:45:03 +01:00
Vlad Temian
ec2ecb7e12
Fix bug #77680 : Correctly implement recursive mkdir on FTP stream
...
If the root directory was missing, an extra CWD without arguments was
made. Also, the MKD contained an empty string.
Now the CWD will use / and MKDs will be issued starting from the root
directory.
2019-03-25 17:43:46 +01:00
Nikita Popov
e97577edde
Fixed bug #77793
...
By making sure that we always first increment the refcount of the
new value before we destroy the old one.
2019-03-25 17:33:17 +01:00
Nikita Popov
91d4d175ab
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-25 16:43:21 +01:00
Nikita Popov
85095dfd09
Fixed bug #72175
...
Make sure we don't close the connection we're trying to reuse...
2019-03-25 16:41:21 +01:00
Joe Watkins
93740a2482
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
fix bug #76801 : phpdbg too many open files error
2019-03-23 09:48:20 +01:00
Alessandro Chitolina
b8b880932e
fix bug #76801 : phpdbg too many open files error
2019-03-23 09:47:49 +01:00
Remi Collet
e68fd40e22
ensure pcre.jit=1 for this test
2019-03-22 15:31:36 +01:00
Remi Collet
bb47fb0783
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
ensure pcre.jit=1 for these tests
2019-03-22 15:01:49 +01:00
Remi Collet
2e9dccef78
ensure pcre.jit=1 for these tests
2019-03-22 15:00:31 +01:00
Nikita Popov
30ddfd49ed
Fixed bug #77773
2019-03-22 13:07:00 +01:00
Nikita Popov
620a753185
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-22 12:41:02 +01:00
Nikita Popov
da35fa2cb8
Fixed bug #77772
2019-03-22 12:39:27 +01:00
Remi Collet
5c8d69bf6f
fix test
2019-03-21 09:19:42 +01:00
Remi Collet
cf65905974
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix tests after fix for #76717
2019-03-20 14:08:18 +01:00
Remi Collet
a467a89f16
Fix tests after fix for #76717
2019-03-20 14:07:26 +01:00
Remi Collet
999370b756
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
NEWS
Revert "Fix #77609 : Tests from mailparse extension fails"
2019-03-20 11:55:06 +01:00
Remi Collet
a785ccd21a
NEWS
2019-03-20 11:54:49 +01:00
Remi Collet
32e7b0864c
Revert "Fix #77609 : Tests from mailparse extension fails"
...
This reverts commit 3ead672394 .
2019-03-20 11:54:27 +01:00
Sara Golemon
4c55b1c16d
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Bump versions for 7.2.18
2019-03-19 14:32:28 -04:00
Sara Golemon
963428a75d
Bump versions for 7.2.18
2019-03-19 14:31:08 -04:00
Remi Collet
5686e6e33e
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
comment out sqlite3.defensive = 1 follow common practice, this is the default value
2019-03-19 16:27:57 +01:00
Remi Collet
78c9a53df7
comment out sqlite3.defensive = 1
...
follow common practice, this is the default value
2019-03-19 16:26:26 +01:00
Christoph M. Becker
a2de42041c
Prepare main branch for PHP 7.3.5
2019-03-19 16:20:55 +01:00
Remi Collet
c421d9afec
fix test for upcoming pcre2 10.33
...
"group name ..." => "subpattern name ..."
2019-03-19 16:15:14 +01:00
Nikita Popov
661bce47ae
Fixed bug #76127
...
Per documentation, and consistent with other preg functions, we
should return false if an error occurred.
2019-03-19 13:57:39 +01:00
Nikita Popov
d53e9c7392
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-19 10:03:05 +01:00
Vlad Temian
fe2885d80a
Fixed bug #77765
...
Set mode 40755 for directories, via FTP stream stat.
Because we already manage to CWD into the current directory,
we should set 40755 as mode, instead of 40644.
2019-03-19 10:02:38 +01:00
Nikita Popov
20c261b2fe
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-19 09:55:42 +01:00
Miriam Lauter
09e522322a
Fix #77767 : phpdbg break command help message shows incorrect aliases
...
Previously the aliases for at and del were listed as A and d
in the help message for break. This patch corrects the aliases
to be @ and ~ respectively.
2019-03-19 09:55:10 +01:00
Christoph M. Becker
5ead86a35e
Fix order
2019-03-18 20:07:38 +01:00
Christoph M. Becker
a529826d95
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77578 : Crash when php unload
2019-03-18 19:24:56 +01:00
Christoph M. Becker
41bc51ce2d
Fix #77578 : Crash when php unload
...
Since we're putting `ITypeLib *`s into the hash, we're getting
`ITypeLib *`s back, not `ITypeLib **`s.
2019-03-18 19:21:38 +01:00
Christoph M. Becker
7ef2fa6d0d
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Add bison version check to configure
2019-03-18 15:04:09 +01:00
Christoph M. Becker
f21c054903
Add bison version check to configure
...
Since we're already checking for the minimum required re2c version,
also checking for the minimum required bison version is sensible.
2019-03-18 15:02:52 +01:00
Xinchen Hui
ab8782d1e6
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Simplfy test case
2019-03-18 19:30:11 +08:00
Xinchen Hui
e072537e7f
Simplfy test case
...
(I was working on the same bug while nikic committed the similar fix
2019-03-18 19:28:23 +08:00
Nikita Popov
763a7b8ca3
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-18 12:16:12 +01:00
Nikita Popov
b3a669bec1
Make test independent of icu version
...
We don't really care about the actual output here, just that it
doesn't fail.
2019-03-18 12:14:58 +01:00
Nikita Popov
623a11d7de
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-18 11:39:58 +01:00
Nikita Popov
433758ceb3
Allow DateTimeImmutable in datefmt_format_object()
...
As pointed out in a comment on bug #65683 .
2019-03-18 11:39:16 +01:00
Nikita Popov
82fbaab53c
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-18 11:07:27 +01:00
Nikita Popov
4f03401628
Partial fix for bug #77751
...
This avoids the segfault, but it will not make writing to the
SplFileObject during output shutdown work.
2019-03-18 11:06:23 +01:00
Nikita Popov
da7add3525
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-18 10:51:00 +01:00
Nikita Popov
54bf8c820f
Fixed bug #77743
2019-03-18 10:49:53 +01:00
Christoph M. Becker
ad2d2e41de
Fix #76956 : Wrong value for 'syslog.filter' documented in php.ini
2019-03-18 10:19:30 +01:00
Nikita Popov
c4464526cd
Remove x86 bit test optimization
...
This is undefined behavior and we cannot rely on it. Additionally it
breaks builds using undefined behavior sanitizers.
2019-03-18 10:12:15 +01:00
Nikita Popov
00cfa1a367
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-18 10:11:25 +01:00
Nikita Popov
a573c0e9ed
Fix unused variable warning
2019-03-18 10:11:00 +01:00
Nikita Popov
61eebb559e
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-18 10:04:29 +01:00
twosee
bd6eabd659
Don't disable object slot reuse while running shutdown functions
...
We only need to do this once we're running destructors. The current
approach interferes with some event loop code that runs everything
inside a shutdown function.
2019-03-18 10:02:31 +01:00
Derick Rethans
d209ccd4cc
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-17 14:55:53 -04:00
Derick Rethans
ab07bc1fff
Fixed 7.2 compat issue
2019-03-17 14:53:56 -04:00
Derick Rethans
7e7ef44fab
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-17 14:38:04 -04:00
Derick Rethans
1307275b43
Merge branch 'pr/3888' into PHP-7.2
2019-03-17 14:37:52 -04:00
Ignace Nyamagana Butera
6eb83a63e1
Fixed bug #75113 : Added DatePeriod::getRecurrences() method.
2019-03-17 14:37:35 -04:00
Pedro Magalhães
3a04b507ec
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Added test for #77535 fix
2019-03-15 18:12:55 +00:00
Pedro Magalhães
f167b06d4c
Added test for #77535 fix
2019-03-15 18:11:51 +00:00
Nikita Popov
7899f6a906
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-15 17:07:48 +01:00
Nikita Popov
97f9fd6949
Don't immediately destroy curl pushfunction
2019-03-15 17:07:19 +01:00
Xinchen Hui
b419590893
Fixed bug #77697 (Crash on Big_Endian platform)
2019-03-15 16:58:08 +08:00
Nikita Popov
217c05da52
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-14 17:25:54 +01:00
Nikita Popov
e7d40afb7a
Fixed bug #77742
...
By avoiding integer overflow in the implementation entirely. The
multiplication was already explicitly checked for overflow, so also
add a check for the addition and remove the overflow checks after
the calculation.
2019-03-14 17:24:50 +01:00
Xinchen Hui
82174e68b6
updated NEWS
2019-03-14 16:47:16 +08:00
Xinchen Hui
e3965913c4
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #77738 (Nullptr deref in zend_compile_expr)
2019-03-14 16:46:46 +08:00
Xinchen Hui
c7920aba3e
Fixed bug #77738 (Nullptr deref in zend_compile_expr)
2019-03-14 16:46:04 +08:00
Nikita Popov
a7739be22f
Fixed bug #77722
2019-03-12 09:58:09 +01:00
Anatol Belski
95c8f67a4c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Die hard if mc.exe or mt.exe not found
2019-03-11 20:59:23 +01:00
Anatol Belski
6814ba11bc
Die hard if mc.exe or mt.exe not found
...
Even configure would pass, that producess quite subtle build errors
which are better to avoid at configure stage already.
2019-03-11 20:41:45 +01:00
bohwaz
58c25bf679
SQLite3: add DEFENSIVE config for SQLite >= 3.26.0 as a mitigation strategy against potential security flaws
2019-03-11 18:02:03 +01:00
Christoph M. Becker
e7ce7c6bb2
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
SQLite3: add DEFENSIVE config for SQLite >= 3.26.0 as a mitigation strategy against potential security flaws
2019-03-11 16:30:16 +01:00
bohwaz
e93259bb23
SQLite3: add DEFENSIVE config for SQLite >= 3.26.0 as a mitigation strategy against potential security flaws
2019-03-11 16:26:15 +01:00
Nikita Popov
6818ca3c02
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-11 15:36:27 +01:00
Nikita Popov
1fd32e9c2f
Fixed bug #76717
...
Print INT_MIN as -INT_MAX-1 to avoid it getting parsed as a float
literal due to integer overflow.
2019-03-11 15:35:02 +01:00
Jakub Zelenka
f8850ccd85
Speed up TLS wrapper test for min and max versions
2019-03-10 16:36:13 +00:00
Jakub Zelenka
ee4fa7d482
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-10 16:34:58 +00:00
Jakub Zelenka
769d2d9b62
Speed up TLS wrapper tests when SSLv3 disabled
...
If SSLv3 is disabled in OpenSSL, then sslv3 is not available so the accept
times out. This commit removes the extra accept if SSLv3 is disabled.
2019-03-10 16:23:44 +00:00
Anatol Belski
3e92365fa2
Update libmagic.patch [skip ci]
2019-03-08 21:55:15 +01:00
Fabien Villepinte
d9a3cb0b36
Fix typo in libmagic version
2019-03-08 20:51:09 +01:00
Anatol Belski
65ffdc2adf
Fixed bug #77576 pull the libmagic implementation of gmtime_r
...
PHP already has all the checks to handle the *_r function variants.
Thus, reusing it to get right symbols.
2019-03-08 20:32:15 +01:00
Anatol Belski
58cb3312d6
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Sync with behavior change in OpenSSL 1.1.1b
fix news
bump versions after release
2019-03-08 15:55:34 +01:00
Anatol Belski
9177542b4d
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Sync with behavior change in OpenSSL 1.1.1b
fix news
bump versions after release
2019-03-08 15:54:27 +01:00
Anatol Belski
66bd861fcd
Sync with behavior change in OpenSSL 1.1.1b
...
A behavior change in revealed by some openssl_decrypt() based test,
where an encrypt API is used with a decrypt context. The EVP_Cipher*
functions will automatically choose the right operation depending on the
context passed.
(cherry picked from commit 19a44ffb7b )
2019-03-08 15:47:32 +01:00
Dmitry Stogov
0a416b3d97
ws
2019-03-07 13:59:18 +03:00
Dmitry Stogov
5da591c529
Fixed bug #77345 (Stack Overflow caused by circular reference in garbage collection)
2019-03-07 13:33:19 +03:00
Peter Kokot
59e76ec01d
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update editorconfig
2019-03-07 01:05:22 +01:00
Peter Kokot
488544b336
Update editorconfig
...
Changes:
- New property max_line_length
- COMMIT_EDITMSG file added when writing commit messages
- Markdown files can have trimmed trailing whitespace also to simplify
settings.
- https link used to EditorConfig page.
- Added also *.y, *.cpp, and *.inc files
- The tab_width moved to a new all files section
2019-03-07 01:03:56 +01:00
Christoph M. Becker
0d88388912
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77700 : Writing truecolor images as GIF ignores interlace flag
2019-03-06 00:37:38 +01:00
Christoph M. Becker
41fb0eaa11
Fix #77700 : Writing truecolor images as GIF ignores interlace flag
...
We revert the interlace flag related part of commit ff2822a[1], since
contrary to the transparent color, the interlace flag is not retained
by `gdImageCreatePaletteFromTrueColor()`. This also matches upstream
libgd.
[1] <http://git.php.net/?p=php-src.git;a=commit;h=ff2822a82b740edb8ccf307f080bae188c200fb9 >
2019-03-06 00:34:40 +01:00
Joe Watkins
b6308f5b48
fix news
2019-03-05 20:50:07 +01:00
Joe Watkins
58c5df3d37
bump versions after release
2019-03-05 18:28:47 +01:00
Remi Collet
72bfb2523a
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
add NEWS entry
2019-03-05 07:32:54 +01:00
Remi Collet
0e836f523a
add NEWS entry
2019-03-05 07:32:24 +01:00
Christoph M. Becker
007ac353dd
Update NEWS
2019-03-04 19:50:41 +01:00
Stanislav Malyshev
609195e991
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug #77630 - safer rename() procedure
2019-03-04 09:18:22 -08:00
Stanislav Malyshev
2cc1ab81c2
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix bug #77630 - safer rename() procedure
2019-03-04 09:17:14 -08:00
Stanislav Malyshev
e3133e4db7
Fix bug #77630 - safer rename() procedure
...
In order to rename safer, we do the following:
- set umask to 077 (unfortunately, not TS, so excluding ZTS)
- chown() first, to set proper group before allowing group access
- chmod() after, even if chown() fails
2019-03-04 09:15:11 -08:00
Anatol Belski
a976283c34
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix test portability
2019-03-04 14:30:01 +01:00
Anatol Belski
040196972c
Fix test portability
2019-03-04 14:28:47 +01:00
Christoph M. Becker
6ff0b24ef4
Update NEWS
2019-03-04 13:47:14 +01:00
Nikita Popov
4c68aaabf1
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-04 13:16:01 +01:00
Nikita Popov
3f00c9367d
Fixed bug #77691
...
We cannot replace an op1_def opcode with an ASSIGN, if it also has
a used res_def. Usually this doesn't happen because the res_def use
can be eliminated first. The example is a case where operand replacement
on the res_def use fails.
2019-03-04 13:11:12 +01:00
Remi Collet
06f7c177c8
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
add NEWS entries
2019-03-04 11:09:17 +01:00
Remi Collet
2694953ada
add NEWS entries
2019-03-04 11:09:01 +01:00
Stanislav Malyshev
6d60ed69a1
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug #77586 - phar_tar_writeheaders_int() buffer overflow
2019-03-03 23:33:48 -08:00
Stanislav Malyshev
3e8d8f7fb3
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix bug #77586 - phar_tar_writeheaders_int() buffer overflow
2019-03-03 23:33:43 -08:00
Stanislav Malyshev
e0f5d62bd6
Fix bug #77586 - phar_tar_writeheaders_int() buffer overflow
2019-03-03 23:05:32 -08:00
Stanislav Malyshev
e3f7c352dc
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update NEWS
Fix test error message
Fix bug #77563 - Uninitialized read in exif_process_IFD_in_MAKERNOTE
Fix bug #77540 - Invalid Read on exif_process_SOFn
Fix integer overflows on 32-bits
Fix #77431 SplFileInfo::__construct() accepts NUL bytes
Fix bug #77396 - Null Pointer Dereference in phar_create_or_parse_filename
2019-03-03 22:20:42 -08:00
Stanislav Malyshev
8363df3703
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Update NEWS
Fix test error message
Fix bug #77563 - Uninitialized read in exif_process_IFD_in_MAKERNOTE
Fix bug #77540 - Invalid Read on exif_process_SOFn
Fix integer overflows on 32-bits
Fix #77431 SplFileInfo::__construct() accepts NUL bytes
Fix bug #77396 - Null Pointer Dereference in phar_create_or_parse_filename
2019-03-03 22:20:35 -08:00
Stanislav Malyshev
759e841b24
Update NEWS
2019-03-03 20:10:12 -08:00
Stanislav Malyshev
44f87fbf36
Fix test error message
2019-03-03 19:30:14 -08:00
Stanislav Malyshev
8ac6fee856
Fix bug #77563 - Uninitialized read in exif_process_IFD_in_MAKERNOTE
...
Also fix for bug #77659
2019-03-03 18:35:43 -08:00
Stanislav Malyshev
5f0e62a3e5
Fix bug #77540 - Invalid Read on exif_process_SOFn
2019-03-03 18:35:26 -08:00
Stanislav Malyshev
5e824a88d0
Fix integer overflows on 32-bits
2019-03-03 18:35:04 -08:00
Christoph M. Becker
254a5914ad
Fix #77431 SplFileInfo::__construct() accepts NUL bytes
...
`SplFileInfo::__construct()` has to expect a path instead of a string,
analogous to `SplFileObject::__construct()`.
2019-03-03 18:23:46 -08:00
Stanislav Malyshev
7f0ab7c20c
Fix bug #77396 - Null Pointer Dereference in phar_create_or_parse_filename
2019-03-03 18:22:32 -08:00
Peter Kokot
fa574ddd6f
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update NEWS
Fix shared module generation on AIX bug #77676
2019-03-02 18:52:01 +01:00
Peter Kokot
637713c1a4
Update NEWS
2019-03-02 18:50:33 +01:00
Kevin Adler
700f876a1a
Fix shared module generation on AIX bug #77676
...
Makefiles for PHP extensions generated by phpize expect the PHP_MODULES
to contain a list of libtool .la files so that it can read the $dlname
variable from them by sourcing them in to a shell. On AIX, the code was
setting PHP_MODULES to a list of .so files, which meant the dlname was
blank, preventing the tests from being able to run.
Change the AIX code path in the PHP_SHARED_MODULE macro to match the
output on other platforms, using libtool .la files.
2019-03-02 18:45:55 +01:00
Peter Kokot
c2fb85547d
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update NEWS
Fix #77609 : Tests from mailparse extension fails
2019-03-01 22:44:37 +01:00
Peter Kokot
c39fb1fc4f
Update NEWS
2019-03-01 22:44:22 +01:00
Ralf Habacker
3ead672394
Fix #77609 : Tests from mailparse extension fails
...
Add installed php extensions to temporary created ini file
In php extensions configured with phpize, a temporarily generated
php.ini is used for testing, but currently contains no installed
PHP extensions, which is required by the mailparse extension,
for example.
Installed extensions must be added with their absolute path,
because the extension_dir parameter is already occupied.
See https://bugs.php.net/bug.php?id=77609
2019-03-01 22:32:01 +01:00
Nikita Popov
8be12e770f
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-01 14:55:15 +01:00
Jay Satiro
5025eb05bd
curl_error: return an empty string if no error occurred
...
CURLOPT_ERRORBUFFER doc says "Do not rely on the contents of the
buffer unless an error code was returned." [1]
Prior to this change the error buffer was returned even if no error had
occurred, and that buffer may contain incorrect information in such a
case. [2]
[1]: https://curl.haxx.se/libcurl/c/CURLOPT_ERRORBUFFER.html
[2]: https://github.com/curl/curl/issues/3629
2019-03-01 14:54:37 +01:00
Nikita Popov
16cda039b5
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-01 14:51:55 +01:00
Kevin Adler
006355c9fa
Fix bug #77677 : WCOREDUMP not available on all systems
...
Add #ifdef WCOREDUMP around all uses.
Also Change core dump message to yes/no/unknown in lsapilib.
2019-03-01 14:51:15 +01:00
Nikita Popov
4dc0662eca
Check for NULL GC type in objects_store_del
...
This might happen if OBJ_RELEASE is used on an object that was already
released by GC. Specific cases of this issue were previously fixed in
ffaee27478 and
72104d2b6e , however the issue still
affects 3rd-party extensions using OBJ_RELEASE.
The whole GC type NULL + OBJ_IS_VALID + IS_FREE_CALLED system seems
overly complicated and can probably be simplified in 7.4.
2019-03-01 14:32:11 +01:00
Derick Rethans
d63a7aa6cf
Merge branch 'PHP-7.2' into PHP-7.3
2019-02-28 13:51:10 +00:00
Derick Rethans
7d001aff03
Merge branch 'DateIntervalBogusData' into PHP-7.2
2019-02-28 13:50:58 +00:00
Derick Rethans
a890c5beb8
Fixed bug #50020 (DateInterval:createDateFromString() silently fails)
2019-02-28 13:50:35 +00:00
Anatol Belski
58d3dd466f
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Sync with behavior change in OpenSSL 1.1.1b
2019-02-28 12:52:28 +01:00
Anatol Belski
19a44ffb7b
Sync with behavior change in OpenSSL 1.1.1b
...
A behavior change in revealed by some openssl_decrypt() based test,
where an encrypt API is used with a decrypt context. The EVP_Cipher*
functions will automatically choose the right operation depending on the
context passed.
2019-02-28 12:48:47 +01:00
Nikita Popov
019fd1d9ba
Merge branch 'PHP-7.2' into PHP-7.3
2019-02-28 09:58:47 +01:00
Nikita Popov
9ad9cc71ff
Fixed bug #77669
2019-02-28 09:58:01 +01:00
Nikita Popov
461e140afc
Merge branch 'PHP-7.2' into PHP-7.3
2019-02-25 13:01:18 +01:00
Nikita Popov
af37d58cf7
Fix assertion in Exception::getMessage() if $message is a ref
...
And same for other properties. Encountered in Symfony.
2019-02-25 13:00:16 +01:00
Xinchen Hui
4ac954ac3e
Fixed compiler warning
2019-02-25 15:04:04 +08:00
Xinchen Hui
fb3f078eeb
Update NEWS
2019-02-25 15:00:37 +08:00
Xinchen Hui
e8768b338c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #77660 (Segmentation fault on break 2147483648)
2019-02-25 15:00:23 +08:00
Xinchen Hui
1c22ace058
Fixed bug #77660 (Segmentation fault on break 2147483648)
2019-02-25 15:00:14 +08:00
Xinchen Hui
3b5475e9ee
Update NEWS
2019-02-25 14:42:18 +08:00
Xinchen Hui
3c3d59aa39
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #77664 (Segmentation fault when using undefined constant in custom wrapper)
2019-02-25 14:42:01 +08:00
Xinchen Hui
4a72dd782d
Fixed bug #77664 (Segmentation fault when using undefined constant in custom wrapper)
2019-02-25 14:41:46 +08:00
Jakub Zelenka
900d4cdb9e
Merge branch 'PHP-7.2' into PHP-7.3
2019-02-24 13:14:36 +00:00
Jakub Zelenka
01c00953ff
Print empty string in test for but 77390 just once
2019-02-24 13:11:27 +00:00
Jakub Zelenka
c814b34b1d
Use spaces instead of tabs in bug 77390 test
2019-02-24 13:05:43 +00:00
Nikita Popov
66fda0cdb1
Remove result def during jmp_set optimization
2019-02-22 13:41:47 +01:00
Nikita Popov
33c2b47de3
Merge branch 'PHP-7.2' into PHP-7.3
2019-02-22 12:00:20 +01:00
Nikita Popov
2cfb09caa7
Fix inference warning about missing key type
2019-02-22 11:55:16 +01:00
Christoph M. Becker
831eba0eac
Fix #77648 : BOM in sapi/apache2handler/php_functions.c
2019-02-22 11:10:50 +01:00
Nikita Popov
bd2a00acdf
Merge branch 'PHP-7.2' into PHP-7.3
2019-02-22 10:13:21 +01:00
Nikita Popov
5388143855
Fixed bug #77652
2019-02-22 10:11:54 +01:00
Frank Denis
5c221bcd01
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug #77646
2019-02-21 16:34:42 +01:00
Frank Denis
08089b575b
Fix bug #77646
2019-02-21 16:33:03 +01:00
Frank Denis
e7ca69f1fa
Fix bug #77646
2019-02-21 16:14:33 +01:00
Nikita Popov
e5d8ac92a4
Merge branch 'PHP-7.2' into PHP-7.3
2019-02-21 13:45:53 +01:00
Nikita Popov
934691fabb
Fixed bug #77597
...
The same variable was reused in two nested loops... The test doesn't
fail on 7.2, but I'm fixing this here anyway as the code is clearly
wrong, and probably erroneous in other situations.
2019-02-21 13:42:47 +01:00
Nikita Popov
af324e24df
Fix issue mentioned in #77302
...
Apparently Serializable::serialize() can return NULL, which is encoded
as N;. As we do not allow back-references to non-object values in
PHP 7.3 we need to make sure that any references are also compiled to
N;.
2019-02-21 12:04:49 +01:00
Nikita Popov
b3e0e555c8
Merge branch 'PHP-7.2' into PHP-7.3
2019-02-20 12:11:56 +01:00
Abyr Valg
74888bede8
OpenSSL: Improve non-blocking eof test
2019-02-20 12:11:30 +01:00
Christopher Jones
4a6a9c79fd
Merge branch 'PHP-7.2' into PHP-7.3
2019-02-20 11:11:06 +11:00
Christopher Jones
7a9c20f3fd
Correct skipif use for OCI8 password tests
2019-02-20 11:10:57 +11:00
Christoph M. Becker
2ec59b3ef3
Prepare main branch for PHP 7.3.4
2019-02-19 13:06:40 +01:00
Remi Collet
961900fa17
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
bump version to 7.2.17-dev
2019-02-19 12:47:00 +01:00
Remi Collet
b243f2feca
bump version to 7.2.17-dev
2019-02-19 12:46:52 +01:00
Nikita Popov
3b3fafa637
Merge branch 'PHP-7.2' into PHP-7.3
2019-02-18 14:04:15 +01:00
Nikita Popov
928c42211f
Make MADV_HUGEPAGE conditional on USE_ZEND_ALLOC_HUGE_PAGES
...
There have been multiple reports of large slowdowns due to the
use of MADV_HUGEPAGE, so make it conditional on
USE_ZEND_ALLOC_HUGE_PAGES, just like MAP_HUGETLB already is.
2019-02-18 14:03:07 +01:00
Christoph M. Becker
767fa3dc02
Fix #77626 : Persistence confusion in php_com_import_typelib()
...
We apply only the most minimal fix here, and will cater to the
unnecessary re-allocation for PHP-7.4.
We don't need to add a regression test, since bug39606.phpt and
bug77621.phpt already show the misbehavior.
2019-02-15 18:56:24 +01:00
Christoph M. Becker
8946ad3000
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77621 : Already defined constants are not properly reported
2019-02-15 00:37:39 +01:00
Christoph M. Becker
de738496c2
Fix #77621 : Already defined constants are not properly reported
...
We must not check uninitialized values (i.e. `c.value`), and we have to
use proper types for printf-style formats (i.e. `char *` instead of
`zend_string *`).
2019-02-15 00:35:21 +01:00
Nikita Popov
eb063c8a9f
Fixed bug #77612
...
Port php_setcookie() to use the smart_str API to ensure that there
can be no string truncation issues.
2019-02-14 10:42:59 +01:00
Nikita Popov
7bc162f928
Work around compiler flag dependent ABI
2019-02-14 09:59:10 +01:00
Peter Kokot
a89948320b
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Refactor timelib.m4
2019-02-13 19:26:02 +01:00
Peter Kokot
0ffa84d740
Refactor timelib.m4
...
The ext/date/lib is bundled library and also includes additional
timelib.m4 macros and checks specific for PHP.
All the checks in the timelib.m4 are already done in the PHP's
configure.ac:
- headers except for io.h and strings.h
- two functions checked strftime and gettimeofday
- if size of longint is 8
- if size of int is 4
- int32_t and uint32_t types using the PHP_CHECK_STDINT_TYPES
Macro `AC_TIMELIB_C_BIGENDIAN` defined in timelib.m4 is not used.
The two checkings for strtoll and atoll have been moved to date extension's
config0.m4 file.
Additional check for headers <io.h> and <strings.h> has been added to
config0.m4 of the date extension.
Therefore the timelib.m4 can be simplified and removed from the bundled
library to have easier maintenance in the later branches and also
upstream library.
2019-02-13 19:24:39 +01:00
Johannes Schlüter
aa7fbdf2cd
Merge branch 'PHP-7.2' into PHP-7.3
2019-02-12 15:00:15 +01:00
Johannes Schlüter
a4bce453bc
Merge remote-tracking branch 'origin/PHP-7.3' into PHP-7.3
2019-02-12 14:59:59 +01:00
Johannes Schlüter
56dba3f3d0
Merge remote-tracking branch 'origin/PHP-7.2' into PHP-7.2
2019-02-12 14:59:27 +01:00
Nikita Popov
5297bed454
Merge branch 'PHP-7.2' into PHP-7.3
2019-02-12 11:43:34 +01:00
DanielCiochiu
07877c46e3
Fixed bug #75546
...
By respecting the SILENT flag when checking the visibility of a
class constant.
2019-02-12 11:42:33 +01:00
Nikita Popov
2ea5a9cc64
Merge branch 'PHP-7.2' into PHP-7.3
2019-02-12 10:50:22 +01:00
Nikita Popov
8e34de4756
Fixed bug #77608
...
Remove special handling of doubles and escape them as usual instead.
2019-02-12 10:49:20 +01:00
Nikita Popov
97dd1591af
Merge branch 'PHP-7.2' into PHP-7.3
2019-02-12 10:10:22 +01:00
hsldymq
b5cb3ac8ec
Make pid & uid available while handling realtime signals
2019-02-12 10:09:33 +01:00
Nikita Popov
8ed775f548
Merge branch 'PHP-7.2' into PHP-7.3
2019-02-12 09:57:18 +01:00
Nikita Popov
a109fddba4
Remove "defensive copy" of DatePeriod properties
...
get_properties() constructs these as fresh objects with no relation
to the internals, there is no need to clone them again. Additionally
the current implementation leaks memory, because the original objects
are never freed (see PR #3121 ).
2019-02-12 09:54:52 +01:00
Nikita Popov
c553d17f11
Merge branch 'PHP-7.2' into PHP-7.3
2019-02-12 09:29:05 +01:00
Ben Ramsey
c4294440ff
Fixed bug #77564 : Memory leak in exif_process_IFD_TAG
...
The memory leak occurs when more than one UserComment tag is present in
the EXIF data. It's still considered corrupt EXIF data, but this ensures
the memory is freed before trying to set to already allocated memory.
2019-02-12 09:28:33 +01:00
Dmitry Stogov
b6e58dcd22
Fixed bug #77599 (Unbuffered queries; native prepared statements memory leak)
2019-02-12 10:55:05 +03:00
Dmitry Stogov
470f5891d4
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Avoid dependency on "struct flock" fields order.
2019-02-12 10:21:59 +03:00
Dmitry Stogov
9222702633
Avoid dependency on "struct flock" fields order.
2019-02-12 10:15:16 +03:00
Anatol Belski
b71146bde4
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Replace broken binary SDK version
2019-02-11 22:30:28 -08:00
Anatol Belski
186b5de575
Replace broken binary SDK version
2019-02-11 22:28:34 -08:00
Anatol Belski
ee0963c58c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update SDK version for AppVeyor
2019-02-11 22:13:42 -08:00
Anatol Belski
e74a918621
Update SDK version for AppVeyor
2019-02-11 22:12:16 -08:00
Darek Slusarczyk
6f7a47db5d
Merge branch 'PHP-7.2' into PHP-7.3
2019-02-11 18:18:57 +01:00
Darek Slusarczyk
83d2bc9b6d
Merge branch 'PHP-7.1' into PHP-7.2
2019-02-11 18:08:21 +01:00
Darek Slusarczyk
2eaabf06fc
security fix - by default 'local infile' is disabled:
...
- set default for mysqli.allow_local_infile=0
- explicitly disable PDO::MYSQL_ATTR_LOCAL_INFILE in case of lack of driver options
- add getAttribute support for PDO::MYSQL_ATTR_LOCAL_INFILE
- update existing tests where needed
- add new tests [checking default value and setting on] the 'local infile' in ext/mysqli and ext/pdo_mysql
2019-02-11 18:04:51 +01:00
Nikita Popov
4da67537c1
Merge branch 'PHP-7.2' into PHP-7.3
2019-02-11 15:50:47 +01:00
Ahmed Abdou
ec28d4c247
Fix bug #51068 (glob:// do not support current path relative)
...
Fix DirectoryIterator glob://* current path relative queries
2019-02-11 15:50:27 +01:00
Nikita Popov
be64a06b1c
Merge branch 'PHP-7.2' into PHP-7.3
2019-02-11 11:33:04 +01:00
johnstevenson
fe4d7248cc
Fix #77552 : Uninitialized buffer in stat functions
2019-02-11 11:31:55 +01:00
Guilliam Xavier
b3935ed2af
Fix tests bareword fallback with error suppression
...
(cherry picked from commit aad39879f2 )
(cherry picked from commit 76f8a908bb )
2019-02-11 09:36:03 +01:00
Xinchen Hui
515c51953f
regenerate with re2c 1.0.3
2019-02-11 15:42:55 +08:00
Xinchen Hui
4f044f680c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #77589 (Core dump using parse_ini_string with numeric sections)
Conflicts:
Zend/zend_ini_scanner.c
2019-02-11 15:33:59 +08:00
Xinchen Hui
92055ca79b
Fixed bug #77589 (Core dump using parse_ini_string with numeric sections)
...
Section name should not be typed(NULL, FALSE, TRUE etc)
2019-02-11 15:27:29 +08:00
Christopher Jones
bdce2954c3
Merge PDO_OCI PR
2019-02-11 16:38:23 +11:00
Christopher Jones
983ba59e3e
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
PDO_OCI tracing attribute PR merge
pdo_oci: Add client identifier and module attrs
pdo_oci: Register new attr constants and add tests
pdo_oci: Add PDO_OCI_ATTR_ACTION and CLIENT_INFO
2019-02-11 16:36:39 +11:00
Christopher Jones
1f86dcdd13
PDO_OCI tracing attribute PR merge
2019-02-11 16:19:13 +11:00
Cameron Porter
38363f4820
pdo_oci: Add client identifier and module attrs
...
Add tests for the new attributes, and check the setAttribute return
value.
2019-02-11 16:10:47 +11:00
Cameron Porter
fc940f0703
pdo_oci: Register new attr constants and add tests
2019-02-11 16:10:47 +11:00
Cameron Porter
a095472e62
pdo_oci: Add PDO_OCI_ATTR_ACTION and CLIENT_INFO
...
Add the ability to set the action and client info on the database
session for PDO OCI using PDO attributes.
2019-02-11 16:10:47 +11:00
Nikita Popov
471b1d54d5
Merge branch 'PHP-7.2' into PHP-7.3
2019-02-08 10:09:39 +01:00
YanTao
3b09123de3
Fix FTPS passive mode of data channel event poll
...
Bugfix: when using passive mode of FTPS protocol, data channel events
should be polled when creating data connection channel, instead of polling
the event of ftp's self control channel, which may cause ftp transfer
problem while using ftps and passive mode.
2019-02-08 09:50:29 +01:00
Anatol Belski
1bbf7013c8
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Sync test with changes in libcurl 7.64.0
Sync test for libcurl 7.64.0
2019-02-07 22:28:45 -08:00
Anatol Belski
e27301c7b3
Sync test with changes in libcurl 7.64.0
2019-02-07 22:22:38 -08:00
Anatol Belski
c9f0e12353
Sync test for libcurl 7.64.0
2019-02-07 22:21:59 -08:00
Derick Rethans
65d81833bb
Use pkg-config for ICU, as the old icu-config has been deprecated
2019-02-07 14:00:39 +01:00
Derick Rethans
8be649d908
Merge branch 'PHP-7.2' into PHP-7.3
2019-02-07 11:12:42 +00:00
Derick Rethans
e2edaa0cee
Use pkg-config for ICU, as the old icu-config has been deprecated
2019-02-07 10:18:32 +00:00
Christoph M. Becker
b2907527e9
Fix NEWS
...
Bug #77287 is already fixed in PHP 7.3.2.
2019-02-05 23:04:31 +01:00
Christoph M. Becker
c0228f741e
[ci skip] Add missing notes regarding gc_status()
2019-02-03 18:28:43 +01:00
Joe Watkins
e1c93d1fb2
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Properly check for array_replace_recursive in sccp.c
2019-02-03 08:41:26 +01:00
Tyson Andre
cf56832d00
Properly check for array_replace_recursive in sccp.c
...
Due to a typo, this code used to check for array_merge_recursive
twice.
2019-02-03 08:40:21 +01:00
Dmitry Stogov
203a2da30a
Fixed bug #77329 (Buffer Overflow via overly long Error Messages)
2019-02-01 11:11:15 +03:00
Joe Watkins
7d1df603ad
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug 76596: phpdbg supports display_errors=stderr
2019-01-30 18:28:25 +01:00
Kevin Abel
3890c8bce5
Fix bug 76596: phpdbg supports display_errors=stderr
2019-01-30 18:27:57 +01:00
Guillaume Degoulet
f27f902266
Fix #77546 iptcembed broken function
2019-01-30 17:09:12 +01:00
Christoph M. Becker
362d6ce834
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Prepare main branch for PHP 7.2.16
2019-01-30 01:29:05 +01:00
Christoph M. Becker
cbc5a141f7
Prepare main branch for PHP 7.2.16
2019-01-30 01:27:57 +01:00
Nikita Popov
14684af0d0
Merge branch 'PHP-7.2' into PHP-7.3
2019-01-29 09:40:06 +01:00
Nikita Popov
34898e9766
Make special assert() handling independent of compiler flags
2019-01-29 09:39:12 +01:00
Nikita Popov
ab3c94a54f
Merge branch 'PHP-7.2' into PHP-7.3
2019-01-28 09:23:23 +01:00
ekinhbayar
ef68cd3249
Fixed bug #77530 : PHP crashes when parsing "(2)::class"
2019-01-28 09:22:18 +01:00
Jakub Zelenka
0da13086bd
Merge branch 'PHP-7.2' into PHP-7.3
2019-01-25 14:16:08 +00:00
Jakub Zelenka
dc2ffdeed7
Fix bug #77390 (feof might hang on TLS streams in case of fragmented TLS records)
...
Simplified version of the fix from Abyl Valg so credit to him.
2019-01-25 14:13:11 +00:00
Jakub Zelenka
d9b29029f9
Update and integrate openssl client proxy test
2019-01-25 14:09:55 +00:00
Abyr Valg
0c84c2ef50
Add a test for fragmented SSL packets
2019-01-25 14:09:55 +00:00
Nikita Popov
f78e681428
Fixed bug #77498
...
I've renamed the function to the same name as the exported symbol
in master.
2019-01-25 11:01:06 +01:00
Nikita Popov
3c98c2d0cb
Fixed bug #77514
2019-01-24 15:13:49 +01:00
Nikita Popov
d460e06cb9
Merge branch 'PHP-7.2' into PHP-7.3
2019-01-24 13:45:40 +01:00
Nikita Popov
08c5679380
Merge remote-tracking branch 'php-src/PHP-7.2' into PHP-7.2
2019-01-24 13:45:27 +01:00
Nikita Popov
e926dc9305
Merge branch 'PHP-7.2' into PHP-7.3
2019-01-24 13:40:36 +01:00
Nikita Popov
cce2e33c84
Revert "Prefix error_code with underscore in FastZPP implementation"
...
This reverts commit 6305119a51 .
This is a source-compatibility break for extensions that define
custom FastZPP macros, such as ext/uv:
https://github.com/bwoebi/php-uv/blob/a983eb17b69f74a45d785ddc6a7bff3d4531b88c/php_uv.c#L75
I don't think that FastZPP was intended to be used this way, but
let's revert this from release branches to avoid extension breakage.
2019-01-24 13:36:47 +01:00
Dmitry Stogov
aa9a8dbda3
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #77494 (Disabling class causes segfault on member access)
2019-01-24 13:07:31 +03:00
Dmitry Stogov
73f222d722
Fixed bug #77494 (Disabling class causes segfault on member access)
2019-01-24 13:06:36 +03:00
Nikita Popov
e0f97ae7ec
Merge branch 'PHP-7.2' into PHP-7.3
2019-01-24 10:57:45 +01:00
Nikita Popov
526344aa5e
Add flag to disable jumptable optimization
...
This is useful for coverage. While it is currently safe to just
skip over the SWITCH_* opcodes, this may not be true in the future
due to opcache optimizations, so it's safer to disable emission of
SWITCH_* opcodes entirely.
2019-01-24 10:56:04 +01:00
Christoph M. Becker
19a9a6ba24
Prepare main branch for PHP 7.3.3
2019-01-22 14:04:03 +01:00
Nikita Popov
76760901fa
Fixed bug #77287
...
There may be an EXT_NOP opcode before the parameter list, we should
skip over it.
2019-01-22 12:15:06 +01:00
George Wang
6a0a600176
Merge branch 'PHP-7.2' into PHP-7.3
2019-01-20 15:11:37 -05:00
George Wang
66d72377d0
Checkin LiteSpeed SAPI 7.2.
2019-01-20 15:10:19 -05:00
Anatol Belski
a1b1c53d13
Update NEWS [ci skip]
2019-01-20 16:00:25 +01:00
Anatol Belski
969e57c7ac
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update NEWS [ci skip]
2019-01-20 15:59:08 +01:00
Anatol Belski
d978590c74
Update NEWS [ci skip]
2019-01-20 15:58:19 +01:00
Anatol Belski
52730fa30a
Skip test on unsuitable build
...
This test reveals a difference between TS and NTS through all the
versions, which is probably too late to fix at this stage of 7.3.
While NTS always relies on the system getcwd(), TS uses a fake CWD
which might get out of sync when the real dir is deleted. Thus,
skip test on unsuitable build. Investigate possibilities to fix this
edge case for later versions.
2019-01-19 13:53:32 +01:00
Christoph M. Becker
2966da70cf
Fix failing test
2019-01-19 11:13:13 +01:00
Christoph M. Becker
1907cbd8b3
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77479 : imagewbmp() segfaults with very large images
2019-01-19 10:18:20 +01:00
Christoph M. Becker
44fa0b0f31
Fix #77479 : imagewbmp() segfaults with very large images
...
We must not proceed working with the Wbmp structure, if it hasn't been
allocated.
2019-01-19 10:16:02 +01:00
Anatol Belski
4254bf87ba
Make test output more reliable
2019-01-19 03:33:37 +01:00
Anatol Belski
8b20e7b68b
Fixed bug #77484 Zend engine crashes when calling realpath in invalid working dir
2019-01-19 02:36:51 +01:00
Nikita Popov
986b9b5ae3
Add additional no_sanitize_address attributes
...
To fix bug #77447 in release mode as well.
2019-01-18 15:02:30 +01:00
Nikita Popov
14b5302591
Merge branch 'PHP-7.2' into PHP-7.3
2019-01-18 12:48:52 +01:00
Lauri Kenttä
dbe7f2a41a
Fix seeking in php://input
2019-01-18 12:44:47 +01:00
Nikita Popov
de38ce1a2e
Merge branch 'PHP-7.2' into PHP-7.3
2019-01-18 12:05:11 +01:00
Pedro Magalhães
32ae716037
Fixed bug #76675
...
Leave a reference to the resource in the php_curl.
2019-01-18 12:04:25 +01:00
Jakub Zelenka
25ffdc8dc9
List me in the openssl maintainers
...
I have been basically doing that since 2015 or so
2019-01-17 20:04:44 +00:00
Jakub Zelenka
766b4fd515
Fix bug #77430 (php-fpm crashes with Main process exited)
2019-01-17 18:37:09 +00:00
Christoph M. Becker
26b5aa8584
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #73614 : gdImageFilledArc() doesn't properly draw pies
2019-01-16 20:22:37 +01:00
Christoph M. Becker
61cfa34e11
Fix #73614 : gdImageFilledArc() doesn't properly draw pies
...
The fix for PHP bug 43828[1] changed the algorithm from drawing filled
pies from drawing multiple triangles to drawing a single polygon. Due
to quirks of the filled polygon drawing algorithm, we had to filter out
extraneous vertices. This lead, however, to a bug regarding displaced
starting and ending points near 90° and 270° degrees, which we fix by
reinserting these vertices if they had been removed.
This fix is a port of libgd/libgd@1406b1a .
[1] <https://bugs.php.net/bug.php?id=43828 >
2019-01-16 20:10:04 +01:00
Dmitry Stogov
1a306cc9a1
Fixed bug #77308 (Unbuffered queries memory leak)
2019-01-14 13:59:30 +03:00
Nikita Popov
5c3b17ca68
Merge branch 'PHP-7.2' into PHP-7.3
...
[ci skip]
2019-01-14 11:49:58 +01:00
wbob
5ac9990ddf
document open_basedir and realpath cache coupling in php.ini
...
[ci skip]
2019-01-14 11:49:45 +01:00
Nikita Popov
c8c5a3ab8a
Fixed bug #77447
...
By disabling asan for CPU support helpers used in ifunc resolvers.
2019-01-14 11:44:48 +01:00
Dmitry Stogov
920450534e
Fixed bug #77263 (Segfault when using 2 RecursiveFilterIterator)
2019-01-14 13:18:28 +03:00
Nikita Popov
d6212835f2
Merge branch 'PHP-7.2' into PHP-7.3
2019-01-14 10:23:44 +01:00
Nikita Popov
3ad0ebdf5c
Fixed bug #77454
2019-01-14 10:22:48 +01:00
Anatol Belski
e3e2a7f7a8
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update SDK version for AppVeyor
2019-01-12 22:14:35 +01:00
Anatol Belski
8f66ca8189
Update SDK version for AppVeyor
2019-01-12 22:13:14 +01:00
Nikita Popov
b35a20e919
Merge branch 'PHP-7.2' into PHP-7.3
2019-01-11 10:55:26 +01:00
Ondřej Surý
1ea58b6e78
Fix rl_completion_matches detection
...
Also fix a typo when checking for rl_on_new_line in readline library.
2019-01-11 10:55:07 +01:00
Nikita Popov
e6eac08abd
Merge branch 'PHP-7.2' into PHP-7.3
2019-01-11 10:29:34 +01:00
Kevin Adler
332b58f865
Fix bug #77361 (configure fails on 64-bit AIX when opcache enabled)
...
In f904830012 , support for GNU Hurd was added to the opcache and
the configure check to ensure the opcache knows the flock struct
layout prior to building was changed check for two cases: BSD layout
and Linux layout. All the existing hard-coded cases in
ZendAccelerator.h follow these two cases, except for 64-bit AIX.
This means that even though building on 64-bit AIX would work,
the configure script refuses to continue.
Add a new configure check for the 64-bit AIX case and a new
compiler definition HAVE_FLOCK_AIX64. Now that all the cases are
covered, simplify the ifdef logic around these three HAVE_FLOCK_*
macros:
- The macOS and the various BSD flavors fall under HAVE_FLOCK_BSD
- Linux, HP-UX, GNU Hurd, 32-bit AIX, and SVR4 environments
fall under HAVE_FLOCK_LINUX
- 64-bit AIX falls under HAVE_FLOCK_AIX64
The only difference between the existing HAVE_FLOCK_LINUX and
the hard-coded Linux/HP-UX/Hurd case is that the latter
initialized the 5th member to 0, but since the C standard already
says that un-initialized members will be initialized to 0,
it's effectively the same.
2019-01-11 10:21:02 +01:00
Jakub Zelenka
9c010cefa3
Merge branch 'PHP-7.2' into PHP-7.3
2019-01-10 20:16:06 +00:00
Alexander Kurilo
1a1e12c2a9
Fix cleaning up after openssl_pkcs7_verify_basic test
2019-01-10 20:09:42 +00:00
Alexander Kurilo
1fab01be5b
Generate certs for openssl tests on the fly
...
The idea is to create an easy way to provide a certificate that never
expires. In order to make it cross-platform, PHP is used rather than
openssl CLI app. Using openssl to generate certificates for tests that
test openssl might be not the best idea but pros seem to outweight cons
that this "recursice dependency" adds
2019-01-10 20:09:42 +00:00
Christoph M. Becker
3f9ddeb122
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #73281 : imagescale(…, IMG_BILINEAR_FIXED) can cause black border
2019-01-10 16:27:43 +01:00
Christoph M. Becker
6b4cdbaade
Fix #73281 : imagescale(…, IMG_BILINEAR_FIXED) can cause black border
...
We port the upstream fixes for libgd/libgd#329 and libgd/libgd#224 .
2019-01-10 16:11:23 +01:00
Christoph M. Becker
1e407256f2
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77272 : imagescale() may return image resource on failure
2019-01-10 14:25:11 +01:00
Christoph M. Becker
772b1cb245
Fix #77272 : imagescale() may return image resource on failure
...
`_gdScaleHoriz()` and `_gdScaleVert()` may fail, but don't signal
failure since they are void functions. We change that according to
upstream libgd.
We also remove the unused `Scale()` function, which doesn't exist in
upstream libgd either, right away.
2019-01-10 14:05:09 +01:00
Nikita Popov
00e5d0e859
Merge branch 'PHP-7.2' into PHP-7.3
2019-01-10 10:57:41 +01:00
Nikita Popov
5d33024a5d
Fixed bug #77439
2019-01-10 10:57:04 +01:00
Nikita Popov
ade702a0d2
Fixed bug #77434
...
Mark arrays containing partial arrays as partial. This was already
done for the ADD_ARRAY_ELEMENT case, but not for ASSIGN_DIM.
2019-01-10 10:25:55 +01:00
Xinchen Hui
16176ad0e3
Incase of invalid read
2019-01-10 14:50:39 +08:00
Anatol Belski
300249226b
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Revert visibility
2019-01-09 16:16:47 +01:00
Andrey Hristov
7a88f89a90
Revert visibility
...
(cherry picked from commit 71ffae9605 )
2019-01-09 13:39:48 +01:00
Christoph M. Becker
c4c6b80b9c
Sync NEWS with 7.3.1
...
All these bugs are fixed in PHP-7.3.1 already.
2019-01-09 11:46:48 +01:00
Lauri Kenttä
63c38c9e49
Fixed bug #77289
...
Use mysqlnd_restart_psession and mysqlnd_end_psession in PDO MySQL.
This makes sure we free last_message while ZMM is still live.
2019-01-09 09:50:26 +01:00
Nikita Popov
bf4dab0163
Make operator swapping depend on IGNORE_OVERLOADING flag
...
Add MUL back to the list and instead make the entire optimization
depend on IGNORE_OVERLOADING, which is there exactly so we can make
these kinds of assumptions.
2019-01-09 09:27:56 +01:00
Sara Golemon
85f440362b
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Bump for 7.1.27
2019-01-08 14:20:18 -05:00
Sara Golemon
bbc10549e8
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Bump for 7.1.27
2019-01-08 14:19:37 -05:00
Sara Golemon
fabade1573
Bump for 7.1.27
2019-01-08 14:17:43 -05:00
Xinchen Hui
cd49db9d47
Fixed bug #77266 (Assertion failed in dce_live_ranges)
2019-01-08 19:19:01 +08:00
Nikita Popov
76c687feaf
Fixed bug #77428
...
mb_ereg_replace historically has not supported escaping backslashes
with backslashes. Go back to that behavior for BC reasons.
2019-01-08 10:21:01 +01:00
Nikita Popov
7f8cab2535
Merge branch 'PHP-7.2' into PHP-7.3
2019-01-08 09:38:02 +01:00
Nikita Popov
1165a9068c
Don't swap operands of ZEND_MUL
...
If this is used with operator overloading, then the operation does
not necessarily commute (for example, matrix multiplication).
2019-01-08 09:37:49 +01:00
Remi Collet
b9072788cd
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
cleanup merge
2019-01-08 09:34:05 +01:00
Remi Collet
0d9935739c
cleanup merge
2019-01-08 09:33:41 +01:00
Nikita Popov
f7a7d32e65
Merge branch 'PHP-7.2' into PHP-7.3
2019-01-08 09:26:31 +01:00
twosee
6305119a51
Prefix error_code with underscore in FastZPP implementation
...
To avoid conflicts with parameter names.
2019-01-08 09:25:35 +01:00
Derick Rethans
24b446291d
Merge branch 'PHP-7.2' into PHP-7.3
2019-01-07 12:48:49 +00:00
Derick Rethans
bd1d2c7bfe
Update tests due to data changes in tzdata 2018i
2019-01-07 12:48:42 +00:00
Christoph M. Becker
deb88f2269
Fix NEWS
...
The fixes for bug #77359 and #77360 have been ported to PHP-7.3.1, and
the release has been postponed by one week.
2019-01-07 13:11:04 +01:00
Derick Rethans
11105e90c4
Updated to version 2018.9 (2018i)
2019-01-07 11:50:16 +00:00
Derick Rethans
7ad9d6a63b
Empty merge
2019-01-07 11:50:16 +00:00
Derick Rethans
81da7f75e3
Updated to version 2018.9 (2018i)
2019-01-07 11:50:14 +00:00
Remi Collet
ddccc1db73
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
[ci skip] fix NEWS
2019-01-07 11:12:46 +01:00
Remi Collet
3e780d7f25
[ci skip] fix NEWS
2019-01-07 11:12:13 +01:00
Remi Collet
88fc59d4c9
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
[ci skip] fix NEWS
2019-01-07 11:02:58 +01:00
Remi Collet
03a630ded7
[ci skip] fix NEWS
2019-01-07 11:02:40 +01:00
Nikita Popov
6f75890e7b
Fix one issue reported in bug #77310
...
SCCP did not handle array ASSIGN_* with a BOT operand correctly.
2019-01-07 10:05:23 +01:00
Stanislav Malyshev
b5669d207b
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Still leaking for some reason, XFAIL for now, I'll look into it later.
2019-01-07 01:04:16 -08:00
Stanislav Malyshev
289c45109c
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Still leaking for some reason, XFAIL for now, I'll look into it later.
2019-01-07 01:03:26 -08:00
Stanislav Malyshev
27625f063e
Still leaking for some reason, XFAIL for now, I'll look into it later.
2019-01-07 01:03:04 -08:00
Stanislav Malyshev
aeec40cb50
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug #77418 - Heap overflow in utf32be_mbc_to_code
Add NEWS
[ci skip] Add NEWS
Fix more issues with encodilng length
Fix #77270 : imagecolormatch Out Of Bounds Write on Heap
Fix bug #77380 (Global out of bounds read in xmlrpc base64 code)
Fix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
Fix bug #77370 - check that we do not read past buffer end when parsing multibytes
Fix #77269 : Potential unsigned underflow in gdImageScale
Fix bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)
Fix bug #77242 (heap out of bounds read in xmlrpc_decode())
Regenerate certs for openssl tests
2019-01-06 23:35:09 -08:00
Stanislav Malyshev
cfe77ea543
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix bug #77418 - Heap overflow in utf32be_mbc_to_code
Add NEWS
[ci skip] Add NEWS
Fix more issues with encodilng length
Fix #77270 : imagecolormatch Out Of Bounds Write on Heap
Fix bug #77380 (Global out of bounds read in xmlrpc base64 code)
Fix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
Fix bug #77370 - check that we do not read past buffer end when parsing multibytes
Fix #77269 : Potential unsigned underflow in gdImageScale
Fix bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)
Fix bug #77242 (heap out of bounds read in xmlrpc_decode())
Regenerate certs for openssl tests
2019-01-06 23:34:26 -08:00
Stanislav Malyshev
1afebfb3fa
Merge branch 'PHP-5.6' into PHP-7.1
...
* PHP-5.6:
Fix bug #77418 - Heap overflow in utf32be_mbc_to_code
[ci skip] Add NEWS
Fix more issues with encodilng length
Fix #77270 : imagecolormatch Out Of Bounds Write on Heap
Fix bug #77380 (Global out of bounds read in xmlrpc base64 code)
Fix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
Fix bug #77370 - check that we do not read past buffer end when parsing multibytes
Fix #77269 : Potential unsigned underflow in gdImageScale
Fix bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)
Fix bug #77242 (heap out of bounds read in xmlrpc_decode())
Regenerate certs for openssl tests
2019-01-06 23:33:34 -08:00
Stanislav Malyshev
9d6c59eeea
Fix bug #77418 - Heap overflow in utf32be_mbc_to_code
2019-01-06 23:31:15 -08:00
Stanislav Malyshev
7ed3cfb2e8
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix tests - newer versions check Unicode
Add NEWS
Fix test
2019-01-06 13:50:28 -08:00
Stanislav Malyshev
d0d0d922de
Fix tests - newer versions check Unicode
2019-01-06 13:28:30 -08:00
Stanislav Malyshev
1b7c599a02
Add NEWS
2019-01-06 13:11:55 -08:00
Stanislav Malyshev
fc02e7e3fe
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Add NEWS
2019-01-06 13:08:48 -08:00
Stanislav Malyshev
08bb0ce4e4
Add NEWS
2019-01-06 13:08:24 -08:00
Stanislav Malyshev
25c95752d6
Add NEWS
2019-01-06 13:04:51 -08:00
Stanislav Malyshev
b51eaf4166
[ci skip] Add NEWS
2019-01-06 13:03:38 -08:00
Stanislav Malyshev
ed4db1bb22
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix test
2019-01-06 12:54:09 -08:00
Stanislav Malyshev
0c35032012
Fix test
2019-01-06 12:30:44 -08:00
Christoph M. Becker
e617f03066
Fix #77367 : Negative size parameter in mb_split
...
When adding the last element to the result value of `mb_split`, the
`chunk_pos` may point beyond the end of the string, in which case the
unsigned `n` would underflow. Therefore, we check whether this is the
case in the first place, and only calculate `n` otherwise. Since `n`
is no longer used outside the block, we move its declaration inside.
2019-01-06 12:24:15 -08:00
Stanislav Malyshev
e40027ef0f
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77369 - memcpy with negative length via crafted DNS response
Fix more issues with encodilng length
Fix #77270 : imagecolormatch Out Of Bounds Write on Heap
Fix bug #77380 (Global out of bounds read in xmlrpc base64 code)
Fix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
Fix bug #77370 - check that we do not read past buffer end when parsing multibytes
Fix #77269 : Potential unsigned underflow in gdImageScale
Fix bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)
Fix bug #77242 (heap out of bounds read in xmlrpc_decode())
Regenerate certs for openssl tests
2019-01-06 12:23:53 -08:00
Stanislav Malyshev
fe820fcba6
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #77369 - memcpy with negative length via crafted DNS response
Fix more issues with encodilng length
Fix #77270 : imagecolormatch Out Of Bounds Write on Heap
Fix bug #77380 (Global out of bounds read in xmlrpc base64 code)
Fix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
Fix bug #77370 - check that we do not read past buffer end when parsing multibytes
Fix #77269 : Potential unsigned underflow in gdImageScale
Fix bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)
Fix bug #77242 (heap out of bounds read in xmlrpc_decode())
Regenerate certs for openssl tests
2019-01-06 11:57:16 -08:00
Stanislav Malyshev
8d3dfabef4
Fix #77369 - memcpy with negative length via crafted DNS response
2019-01-06 11:39:09 -08:00
Stanislav Malyshev
31f59e1f30
Fix more issues with encodilng length
...
Should fix bug #77381 , bug #77382 , bug #77385 , bug #77394 .
2019-01-06 11:38:46 -08:00
Christoph M. Becker
567c9f5842
Fix #77270 : imagecolormatch Out Of Bounds Write on Heap
...
At least some of the image reading functions may return images which
use color indexes greater than or equal to im->colorsTotal. We cater
to this by always using a buffer size which is sufficient for
`gdMaxColors` in `gdImageColorMatch()`.
2019-01-06 11:38:46 -08:00
Stanislav Malyshev
4feb9e66ff
Fix bug #77380 (Global out of bounds read in xmlrpc base64 code)
2019-01-06 11:38:46 -08:00
Stanislav Malyshev
c6e34d91b8
Fix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
2019-01-06 11:38:46 -08:00
Stanislav Malyshev
deb06bbb9c
Fix bug #77370 - check that we do not read past buffer end when parsing multibytes
2019-01-06 11:38:46 -08:00
Christoph M. Becker
dfd8237aec
Fix #77269 : Potential unsigned underflow in gdImageScale
...
Belatedly, we're porting the respective upstream patch[1].
[1] <https://github.com/libgd/libgd/commit/60bfb401ad5a4a8ae995dcd36372fe15c71e1a35 >
2019-01-06 11:38:46 -08:00
Stanislav Malyshev
78bd347774
Fix bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)
2019-01-06 11:38:46 -08:00
Stanislav Malyshev
9c62b95e5e
Fix bug #77242 (heap out of bounds read in xmlrpc_decode())
2019-01-06 11:38:46 -08:00
Alexander Kurilo
e3e3289bd1
Regenerate certs for openssl tests
2019-01-06 11:38:46 -08:00
Stanislav Malyshev
c95daa9c75
Fix more issues with encodilng length
...
Should fix bug #77381 , bug #77382 , bug #77385 , bug #77394 .
2019-01-06 11:34:27 -08:00
Christoph M. Becker
7a12dad4dd
Fix #77270 : imagecolormatch Out Of Bounds Write on Heap
...
At least some of the image reading functions may return images which
use color indexes greater than or equal to im->colorsTotal. We cater
to this by always using a buffer size which is sufficient for
`gdMaxColors` in `gdImageColorMatch()`.
2019-01-06 11:34:20 -08:00
Stanislav Malyshev
1cc2182bcc
Fix bug #77380 (Global out of bounds read in xmlrpc base64 code)
2019-01-06 11:34:00 -08:00
Stanislav Malyshev
28362ed4fa
Fix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
2019-01-06 11:33:54 -08:00
Stanislav Malyshev
20407d06ca
Fix bug #77370 - check that we do not read past buffer end when parsing multibytes
2019-01-06 11:33:44 -08:00
Christoph M. Becker
a918020c03
Fix #77269 : Potential unsigned underflow in gdImageScale
...
Belatedly, we're porting the respective upstream patch[1].
[1] <https://github.com/libgd/libgd/commit/60bfb401ad5a4a8ae995dcd36372fe15c71e1a35 >
2019-01-06 11:33:38 -08:00
Stanislav Malyshev
428d8164ff
Fix bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)
2019-01-06 11:33:32 -08:00
Stanislav Malyshev
4fc0bceb7c
Fix bug #77242 (heap out of bounds read in xmlrpc_decode())
2019-01-06 11:33:25 -08:00
Nikita Popov
361d3ede93
Fix bug #77410
2019-01-04 12:40:28 +01:00
Nikita Popov
1ed20669c5
Merge branch 'PHP-7.2' into PHP-7.3
2019-01-04 09:53:30 +01:00
Nikita Popov
41af1e6781
Fix self::class inside constant in global scope
...
Previously this triggered an assertion failure. The behavior is
not quite correct, in that self::class should generate an exception
if there is no self, but returns an empty string here. Fixing that
would be a bit too intrusive for the 7.2 branch.
2019-01-04 09:52:04 +01:00
Nikita Popov
07873fab3c
Add NEWS entry for bug #77357
...
The fix has been confirmed.
[ci skip]
2019-01-04 09:07:50 +01:00
Nikita Popov
5a361c3a54
Possible fix for bug #77357
...
Don't invoke CPUID with feature levels above the supported maximum.
In this case CPUID will return the highest supported basic information
leaf, which will have unrelated bits in the relevant positions.
2019-01-03 10:24:48 +01:00
Nikita Popov
349dbb7938
Merge branch 'PHP-7.2' into PHP-7.3
2019-01-03 09:40:42 +01:00
Nikita Popov
cb009b12a5
Fixed bug #77273
2019-01-03 09:40:07 +01:00
Alexander Kurilo
f51062523d
Regenerate certs for openssl tests
2019-01-02 10:00:36 -08:00
Nikita Popov
325a113974
Possible fix for bug #77287
...
The cache size could be off by 4, if we're on a 32-bit system and
the slot had to be bumped for alignment reasons.
I wasn't able to reproduce the issue reported in bug #77287 , but I
think this might be the cause.
2019-01-02 14:12:58 +01:00
Nikita Popov
291589114a
Disable ifuncs on FreeBSD
...
Intended as at least a preliminary fix for bug #77284 . If/when we
figure out what exactly the issue is, we can relax this.
2019-01-02 12:59:22 +01:00
Nikita Popov
613683580b
Merge branch 'PHP-7.2' into PHP-7.3
2019-01-02 11:34:15 +01:00
Nikita Popov
73596c56e7
Partial fix for bug #75426
...
This does not print the exact line of the comma, but rather the line
of the previous element. This should generally be "good enough", as
the line number is close (off by one) to the actual issue now.
Previously it would point to the start of the array, which may be
very far away.
2019-01-02 11:32:48 +01:00
Vincent JARDIN
91e44a27f6
skeleton: support PHP 7.2
...
skeleton can still be leveraged with older PHP releases, including
PHP 7.2.
I wanted to add this capability since PHP 7.2 is still widely provided
with most Linux distributions.
I am using ext_skel.php on a vanilla Ubuntu 18.04 and Windows
in order to illustrate how to develop a PHP extension for both
OS using the default tools provided by the distributions.
see: https://github.com/vjardin/php-bonjour
2019-01-02 11:21:25 +01:00
Anatol Belski
1732ce9c23
Update NEWS
2019-01-02 11:02:29 +01:00
Anatol Belski
d1c616f077
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #75684 In mysqlnd_ext_plugin.h the plugin methods family has no external visibility
2019-01-02 11:01:34 +01:00
Anatol Belski
7b3f8e746a
Fixed bug #75684 In mysqlnd_ext_plugin.h the plugin methods family has no external visibility
2019-01-02 11:00:33 +01:00
Xinchen Hui
1b86f84908
Entry get lost while merging
2019-01-02 16:46:41 +08:00
Xinchen Hui
33011be5bf
Merge branch 'PHP-7.3' of git.php.net:/php-src into PHP-7.3
...
* 'PHP-7.3' of git.php.net:/php-src:
Fixed bug #77257
2019-01-02 16:45:38 +08:00
Xinchen Hui
54a58a7380
Fixed bug #77387 (Recursion detection broken when printing GLOBALS)
2019-01-02 16:42:05 +08:00
Nikita Popov
91888cc372
Fixed bug #77257
...
Correctly handle the case of duplicate predecessors, by removing the
duplicate predecessor and corresponding phi node operands.
For the future, it would be better to instead allow duplicate
predecessors and avoid this kind of fragile code...
2019-01-02 09:31:50 +01:00
Xinchen Hui
e01f08f679
Fixed bug #77376 ("undefined function" message no longer includes namespace)
2019-01-02 15:32:17 +08:00
Xinchen Hui
703ccd5d27
Update NEWS
2019-01-02 12:10:23 +08:00
Xinchen Hui
e527626d9f
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #77395 (segfault about array_multisort)
2019-01-02 12:10:04 +08:00
Xinchen Hui
8ebae84674
Fixed bug #77395 (segfault about array_multisort)
2019-01-02 12:09:47 +08:00
Christoph M. Becker
6f663c3a2e
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77391 : 1bpp BMPs may fail to be loaded
2018-12-31 20:50:19 +01:00
Christoph M. Becker
b0cfa28d6d
Fix #77391 : 1bpp BMPs may fail to be loaded
...
We port the upstream fix[1].
[1] <https://github.com/libgd/libgd/commit/d0859134fcbd8817f87895bd1cb158096568a7a2 >
2018-12-31 20:45:47 +01:00
Christoph M. Becker
b051ab56dc
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Regenerate certs for openssl tests
2018-12-31 18:27:26 +01:00
Alexander Kurilo
687dad3674
Regenerate certs for openssl tests
2018-12-31 18:20:34 +01:00
Christoph M. Becker
42b0bbd758
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Drop deprecated /Gm compile option
2018-12-30 14:37:04 +01:00
Christoph M. Becker
20de58f51d
Drop deprecated /Gm compile option
...
The `/Gm` option of `cl` is deprecated[1], and `cl` claims that it will
be removed in the future, so we're dropping it right away.
[1] <https://docs.microsoft.com/en-us/cpp/build/reference/gm-enable-minimal-rebuild?view=vs-2017 >
2018-12-30 14:36:05 +01:00
Anatol Belski
d4b7cc1dba
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Increase timeout for test on AppVeyor
2018-12-29 17:51:39 +01:00
Anatol Belski
54a2b42778
Increase timeout for test on AppVeyor
2018-12-29 17:48:25 +01:00
Anatol Belski
2567eba330
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Add memory check to the test
2018-12-29 16:23:24 +01:00
Anatol Belski
222fa032d2
Add memory check to the test
2018-12-29 16:22:31 +01:00
Anatol Belski
6896d2a685
[ci skip] Update NEWS
2018-12-28 16:40:06 +01:00
Anatol Belski
d874d4a15c
Fixed bug #77346 webm files incorrectly detected as application/octet-stream
...
HEADSUP data from file 5.34 is used from now on
2018-12-28 13:25:40 +01:00
Lauri Kenttä
16c62a8179
Fix #77360 : class_uses causes segfault
2018-12-27 15:34:02 +01:00
Lauri Kenttä
89bf3df67d
Fix #77359 : spl_autoload causes segfault
...
Use the correct function to free the string.
2018-12-27 15:28:25 +01:00
Anatol Belski
d2621c3185
Update NEWS [ci skip]
2018-12-26 20:45:19 +01:00
Anatol Belski
b53d2b69f2
Update NEWS [ci skip]
2018-12-26 20:07:31 +01:00
Anatol Belski
b48823101c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update NEWS [ci skip]
2018-12-26 20:06:01 +01:00
Anatol Belski
a2cb8228fe
Update NEWS [ci skip]
2018-12-26 20:05:15 +01:00
Anatol Belski
e38e44e3c6
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Initialize s_un (sockaddr_un) to zero before using it. Fixes #76839 .
2018-12-26 19:01:36 +01:00
Michael Meyer
3c42c784c2
Initialize s_un (sockaddr_un) to zero before using it. Fixes #76839 .
2018-12-26 18:58:27 +01:00
Nikita Popov
b1deb98c42
Fixed bug #77338
...
Set preg_options to 0 in php_pcre_get_compiled_regex(_ex). These
options are intended to be passed to pcre2_match. However, we do
not have any flags that actually need to be set during matching
(all relevant flags are set during compilation), and the preg_flags
value is used for PHP-specific flags instead.
This parameter should be removed entirely in master to avoid confusion.
2018-12-26 17:11:27 +01:00
Anatol Belski
078c1d8ef7
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update binary SDK version for AppVeyor
2018-12-26 14:17:56 +01:00
Anatol Belski
3c7dc7b4c4
Update binary SDK version for AppVeyor
2018-12-26 14:15:21 +01:00
Anatol Belski
199914b42d
Fixed bug #77317 __DIR__, __FILE__, realpath() reveal physical path for subst virtual drive
...
Keep compatibility with 7.2 and below which better comply with
realpath(3). This might have been fixable another way, say by checking
of QueryDosDevice or alike, sadly that comes with a huge performance
impact. The new internal realpath API is kept available so is
usable when bind or network mount or other OS specific realpath
variants are needed. If not used by default, a userspace function for
this specific case might be considered to be offered in next minor.
2018-12-26 12:59:00 +01:00
Dmitry Stogov
b45774eed0
Respect EG(vm_stack_page_size)
2018-12-26 13:09:32 +03:00
Dmitry Stogov
1ce7cbe590
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Backport later interned strings destruction.
2018-12-24 13:45:40 +03:00
Dmitry Stogov
5888fbde0d
Backport later interned strings destruction.
2018-12-24 13:45:02 +03:00
Dmitry Stogov
ddfb44f2cf
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #77339 (__callStatic may get incorrect arguments)
2018-12-24 13:23:47 +03:00
Dmitry Stogov
7e597f48e9
Fixed bug #77339 (__callStatic may get incorrect arguments)
2018-12-24 13:22:43 +03:00
Nikita Popov
69f54dd549
Merge branch 'PHP-7.2' into PHP-7.3
2018-12-23 20:20:53 +01:00
Nikita Popov
64de5bc224
Fix invalid efree in browscap
...
Related to bug #77338 .
2018-12-23 20:20:04 +01:00
Derick Rethans
c4e46c3043
Merge branch 'timelib-201801RC3' into PHP-7.3
2018-12-23 17:57:09 +00:00
Derick Rethans
a9a084c092
Update API use due to changes in timelib 2018.01RC3
2018-12-23 17:54:57 +00:00
Derick Rethans
3e4a3d005a
Upgrade timelib to 2018.01RC3
2018-12-23 17:54:37 +00:00
CHU Zhaowei
b15189f4d8
Fix #77298 : segfault occurs when add property to unserialized empty ArrayObject
2018-12-21 17:45:52 +01:00
Dmitry Stogov
95193c3872
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Removed /e modifirer and fixed ws.
2018-12-21 19:01:18 +03:00
Dmitry Stogov
8db63adb6d
Removed /e modifirer and fixed ws.
2018-12-21 18:58:50 +03:00
Christoph M. Becker
b1e25ce319
[ci skip] Add missing entry for bug 77020
2018-12-18 23:23:08 +01:00
Remi Collet
4efa618b9e
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
missing entry for #77020
2018-12-18 16:29:53 +01:00
Remi Collet
3245d1bb09
missing entry for #77020
2018-12-18 16:29:31 +01:00
Remi Collet
c04ef40026
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
bump to 7.2.15-dev
2018-12-18 13:12:05 +01:00
Remi Collet
7161fe629d
bump to 7.2.15-dev
2018-12-18 13:11:32 +01:00
Christoph M. Becker
8734d6a73d
[ci skip] Fix release date
2018-12-18 13:10:03 +01:00
Christoph M. Becker
a65133a17a
Prepare main branch for 7.3.2
2018-12-18 12:15:25 +01:00
Scott
e0e08d376e
Fix #77297 : SodiumException segfaults on PHP 7.3
...
Instead of trying to clean the argument arrays from the backtrace, we
overwrite them with empty arrays.
2018-12-16 16:36:47 +01:00
Christoph M. Becker
0061db5503
Fix #77291 : magic methods inherited from a trait may be ignored
...
When adding methods from a trait, we must not assume that a method name
with the same length as the name of the using class is either a PHP 4
style constructor, or not a magic method at all – it may well be
another magic method.
We mostly preserve the spirit of the optimization which caused this
regression, and avoid string comparisons for all method names which can
never be magic methods.
2018-12-16 13:30:11 +01:00
Xinchen Hui
54739c7e66
Update NEWS
2018-12-11 15:25:19 +08:00
Xinchen Hui
c3eb291e41
Merge branch 'i386-PIC' of https://github.com/ryandesign/php-src into PHP-7.3
...
* 'i386-PIC' of https://github.com/ryandesign/php-src :
Fix __zend_cpuid on i386 PIC without __cpuid_count
2018-12-11 15:22:50 +08:00
Anatol Belski
7dc1c7f630
Remove BOM
2018-12-11 00:38:54 +01:00
Christoph M. Becker
9b335c5649
Update/fix UPGRADING
2018-12-10 14:32:20 +01:00
Nikita Popov
93aabf1533
Fixed bug #77275
...
Instead of juggling with this problem during literal compaction,
make sure that we always initialize Z_EXTRA for literals, which
seems like the more robust solution.
2018-12-10 13:36:23 +01:00
Nikita Popov
59cacdcefd
Fix typos in compact literals debugging code
2018-12-10 13:35:55 +01:00
Christopher Jones
6f6a15e1ae
Merge branch 'PHP-7.2' into PHP-7.3
2018-12-10 21:54:23 +11:00
Christopher Jones
3aee9ca571
LOL I had 2.10 on my mind
2018-12-10 21:54:13 +11:00
Christopher Jones
5b72f49c9e
Merge branch 'PHP-7.3' of https://git.php.net/repository/php-src into PHP-7.3
2018-12-10 11:00:32 +11:00
Christopher Jones
95581c6dd9
Merge branch 'PHP-7.2' into PHP-7.3
2018-12-10 10:57:10 +11:00
Christopher Jones
444e400c3b
Bundle the new test
2018-12-10 10:45:43 +11:00
Christopher Jones
e47025ffc5
Merge branch 'PHP-7.2' into PHP-7.3
2018-12-10 10:16:27 +11:00
Christoph M. Becker
b0177d3892
Fix version numbers in main branch
...
This should have already happened, when `PHP-7.3.0` was branched.
2018-12-10 00:16:23 +01:00
Christopher Jones
e4d894edb3
Improve test portability
2018-12-10 10:16:15 +11:00
Christopher Jones
56e2c0d7db
Update for newer Oracle versions
2018-12-10 10:15:53 +11:00
Anatol Belski
6734b1106f
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix syntax error
2018-12-09 19:15:11 +01:00
Anatol Belski
81207fc607
Fix syntax error
2018-12-09 19:13:09 +01:00
Anatol Belski
be599873f0
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix libtidy exports when ext/tidy compiled static
2018-12-09 19:01:17 +01:00
Anatol Belski
0d166f76ee
Fix libtidy exports when ext/tidy compiled static
2018-12-09 18:59:05 +01:00
Derick Rethans
77b1f5baa3
Back to -dev
...
This should have been done as soon as PHP-7.3.0 was branched.
2018-12-09 16:23:31 +00:00
Christopher Jones
8c37d5f451
Add OCI8 changes
2018-12-09 20:56:25 +11:00
Christopher Jones
1f84f2a766
Merge branch 'PHP-7.2' into PHP-7.3
2018-12-09 20:55:21 +11:00
Christopher Jones
99f1f3dedf
Add oci_set_call_timeout() and bump version to 2.10.0
2018-12-09 20:55:04 +11:00
Christopher Jones
31eeca8a19
Merge branch 'PHP-7.2' into PHP-7.3
2018-12-09 12:38:53 +11:00
Christopher Jones
e2ecd60f2f
Upgrade internal OCI call
2018-12-09 12:38:35 +11:00
Christopher Jones
3da368be2e
Merge branch 'PHP-7.2' into PHP-7.3
2018-12-09 12:17:04 +11:00
Christopher Jones
4246702406
Enable Oracle Database DBOP tracing attribute
2018-12-09 12:16:47 +11:00
Christopher Jones
03f6b16de7
Merge branch 'PHP-7.2' into PHP-7.3
2018-12-09 11:30:15 +11:00
Christopher Jones
465c149cd3
Update OCI8 README
2018-12-09 11:28:52 +11:00
Christopher Jones
216d6592e1
Convert some parameter parsing to the Fast Parameter Parsing API
2018-12-09 11:28:04 +11:00
Pierrick Charron
b3a6ca90af
Fix 77264: curl_getinfo returning microseconds, not seconds
...
Since curl 7.55.0, libcurl introduced new constants to return
more sensible variable types with curl_getinfo.
When curl_getinfo with no option was called, and curl >= 7.55.0, some
of the result were returned as int when they where returned as float
in previous versions. This commit remove this BC Break.
If someone still want to use more sensible variable types, it's always
possible to call curl_getinfo with newer constants.
CURLINFO_CONTENT_LENGTH_DOWNLOAD => CURLINFO_CONTENT_LENGTH_DOWNLOAD_T
CURLINFO_CONTENT_LENGTH_UPLOAD => CURLINFO_CONTENT_LENGTH_UPLOAD_T
CURLINFO_SIZE_DOWNLOAD => CURLINFO_SIZE_DOWNLOAD_T
CURLINFO_SIZE_UPLOAD => CURLINFO_SIZE_UPLOAD_T
CURLINFO_SPEED_DOWNLOAD => CURLINFO_SPEED_DOWNLOAD_T
CURLINFO_SPEED_UPLOAD => CURLINFO_SPEED_UPLOAD_T
CURLINFO_APPCONNECT_TIME => CURLINFO_APPCONNECT_TIME_T
CURLINFO_CONNECT_TIME => CURLINFO_CONNECT_TIME_T
CURLINFO_NAMELOOKUP_TIME => CURLINFO_NAMELOOKUP_TIME_T
CURLINFO_PRETRANSFER_TIME => CURLINFO_PRETRANSFER_TIME_T
CURLINFO_REDIRECT_TIME => CURLINFO_REDIRECT_TIME_T
CURLINFO_STARTTRANSFER_TIME => CURLINFO_STARTTRANSFER_TIME_T
CURLINFO_TOTAL_TIME => CURLINFO_TOTAL_TIME_T
2018-12-08 15:09:43 -05:00
Ryan Schmidt
4fb019994a
Fix __zend_cpuid on i386 PIC without __cpuid_count
...
Closes https://bugs.php.net/bug.php?id=76654
2018-12-08 09:52:52 -06:00
Remi Collet
cb3a1df946
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
add imap.enable_insecure_rsh in php.ini
2018-12-08 10:25:20 +01:00
Remi Collet
fd0077bf06
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
add imap.enable_insecure_rsh in php.ini
2018-12-08 10:25:05 +01:00
Remi Collet
4288674651
add imap.enable_insecure_rsh in php.ini
2018-12-08 10:24:36 +01:00
Christopher Jones
a5991a2f9f
Merge branch 'PHP-7.3' of https://git.php.net/repository/php-src into PHP-7.3
2018-12-08 20:20:04 +11:00
Christopher Jones
290671e7f2
Merge branch 'PHP-7.2' of https://git.php.net/repository/php-src into PHP-7.2
2018-12-08 20:19:59 +11:00
Christopher Jones
6119d4c670
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Note that PECL install now works on PHP 7.3
Don't skip with 18c DB
2018-12-08 20:13:57 +11:00
Christopher Jones
43adf3dc5e
Note that PECL install now works on PHP 7.3
2018-12-08 20:13:40 +11:00
Christopher Jones
9a0ec35fa3
Don't skip with 18c DB
2018-12-08 20:12:43 +11:00
Remi Collet
1de2ff2e5e
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
missing entry for #77020
missing entry for #77020
2018-12-08 10:07:20 +01:00
Remi Collet
431ff36f51
missing entry for #77020
2018-12-08 10:07:01 +01:00
Remi Collet
da90b477c6
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
missing entry for #77020
2018-12-08 10:06:34 +01:00
Remi Collet
9b8f2417ad
missing entry for #77020
2018-12-08 10:06:19 +01:00
Christopher Jones
e355e55e01
Merge branch 'PHP-7.2' into PHP-7.3
2018-12-08 19:24:59 +11:00
Christopher Jones
dd0a8091f4
Fix resource warning value
2018-12-08 19:24:32 +11:00
Christopher Jones
2d53040a6d
Bump OCI8 version
2018-12-08 19:23:22 +11:00
Christopher Jones
78c299ae2d
Update NEWS
2018-12-08 19:14:16 +11:00
Christopher Jones
18b25f0f65
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update NEWS
2018-12-08 19:13:12 +11:00
Christopher Jones
8ff6a30598
Update NEWS
2018-12-08 19:12:04 +11:00
Christopher Jones
de9f64f5dd
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
When releasing an oci8 connection always set the resource to null.
2018-12-08 18:51:13 +11:00
KoenigsKind
3c91851874
When releasing an oci8 connection always set the resource to null.
2018-12-08 18:49:12 +11:00
Christopher Jones
49944e4bcf
Merge branch 'PHP-7.2' into PHP-7.3
2018-12-07 23:22:30 +11:00
Nikita Popov
e3946534a4
Drop unnecessary HASH_OF uses in ext/oci8
...
These only operate on arrays.
2018-12-07 23:21:32 +11:00
Christopher Jones
171389b435
Merge branch 'PHP-7.2' into PHP-7.3
2018-12-07 23:20:27 +11:00
Christopher Jones
b797818e09
Simplify based on feedback from nikic
2018-12-07 23:07:37 +11:00
Christopher Jones
91776f7264
Sync with test files
2018-12-07 21:41:34 +11:00
Christoph M. Becker
327e2d0153
[ci skip] Fix NEWS wrt. ChangeLog conversion
...
We have to be rather picky in this regard; otherwise we need to
manually post process the ChangeLog.
2018-12-06 17:15:43 +01:00
Christoph M. Becker
43329e85e6
[ci skip] Fix typo
2018-12-06 00:24:25 +01:00
Ferenc Kovacs
c7095bd607
Merge branch 'PHP-7.2' into PHP-7.3
2018-12-05 09:44:22 +01:00
Ferenc Kovacs
bc32061dba
Merge branch 'PHP-7.1' into PHP-7.2
2018-12-05 09:36:31 +01:00
Ferenc Kovacs
6cbdc5e207
Merge branch 'PHP-7.0' into PHP-7.1
2018-12-05 09:30:20 +01:00
Ferenc Kovacs
bd289af963
Merge branch 'PHP-5.6' into PHP-7.0
2018-12-05 09:25:53 +01:00
Ferenc Kovacs
c26cb383a5
5.6.40 will be next. probably not
2018-12-05 09:13:30 +01:00
Côme Chilliet
cb00ca7cfe
Add LDAP information in UPGRADING
2018-12-04 17:15:55 +01:00
Anatol Belski
807d8aa00d
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Sync NEWS [ci skip]
2018-12-04 12:50:40 +01:00
Anatol Belski
6e9435f339
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Sync NEWS [ci skip]
2018-12-04 12:50:04 +01:00
Anatol Belski
d07e63211a
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Sync NEWS [ci skip]
2018-12-04 12:49:42 +01:00
Anatol Belski
a8f125fbca
Sync NEWS [ci skip]
2018-12-04 12:49:10 +01:00
Jakub Zelenka
6493d54897
Update UPGRADING with info about FPM logging changes
2018-12-03 18:30:41 +00:00
Stanislav Malyshev
36534afd10
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix null pointer deref in qprint-encode filter (bug #77231 )
2018-12-03 10:20:07 -08:00
Stanislav Malyshev
a9ef7ecc60
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix null pointer deref in qprint-encode filter (bug #77231 )
2018-12-03 10:20:02 -08:00
Stanislav Malyshev
d5dc3c69f9
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fix null pointer deref in qprint-encode filter (bug #77231 )
2018-12-03 10:19:57 -08:00
Stanislav Malyshev
036bc5c1fb
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fix null pointer deref in qprint-encode filter (bug #77231 )
2018-12-03 10:19:49 -08:00
Stanislav Malyshev
78bffa72c1
Fix null pointer deref in qprint-encode filter (bug #77231 )
2018-12-03 10:19:08 -08:00
Christoph M. Becker
5be58a437c
[ci skip] Prepare NEWS for 7.3 GA
2018-12-03 13:56:14 +01:00
Stanislav Malyshev
3d8d13f7b9
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug #77143 - add more checks to buffer reads
Fix bug #77143 - add more checks to buffer reads
Fix #77020 : null pointer dereference in imap_mail
Don't need interactive progress on git clones in Travis
Fix TSRM signature - php_stream_stat macro has it's own TSRM
Regenerate certificates for openssl tests
Improve test for bug77022
2018-12-03 00:42:55 -08:00
Stanislav Malyshev
8fff90250b
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix bug #77143 - add more checks to buffer reads
Fix bug #77143 - add more checks to buffer reads
Fix #77020 : null pointer dereference in imap_mail
2018-12-03 00:42:50 -08:00
Stanislav Malyshev
8ab5d22332
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fix bug #77143 - add more checks to buffer reads
Fix bug #77143 - add more checks to buffer reads
Fix #77020 : null pointer dereference in imap_mail
2018-12-03 00:42:45 -08:00
Stanislav Malyshev
5718d73dbb
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fix bug #77143 - add more checks to buffer reads
2018-12-03 00:42:35 -08:00
Stanislav Malyshev
48f0f73f75
Fix bug #77143 - add more checks to buffer reads
2018-12-03 00:41:46 -08:00
Stanislav Malyshev
66a0f061f6
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fix bug #77143 - add more checks to buffer reads
Fix #77020 : null pointer dereference in imap_mail
2018-12-03 00:39:03 -08:00
Stanislav Malyshev
54212674b9
Fix bug #77143 - add more checks to buffer reads
2018-12-03 00:03:10 -08:00
Stanislav Malyshev
7edc639b9f
Fix #77020 : null pointer dereference in imap_mail
...
If an empty $message is passed to imap_mail(), we must not set message
to NULL, since _php_imap_mail() is not supposed to handle NULL pointers
(opposed to pointers to NUL).
2018-12-03 00:00:56 -08:00
Stanislav Malyshev
1f78b1dfd0
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Don't need interactive progress on git clones in Travis
2018-12-02 16:04:33 -08:00
Philip Prindeville
61af343768
Don't need interactive progress on git clones in Travis
...
Travis logs are usually inspected after the build completes, by which time
progress info is useless.
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com >
2018-12-02 16:04:22 -08:00
Stanislav Malyshev
1225467d8a
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix TSRM signature - php_stream_stat macro has it's own TSRM
Regenerate certificates for openssl tests
Improve test for bug77022
2018-12-02 15:12:15 -08:00
Stanislav Malyshev
f8eac1f438
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fix TSRM signature - php_stream_stat macro has it's own TSRM
Regenerate certificates for openssl tests
Improve test for bug77022
2018-12-02 13:38:59 -08:00
Stanislav Malyshev
6e3f5d57d4
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fix TSRM signature - php_stream_stat macro has it's own TSRM
Regenerate certificates for openssl tests
Improve test for bug77022
2018-12-02 13:18:07 -08:00
Stanislav Malyshev
aabdb71dc3
Fix TSRM signature - php_stream_stat macro has it's own TSRM
2018-12-02 12:54:19 -08:00
Alexander Kurilo
0382e761d7
Regenerate certificates for openssl tests
2018-12-02 12:08:19 -08:00
Stanislav Malyshev
2fba1e2f59
Improve test for bug77022
2018-12-02 12:06:13 -08:00
Jakub Zelenka
1deee2ba7c
Merge branch 'PHP-7.2' into PHP-7.3
2018-12-02 19:38:38 +00:00
Alexander Kurilo
655fb96354
Regenerate certificates for openssl tests
2018-12-02 19:37:10 +00:00
Stanislav Malyshev
e614b12712
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
2018-12-01 21:48:44 -08:00
Stanislav Malyshev
c5869fd1c8
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
2018-12-01 21:48:40 -08:00
Stanislav Malyshev
09885f78c6
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
2018-12-01 21:48:35 -08:00
Stanislav Malyshev
cea277048d
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fix bug #77022 - use file mode or umask for new files
2018-12-01 21:48:27 -08:00
Stanislav Malyshev
cc84d893c7
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug #77022 - use file mode or umask for new files
2018-12-01 21:47:49 -08:00
Stanislav Malyshev
8136d130b6
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix bug #77022 - use file mode or umask for new files
2018-12-01 21:47:44 -08:00
Stanislav Malyshev
1aec05defd
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fix bug #77022 - use file mode or umask for new files
2018-12-01 21:47:37 -08:00
Stanislav Malyshev
67f3615102
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fix bug #77022 - use file mode or umask for new files
2018-12-01 21:08:38 -08:00
Stanislav Malyshev
69f5e7992b
Fix bug #77022 - use file mode or umask for new files
2018-12-01 21:06:45 -08:00
Anatol Belski
ea454583eb
Update NEWS [ci skip]
2018-12-01 17:10:43 +01:00
Anatol Belski
ef1269d5c1
Fixed bug #77193 Infinite loop in preg_replace_callback
...
Don't return preallocated match data more than once in nested calls.
2018-12-01 10:24:06 +01:00
Christoph M. Becker
471eb0dd95
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77051 : Issue with re-binding on SQLite3
2018-11-29 02:18:56 +01:00
BohwaZ
94ec262fca
Fix #77051 : Issue with re-binding on SQLite3
...
We have to call `sqlite3_reset()` before re-binding the parameters.
2018-11-29 02:16:57 +01:00
Stanislav Malyshev
3f165e8ca3
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Add DISPLAY_INI_ENTRIES for imap
Disable rsh/ssh functionality in imap by default (bug #77153 )
Disable rsh/ssh functionality in imap by default (bug #77153 )
2018-11-28 15:47:07 -08:00
Stanislav Malyshev
4ac764e8bb
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Add DISPLAY_INI_ENTRIES for imap
Disable rsh/ssh functionality in imap by default (bug #77153 )
Disable rsh/ssh functionality in imap by default (bug #77153 )
2018-11-28 15:47:00 -08:00
Stanislav Malyshev
223b8c15a8
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Add DISPLAY_INI_ENTRIES for imap
Disable rsh/ssh functionality in imap by default (bug #77153 )
Disable rsh/ssh functionality in imap by default (bug #77153 )
2018-11-28 15:46:53 -08:00
Stanislav Malyshev
87bf84c8c7
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Add DISPLAY_INI_ENTRIES for imap
2018-11-28 15:46:39 -08:00
Stanislav Malyshev
d8765852e0
Add DISPLAY_INI_ENTRIES for imap
2018-11-28 15:45:51 -08:00
Derick Rethans
dd48f0899d
Merge branch 'PHP-7.2' into PHP-7.3
2018-11-28 20:35:16 +00:00
Derick Rethans
a3f2871b8e
Fixed bug #77097 (DateTime::diff gives wrong diff when the actual diff is less than 1 second) by upgrading to timelib 2017.09
2018-11-28 20:34:21 +00:00
Nikita Popov
f4eec70260
Merge branch 'PHP-7.2' into PHP-7.3
2018-11-28 20:10:17 +01:00
Nikita Popov
17f8b9fb36
Fixed bug #77215
...
Remove invalid assertion: A block can have multiple switch frees,
so if we don't do live range block splitting, it is not necessarily
true that the free is located at the start of a block.
2018-11-28 20:08:39 +01:00
Nikita Popov
12e88781e1
Merge branch 'PHP-7.2' into PHP-7.3
2018-11-27 19:44:45 +01:00
Nikita Popov
b565c85b9e
Improve fix for #76046
...
Also locate the JMP at the start of the foreach.
Patch suggested by Derick.
2018-11-27 19:43:25 +01:00
Nikita Popov
d78211aec0
Merge branch 'PHP-7.2' into PHP-7.3
2018-11-27 16:39:21 +01:00
Nikita Popov
d6595f276f
Fixed bug #76046
...
Place FE_FREE on start line of foreach, instead of whatever random
line number might be in CG(zend_lineno) at the time.
2018-11-27 16:37:55 +01:00
Nikita Popov
fb18b8bdf6
Merge branch 'PHP-7.2' into PHP-7.3
2018-11-26 22:49:18 +01:00
Colin Basnett
9ec519e094
Fixed bug #77184
...
The U in URATIONAL is for unsigned, so the values should be printed
as unsigned.
2018-11-26 22:48:48 +01:00
Adam Baratz
2c4425a87a
update NEWS
2018-11-26 10:39:24 -05:00
Adam Baratz
a22d2850d4
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Check column number before trying to fetch the value
2018-11-26 10:36:18 -05:00
Sergei Morozov
e126ca1557
Check column number before trying to fetch the value
2018-11-26 10:34:37 -05:00
Christoph M. Becker
07d6dfbfe4
Use zend_empty_array
...
No need to define our own `com_dotnet_object_properties` as empty hash,
since we can use `zend_empty_array` instead as of PHP 7.3.0.
Cf. <https://github.com/php/php-src/pull/3672#issuecomment-440467704 >.
2018-11-26 15:33:58 +01:00
Christoph M. Becker
070f6838db
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77200 : imagecropauto(…, GD_CROP_SIDES) crops left but not right
2018-11-25 19:03:38 +01:00
Christoph M. Becker
a1aaec08b5
Fix #77200 : imagecropauto(…, GD_CROP_SIDES) crops left but not right
...
We apply the upstream patch[1].
[1] <https://github.com/libgd/libgd/commit/6613094e5d218dc4d4372757aef5e58c6462a9f7 >
2018-11-25 19:00:50 +01:00
Christoph M. Becker
d2a1839d82
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77198 : auto cropping has insufficient precision
2018-11-25 15:56:35 +01:00
Christoph M. Becker
b47b8886dd
Fix #77198 : auto cropping has insufficient precision
...
We apply the upstream patch[1], and also fix the erroneous bailout at
the end of `gdImageAutoCrop()`, since `crop.x` and `crop.y` may very
well be zero.
[1] <https://github.com/libgd/libgd/commit/bda85aaeeb1d7467d92c892ba4c30eaa53d7a6d4 >
2018-11-25 15:41:27 +01:00
Frank Denis
8e5381915b
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
ext/sodium: remove redundant code
ext/sodium: Correct base64 decoding with unpadded variants
2018-11-24 17:56:33 +01:00
Frank Denis
ff02d50909
ext/sodium: remove redundant code
2018-11-24 17:55:36 +01:00
Frank Denis
542d0bce50
ext/sodium: Correct base64 decoding with unpadded variants
...
Backports 0eee0b957a3b75f8175cdd30b306c15e372685e8 from the PECL extension
2018-11-24 17:53:08 +01:00
Christoph M. Becker
aab9aa7661
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix test case
2018-11-24 13:38:09 +01:00
Christoph M. Becker
5af5f56fc9
Fix test case
2018-11-24 13:36:42 +01:00
Christoph M. Becker
caabf3a1bb
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77195 : Incorrect error handling of imagecreatefromjpeg()
2018-11-24 12:57:44 +01:00
Christoph M. Becker
60a9f7a3a3
Fix #77195 : Incorrect error handling of imagecreatefromjpeg()
...
The broken JPEG image triggers a notice, two warnings and outputs a
message to stderr directly. The additional notice is pretty useless,
and the direct output to stderr is bad. Therefore, we port the
relevant differences from upstream to our bundled libgd. This leaves
us with two warnings; the first one is triggered by libjpeg and shows
the actual problem, the second one is triggered by our libgd wrapper
whenever an image can't be read, what may not have necessarily
triggered a warning before.
2018-11-24 12:52:08 +01:00
Christoph M. Becker
2979c6a56d
[ci skip] Preliminary fix for NEWS
...
No more regular bug fixes for PHP 7.3.0.
We'll clean up the rest later.
2018-11-23 18:37:12 +01:00
Christoph M. Becker
b0a86566dc
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77177 : Serializing or unserializing COM objects crashes
2018-11-23 16:36:00 +01:00
Christoph M. Becker
115ee49b0b
Fix #77177 : Serializing or unserializing COM objects crashes
...
Firstly, we avoid returning NULL from the get_property handler, but
instead return an empty HashTable, which already prevents the crashes.
Secondly, since (de-)serialization obviously makes no sense for COM,
DOTNET and VARIANT objects (at least with the current implementation),
we prohibit it right away.
2018-11-23 16:32:33 +01:00
Sara Golemon
5b55b587ea
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Prep for 7.1.26
2018-11-21 14:39:40 -05:00
Sara Golemon
f2de4d185d
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Prep for 7.1.26
2018-11-21 14:39:25 -05:00
Sara Golemon
0b3cbd665e
Prep for 7.1.26
2018-11-21 14:37:37 -05:00
Xinchen Hui
aaafd793e6
Fixed bug #77088 (Segfault when using SoapClient with null options)
...
SoapClient constructor has its own error handler
2018-11-21 11:30:32 +08:00
Xinchen Hui
efeb810a3d
Fixed proto & folder mark
2018-11-21 11:18:48 +08:00
Nikita Popov
b6d5d92661
Merge branch 'PHP-7.2' into PHP-7.3
2018-11-20 21:30:53 +01:00
Nikita Popov
bbbaf1ca85
Merge branch 'PHP-7.1' into PHP-7.2
2018-11-20 21:30:38 +01:00
Valentin V. Bartenev
11ddf7669a
Fix bug #71041 dynamic embed SAPI load error
...
If the library is built with ZEND_SIGNALS defined, it's unusable with an
external SAPI module because the zend_signal_startup() call is mandatory
in this case.
This bug is similar to #74149 , but related to dynamic loading of PHP library.
2018-11-20 21:30:02 +01:00
Nikita Popov
7a0d3406f6
Merge branch 'PHP-7.2' into PHP-7.3
2018-11-20 21:16:28 +01:00
Mizunashi Mana
e672cd4385
Define __APPLE_USE_RFC_3542 for new ipv6 constants
2018-11-20 21:16:03 +01:00
Sara Golemon
7d766bd657
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Bump for 7.2.14
2018-11-20 14:41:31 -05:00
Sara Golemon
9fc52c16b5
Bump for 7.2.14
2018-11-20 14:40:21 -05:00
Stanislav Malyshev
63973d1b33
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Disable rsh/ssh functionality in imap by default (bug #77153 )
2018-11-20 11:20:45 -08:00
Stanislav Malyshev
44b08a9802
Disable rsh/ssh functionality in imap by default (bug #77153 )
2018-11-20 11:19:45 -08:00
Stanislav Malyshev
336d2086a9
Disable rsh/ssh functionality in imap by default (bug #77153 )
2018-11-20 11:18:53 -08:00
Stanislav Malyshev
05782f01f5
Disable rsh/ssh functionality in imap by default (bug #77153 )
2018-11-20 11:16:08 -08:00
Stanislav Malyshev
aed4065aa6
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Disable rsh/ssh functionality in imap by default (bug #77153 )
2018-11-20 11:14:18 -08:00
Stanislav Malyshev
628df47e79
Disable rsh/ssh functionality in imap by default (bug #77153 )
2018-11-20 11:14:07 -08:00
Christoph M. Becker
03a3a04e55
[ci skip] Update NEWS wrt. php-7.3.0RC6 tagging
2018-11-20 13:36:10 +01:00
Remi Collet
3ed07cc34a
NEWS
2018-11-20 11:20:40 +01:00
Remi Collet
928d7fc8df
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
NEWS
NEWS
Fix #77151 ftp_close(): SSL_read on shutdown
2018-11-20 11:20:26 +01:00
Remi Collet
e7acb29eb0
NEWS
2018-11-20 11:20:05 +01:00
Remi Collet
6ce4be1762
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
NEWS
Fix #77151 ftp_close(): SSL_read on shutdown
2018-11-20 11:19:52 +01:00
Remi Collet
1adbf70e26
NEWS
2018-11-20 11:19:29 +01:00
Remi Collet
d9afc2f662
Fix #77151 ftp_close(): SSL_read on shutdown
...
Regression introduced in fix for #76972
only display the error message when sslerror
or if errno is set (for SSL_ERROR_SYSCALL case)
2018-11-20 11:18:34 +01:00
Stanislav Malyshev
e5bfea64c8
Disable rsh/ssh functionality in imap by default (bug #77153 )
2018-11-20 00:13:50 -08:00
Anatol Belski
05df19b9f0
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
[ci skip] Update NEWS
[ci skip] Update NEWS
2018-11-18 14:41:14 +01:00
Anatol Belski
68442312e3
[ci skip] Update NEWS
2018-11-18 14:40:00 +01:00
Anatol Belski
6742b4b7cc
[ci skip] Update NEWS
2018-11-18 14:38:35 +01:00
Anatol Belski
6e32f59525
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
[ci skip] Update NEWS
2018-11-18 14:37:56 +01:00
Anatol Belski
3e78380d02
[ci skip] Update NEWS
2018-11-18 14:37:04 +01:00
Anatol Belski
5f64afc073
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #77047 pg_convert has a broken regex for the 'TIME WITHOUT TIMEZONE' data type
2018-11-18 12:33:35 +01:00
Anatol Belski
fb06cca6cb
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed bug #77047 pg_convert has a broken regex for the 'TIME WITHOUT TIMEZONE' data type
2018-11-18 12:32:47 +01:00
Anatol Belski
0434141ce9
Fixed bug #77047 pg_convert has a broken regex for the 'TIME WITHOUT TIMEZONE' data type
...
Backport 369c991d and 282a63da to 7.1, closes #3634
2018-11-18 12:29:34 +01:00
Anatol Belski
282a63dace
Add test for bug #77047
2018-11-18 11:52:00 +01:00
andy
369c991d5c
FIX #77047 : fixes regex for "time" data type
2018-11-18 11:50:32 +01:00
Anatol Belski
cf764f02b3
[ci skip] Update NEWS
2018-11-17 23:01:17 +01:00
Anatol Belski
10192a9ca4
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
[ci skip] Update NEWS
2018-11-17 23:00:50 +01:00
Anatol Belski
b4776cda2e
[ci skip] Update NEWS
2018-11-17 23:00:12 +01:00
Anatol Belski
b0591f5e46
Simplify assignment on 64-bit
2018-11-17 22:56:39 +01:00
Anatol Belski
00c08a2e4a
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #77111 php-win.exe corrupts unicode symbols from cli parameters
2018-11-16 23:22:19 +01:00
Anatol Belski
a7e9790969
Fixed bug #77111 php-win.exe corrupts unicode symbols from cli parameters
...
The binary can be of course used on console, for whatever reasons, so
UNICODE API should be used in that case. That might however not work as
expected, if the binary is used for a service.
2018-11-16 23:19:33 +01:00
Nikita Popov
dee5a450d9
Fixed bug #77165
...
Also add some helper macros for PROTECT/UNPROTECT that check for
IMMUTABLE. These checks are needed for nearly any use of
PROTECT/UNPROTECT.
2018-11-15 17:16:39 +01:00
Anatol Belski
2a062f3c02
Rework magic data once more
...
The change reduces the input size on patterns using posix character
classes. It is still better than reverting to the patterns from the
older version, as the upstream data uses posix classes also in the later
versions. The input reduction speeds up the pattern matching in some
cases.
This patch is functionally almost same as upstream, but might show some diff
when the input is very long. While the magic data in the newer versions is
functionally an improvement, with jit=0 it might show a performance regression.
The slowdown is negligible in the normal usage and is still acceptable for the
malicious input. If some functional regressions show up, this patch should be
reverted and the tests timing should be adapted instead.
2018-11-14 22:23:24 +01:00
Christoph M. Becker
9a2bd2f453
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77147 : Fix for 60494 ignores ICONV_MIME_DECODE_CONTINUE_ON_ERROR
2018-11-14 14:59:30 +01:00
Christoph M. Becker
211c6189f6
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #77147 : Fix for 60494 ignores ICONV_MIME_DECODE_CONTINUE_ON_ERROR
2018-11-14 14:57:40 +01:00
Christoph M. Becker
a56cdd0a82
Fix #77147 : Fix for 60494 ignores ICONV_MIME_DECODE_CONTINUE_ON_ERROR
...
If the `ICONV_MIME_DECODE_CONTINUE_ON_ERROR` flag is set, parsing
should not fail, if there are illegal characters in the headers;
instead we silently ignore these like before.
2018-11-14 14:55:38 +01:00
Joe Watkins
8a11c9ee76
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Validate length on socket_write
2018-11-13 13:00:08 +01:00
Joe Watkins
ce4eb89976
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Validate length on socket_write
2018-11-13 12:58:23 +01:00
Thiago Carvalho
ec2e7a2d48
Validate length on socket_write
2018-11-13 12:56:37 +01:00
Jan Rękorajski
f76be1a0d6
Fix compilation on x32
...
Signed-off-by: Elan Ruusamäe <glen@pld-linux.org >
2018-11-13 12:31:00 +01:00
Christoph M. Becker
512b93e9d6
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77141 : Signedness issue in SOAP when precision=-1
2018-11-12 23:24:48 +01:00
Christoph M. Becker
77646d2fd9
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #77141 : Signedness issue in SOAP when precision=-1
2018-11-12 23:22:16 +01:00
Christoph M. Becker
f6079e3c56
Fix #77141 : Signedness issue in SOAP when precision=-1
...
According to php_gcvt(), we assume at most 17 fractional digits for
negative precision.
2018-11-12 23:19:30 +01:00
Anatol Belski
ee50461e4b
Update libmagic.patch [ci skip]
2018-11-10 22:02:44 +01:00
Anatol Belski
df9c58e27a
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update libmagic.patch [ci skip]
2018-11-10 22:02:24 +01:00
Anatol Belski
1550451020
Update libmagic.patch [ci skip]
2018-11-10 22:01:49 +01:00
Anatol Belski
b50d93bc11
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fork test with pcre.jit=0
2018-11-10 20:07:25 +01:00
Anatol Belski
3fd46e19ac
Fork test with pcre.jit=0
2018-11-10 20:06:47 +01:00
Anatol Belski
0e38909170
Rework magic data
...
Still upstream contains some slower patterns. Those might need to
be patched, if regressions arise.
2018-11-10 18:22:44 +01:00
Anatol Belski
992e4fbc65
Fix regex
2018-11-10 12:13:03 +01:00
Anatol Belski
1c2518f906
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix regex
2018-11-10 12:12:25 +01:00
Anatol Belski
9d77bf0978
Fix regex
2018-11-10 12:11:02 +01:00
Anatol Belski
982a62819e
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Rework magic data
2018-11-10 01:32:35 +01:00
Anatol Belski
60adea5496
Rework magic data
...
Avoid patching where vanilla data suffices. More precisely, avoid data
using [:space:] posix class in regex, as it is likely to cause performance
regressions.
2018-11-10 01:28:23 +01:00
Anatol Belski
3061d7bdad
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Sync one more upstream libmagic piece
2018-11-10 00:20:39 +01:00
Anatol Belski
22f71a66ec
Sync one more upstream libmagic piece
2018-11-10 00:19:42 +01:00
Christoph M. Becker
155aecd397
[ci skip] Update NEWS wrt. php-7.3.0RC5 tagging
2018-11-06 11:46:20 +01:00
Anatol Belski
ddd54401db
Update NEWS [ci skip]
2018-11-05 22:53:45 +01:00
Anatol Belski
1cab286151
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update NEWS [ci skip]
2018-11-05 22:53:19 +01:00
Anatol Belski
fab72d7571
Update NEWS [ci skip]
2018-11-05 22:53:01 +01:00
Anatol Belski
a957af6c06
Update libmagic.patch [ci skip]
2018-11-05 22:25:31 +01:00
Anatol Belski
b996611531
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update libmagic.patch [ci skip]
2018-11-05 22:25:04 +01:00
Anatol Belski
dbb2cce968
Update libmagic.patch [ci skip]
2018-11-05 22:24:27 +01:00
Anatol Belski
29dcf19f8b
Declare function proto in header
2018-11-05 21:29:35 +01:00
Anatol Belski
4aa77c380c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Declare function proto in header
2018-11-05 21:29:06 +01:00
Anatol Belski
0e33c2822c
Declare function proto in header
2018-11-05 21:28:04 +01:00
Christoph M. Becker
7625f972db
Fix #76825 : Undefined symbols ___cpuid_count
...
Apparently, the presence of `cpuid.h` is not necessarily sufficient to
guarantee the availability of `__cpuid_count()`. We therefore test for
the latter explicitly.
2018-11-05 18:24:39 +01:00
Remi Collet
d78479737c
NEWS
2018-11-05 17:06:40 +01:00
Remi Collet
d53ecd040b
Fix : #77110 undefined symbol zend_string_equal_val in C++ build
2018-11-05 17:05:49 +01:00
Anatol Belski
68ad401b34
Implement handling for JIT recognition when cross compiling
2018-11-05 01:15:09 +01:00
Anatol Belski
db1534b1b4
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Backport 7f5f4601 for 7.2
2018-11-04 16:59:27 +01:00
Anatol Belski
c621182c42
Backport 7f5f4601 for 7.2
2018-11-04 16:57:55 +01:00
Christoph M. Becker
579d76d87b
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #76348 : WSDL_CACHE_MEMORY causes Segmentation fault
2018-11-04 16:47:13 +01:00
Christoph M. Becker
0afc818976
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #76348 : WSDL_CACHE_MEMORY causes Segmentation fault
2018-11-04 16:44:45 +01:00
Christoph M. Becker
625f614cb1
Fix #76348 : WSDL_CACHE_MEMORY causes Segmentation fault
...
“Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end.”
2018-11-04 16:40:27 +01:00
Anatol Belski
7f5f46013b
Rework places in libmagic regarding previous CVE-2014-3538 fixes
...
CVE-2014-3538 was fixed upstream, but the old patch was still kept in
the PHP port. This patch causes performance regressions when PCRE JIT is
not enabled. This is fixed by applying the relevant original code from
the newer libmagic, which makes the old patch obsolete as the
CVE-2014-3538 tests still pass.
2018-11-04 13:11:28 +01:00
Anatol Belski
aea411657e
Change the way JIT availability is checked
...
The pcre2_jit_compile_8 sysmbol is always available, even JIT might be
not. If JIT is not enabled explicitly and is enabled in the PHP runtime,
this will lead to a malfunction. This approach ensures JIT is indeed
available on the given platform. For cross compilation this might get
complicated, as it would require an explicit processor architecture and
PCRE2 version check.
Another solution for this case is to run pcre2_config at runtime. That
however would require more condition checks that would impact
architectures where JIT is available.
2018-11-03 20:50:05 +01:00
Nikita Popov
d92f7630f7
Merge branch 'PHP-7.2' into PHP-7.3
2018-11-02 14:30:50 +01:00
Nikita Popov
4daa413898
Fixed bug #77092
...
Weird that this worked for so long, probably because nearly all
ext/standard functions use fast ZPP rather than ordinary ZPP.
2018-11-02 14:29:03 +01:00
Zeev Suraski
9afce019e0
Future-proof email addresses
2018-11-01 18:35:32 +02:00
Rasmus Lerdorf
99a9e85c65
Fix stray newline that caused this test to fail
2018-10-31 11:41:17 -07:00
Rasmus Lerdorf
4e8195769d
Fix session tests that fail if error_log is set
2018-10-31 10:58:45 -07:00
Rasmus Lerdorf
1954c7e1c6
This test needs to log to stdout
2018-10-31 10:43:45 -07:00
Anatol Belski
ee9d879f57
Fix error condition
2018-10-30 20:43:45 +01:00
Anatol Belski
8827cc34cf
Fixed bug #77081 ftruncate() changes seek pointer in c mode
2018-10-30 20:42:00 +01:00
Christoph M. Becker
2816a3fdfa
Fix and improve test case
...
We fix the erroneous doctype declaration, clarify the expectation, and
add a comment to clarify the purpose of the tag mismatch in the XML.
2018-10-30 18:53:03 +01:00
Derick Rethans
10255a0cd9
Updated to version 2018.7 (2018g)
2018-10-30 11:25:48 +00:00
Derick Rethans
fcefc28ce1
Empty merge
2018-10-30 11:25:47 +00:00
Derick Rethans
e58388ea6d
Updated to version 2018.7 (2018g)
2018-10-30 11:25:45 +00:00
Peter Kokot
17df3a194b
[ci skip] Update NEWS
2018-10-30 00:24:07 +01:00
Peter Kokot
82115849b3
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
[ci skip] Update NEWS
[ci skip] Update NEWS
fix bug #77079
2018-10-30 00:23:38 +01:00
Peter Kokot
69496a04ff
[ci skip] Update NEWS
2018-10-30 00:23:20 +01:00
Peter Kokot
b1de24e68c
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
[ci skip] Update NEWS
fix bug #77079
2018-10-30 00:22:26 +01:00
Peter Kokot
91a1111160
[ci skip] Update NEWS
2018-10-30 00:22:03 +01:00
Jon Allen
8775bead3a
fix bug #77079
2018-10-30 00:19:07 +01:00
Nikita Popov
09c7108f74
Fix mb_strrpos() with encoding passed as 3rd param
2018-10-29 18:56:17 +01:00
Christoph M. Becker
eca3b9629f
[ci skip] Update UPGRADING
...
PR #3317[1] is relevant for the migration guide, so we add a respective
note in UPGRADING.
[1] <https://github.com/php/php-src/pull/3317 >
2018-10-28 12:48:07 +01:00
Christoph M. Becker
829b0df77b
Fix #71592 : External entity processing never fails
...
If the callback set via `xml_set_external_entity_ref_handler()` returns
a falsy value, parsing is supposed to stop and the error number set to
`XML_ERROR_EXTERNAL_ENTITY_HANDLING`. This is already correctly done
by the libexpat binding, but the libxml2 binding ignores the return
value. We fix this by calling `xmlStopParser()` which is available as
of libxml 2.1.0[1] (PHP-7.1 requires at least libxml 2.6.11 anyway),
and setting the desired `errNo` ourselves.
[1] <http://xmlsoft.org/news.html >
2018-10-27 17:30:13 +02:00
Adam Harvey
bca0a7e285
[ci skip] Fix indentation in UPGRADING.
2018-10-25 11:59:10 -07:00
Nikita Popov
b9431ef4d5
Don't optimize function if inference failed
...
This was respected only for the single-function optimizations, not
in func-info mode.
2018-10-25 16:44:24 +02:00
Nikita Popov
78c2e0e342
Merge branch 'PHP-7.2' into PHP-7.3
2018-10-25 16:44:19 +02:00
Nikita Popov
902ec36710
Merge branch 'PHP-7.1' into PHP-7.2
2018-10-25 16:43:36 +02:00
Nikita Popov
f1ceec5533
Fixed bug #77058
...
Account for the fact that undef must be interpreted as null for
the purposes of INC/DEC inference.
2018-10-25 16:37:41 +02:00
Nikita Popov
e7153e8a2f
Improve "narrowing" error message
...
By including the opcode name.
2018-10-25 16:36:23 +02:00
Dmitry Stogov
335fb94d54
Fixed reseting of interned strings buffer.
2018-10-24 15:45:34 +03:00
Dmitry Stogov
770fe51bfd
Make php_plain_files_wrapper to be writable (workaround for swoole)
2018-10-24 11:49:44 +03:00
Joe Watkins
33fa02ea38
bump versions
2018-10-24 08:43:27 +02:00
Υоаnn B
5df17425d3
fix typo in sysvsem.c
2018-10-23 14:57:03 +02:00
Nikita Popov
3fb0f34059
Merge branch 'PHP-7.2' into PHP-7.3
2018-10-23 14:24:55 +02:00
Cameron Porter
db47e35373
Fixed bug #50675
...
SOAP: Stop overwriting the node name when creating an XML node
for an object reference.
2018-10-23 14:20:19 +02:00
Remi Collet
0d273cf95d
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
bump to 7.2.13-dev
Updated to version 2018.6 (2018f)
Updated to version 2018.6 (2018f)
2018-10-23 12:16:31 +02:00
Remi Collet
1d5baf167a
bump to 7.2.13-dev
2018-10-23 12:15:30 +02:00
Christoph M. Becker
4ffa415500
[ci skip] Update NEWS wrt. php-7.3.0RC4 tagging
2018-10-23 12:10:09 +02:00
Derick Rethans
c3a8313136
Updated to version 2018.6 (2018f)
2018-10-22 12:05:40 +01:00
Derick Rethans
c22b9e0115
Empty merge
2018-10-22 12:05:40 +01:00
Derick Rethans
41241d109a
Updated to version 2018.6 (2018f)
2018-10-22 12:05:39 +01:00
Jakub Zelenka
c8febbe039
Fix arginfo and clean up fpm_get_status
2018-10-21 19:39:47 +01:00
Christoph M. Becker
10800106b3
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #75282 : xmlrpc_encode_request() crashes
2018-10-21 12:10:54 +02:00
Christoph M. Becker
502b187ae8
Fix #75282 : xmlrpc_encode_request() crashes
...
Since we allow ext/xmlrpc to be built against a system libxmlrpc(-epi),
we must not `efree` memory which has been allocated via `malloc`. To
distinguish bundled and system libxmlrpc(-epi) we introduce the macro
`HAVE_XMLRPC_BUNDLED` (analogous to how it is done by ext/gd). We
deliberately keep the ugly `#ifdef`s, instead of tucking them away in
an `XMLRPC_FREE()` macro, to not forget that it is a bad idea to fork
and bundle a library, but to also allow building against an unpatched
system lib.
2018-10-21 12:06:55 +02:00
Anatol Belski
7f8efd9a6e
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix tests for ICU 63.1
2018-10-20 23:04:54 +02:00
Anatol Belski
ba43d5acef
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix tests for ICU 63.1
2018-10-20 23:04:15 +02:00
Anatol Belski
4461fb9c26
Fix tests for ICU 63.1
...
The most of change is U+00A0 vs. new U+202F used in some outputs.
2018-10-20 23:02:06 +02:00
Peter Kokot
13aae9f3d5
[ci skip] Update NEWS
2018-10-20 09:55:07 +02:00
Peter Kokot
b7cef2b008
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
[ci skip] Update NEWS
[ci skip] Update NEWS
Fix #77041 : buildconf should output error messages to stderr
2018-10-20 09:54:00 +02:00
Peter Kokot
3b8be227bd
[ci skip] Update NEWS
2018-10-20 09:52:46 +02:00
Peter Kokot
0dc15e1885
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
[ci skip] Update NEWS
Fix #77041 : buildconf should output error messages to stderr
2018-10-20 09:51:22 +02:00
Peter Kokot
1b936033b0
[ci skip] Update NEWS
2018-10-20 09:48:50 +02:00
Mizunashi Mana
9f5cb626ed
Fix #77041 : buildconf should output error messages to stderr
2018-10-20 09:42:56 +02:00
Peter Kokot
2224277d7d
[ci skip] Update NEWS
2018-10-19 00:12:34 +02:00
Peter Kokot
74131ca342
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
[ci skip] Update NEWS
[ci skip] Update NEWS
Fix #77035 : The phpize and ./configure create redundant .deps file
2018-10-19 00:10:22 +02:00
Peter Kokot
b9d8e5d706
[ci skip] Update NEWS
2018-10-19 00:08:57 +02:00
Peter Kokot
5531dde5e9
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
[ci skip] Update NEWS
Fix #77035 : The phpize and ./configure create redundant .deps file
2018-10-19 00:07:42 +02:00
Peter Kokot
4be0528476
[ci skip] Update NEWS
2018-10-19 00:06:11 +02:00
Peter Kokot
447b41f6bb
Fix #77035 : The phpize and ./configure create redundant .deps file
...
The `.deps` file(s) was once used by Automake and created to write
dependencies to it. The file creation has been removed via the commit
779c11af21 .
The phpize and ./configure script create a redundant .deps file in a
PECL extension directory which might cause confusions why is it used.
Today it is no longer relevant so this redundant artefact can be
removed in the phpize configure script.
2018-10-19 00:02:09 +02:00
Peter Kokot
93427292f6
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix tests/output/bug74815.phpt generating errors.log
2018-10-18 23:39:39 +02:00
Peter Kokot
de9f325c12
Fix tests/output/bug74815.phpt generating errors.log
...
Test tests/output/bug74815.phpt was creating an errors.log file
in project root directory and didn't removed it after the test.
2018-10-18 23:39:00 +02:00
Anatol Belski
bca89bb735
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix test when it's run on another drive
2018-10-18 00:45:17 +02:00
Anatol Belski
6a5254bc96
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix test when it's run on another drive
2018-10-18 00:44:43 +02:00
Anatol Belski
fda06127fa
Fix test when it's run on another drive
2018-10-18 00:43:24 +02:00
Christoph M. Becker
24b6779254
[ci skip] Update UPGRADING wrt. tidyp support
...
This is especially noteworthy since `tidy_get_relase()` returns
'unknown' when built against libtidyp, which might break some code
which relies on `tidy_get_release()` to return a date formatted as
`yyyy/mm/dd`.
2018-10-17 23:45:03 +02:00
Christoph M. Becker
e6c2ab5463
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77027 : tidy::getOptDoc() not available on Windows
2018-10-17 16:37:09 +02:00
Christoph M. Becker
20695fb895
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #77027 : tidy::getOptDoc() not available on Windows
2018-10-17 16:30:46 +02:00
Christoph M. Becker
8a9e0312ce
Fix #77027 : tidy::getOptDoc() not available on Windows
...
We define the `HAVE_TIDYOPTGETDOC` macro unconditionally, since the
Windows PHP SDK ships libtidy 2009/04/06 or newer for a long time.
We do not add a regression test, since 021.phpt already tests
`tidy_get_opt_doc`, but has previously been skipped due to
unavailability of the function.
2018-10-17 16:27:07 +02:00
Nikita Popov
1151554668
Remove the "auto" encoding
...
"auto" is only meaningful in functions which accept an encoding
*list* and support encoding detection. These functions have
explicit checks for "auto". It cannot be used as a standalone
encoding in any meaningful capacity, so I'm dropping it entirely.
2018-10-17 12:50:24 +02:00
Nikita Popov
56665a1b17
Fixed bug #77025
...
Implements 8bit conversions equivalently to iso-8859-1 conversions.
This seems quite dubious to me, but seems to match the previous
behavior.
It might make more sense to map the characters into a private area
instead, so that the 8bit encoding is treated as binary data with
no case conversions (including no case conversions in the ascii
range).
2018-10-17 12:38:31 +02:00
Nikita Popov
2cc6462edc
Add vtbls for EUC-TW encoding
2018-10-17 12:10:16 +02:00
Christoph M. Becker
181fc483ed
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Add support for getting SKIP_TAGSTART and SKIP_WHITE options
2018-10-16 18:50:58 +02:00
Christoph M. Becker
310b95d7eb
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Add support for getting SKIP_TAGSTART and SKIP_WHITE options
2018-10-16 18:49:17 +02:00
Christoph M. Becker
b33124239a
Add support for getting SKIP_TAGSTART and SKIP_WHITE options
...
When `XML_OPTION_SKIP_TAGSTART` and `XML_OPTION_SKIP_WHITE` had been
introduced[1], it had been overlooked to also support them for
`xml_parser_get_option()`. We catch up on that.
[1] <http://git.php.net/?p=php-src.git;a=commit;h=b57dc275950b228f2399990471c4f22b7d154c6c >
2018-10-16 18:47:31 +02:00
Peter Kokot
6b8605d31f
Fix failing Zend/tests due to newlines
2018-10-15 05:04:29 +02:00
Peter Kokot
b746e69887
Sync leading and final newlines in *.phpt sections
...
This patch adds missing newlines, trims multiple redundant final
newlines into a single one, and trims redundant leading newlines in all
*.phpt sections.
According to POSIX, a line is a sequence of zero or more non-' <newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.
C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."
Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.
[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
2018-10-15 04:32:30 +02:00
Peter Kokot
3599a2d82b
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Sync leading and final newlines in *.phpt sections
Sync leading and final newlines in *.phpt sections
2018-10-15 04:31:53 +02:00
Peter Kokot
f1d7e3ca0b
Sync leading and final newlines in *.phpt sections
...
This patch adds missing newlines, trims multiple redundant final
newlines into a single one, and trims redundant leading newlines in all
*.phpt sections.
According to POSIX, a line is a sequence of zero or more non-' <newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.
C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."
Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.
[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
2018-10-15 04:31:31 +02:00
Peter Kokot
f98c916845
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Sync leading and final newlines in *.phpt sections
2018-10-15 04:30:40 +02:00
Peter Kokot
113213f027
Sync leading and final newlines in *.phpt sections
...
This patch adds missing newlines, trims multiple redundant final
newlines into a single one, and trims redundant leading newlines in all
*.phpt sections.
According to POSIX, a line is a sequence of zero or more non-' <newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.
C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."
Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.
[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
2018-10-15 04:29:24 +02:00
Peter Kokot
782352c54a
Trim trailing whitespace in *.phpt
2018-10-14 19:45:12 +02:00
Peter Kokot
604d4bdae5
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Trim trailing whitespace in *.phpt
Trim trailing whitespace in *.phpt
2018-10-14 19:44:33 +02:00
Peter Kokot
17ccbeec32
Trim trailing whitespace in *.phpt
2018-10-14 19:44:14 +02:00
Peter Kokot
cc7215f48f
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Trim trailing whitespace in *.phpt
2018-10-14 19:43:39 +02:00
Peter Kokot
7af945e271
Trim trailing whitespace in *.phpt
2018-10-14 19:43:12 +02:00
Peter Kokot
cad70d9db6
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix failing ext/session/tests due to final newlines
2018-10-14 13:41:21 +02:00
Peter Kokot
2707932241
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix failing ext/session/tests due to final newlines
2018-10-14 13:41:09 +02:00
Peter Kokot
afd534f163
Fix failing ext/session/tests due to final newlines
2018-10-14 13:38:28 +02:00
Peter Kokot
1c850bfcca
Sync leading and final newlines in source code files
...
This patch adds missing newlines, trims multiple redundant final
newlines into a single one, and trims redundant leading newlines.
According to POSIX, a line is a sequence of zero or more non-' <newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.
C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."
Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.
[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
2018-10-14 12:55:24 +02:00
Peter Kokot
a6d3e56a1e
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Sync leading and final newlines in source code files
Sync leading and final newlines in source code files
2018-10-14 12:54:39 +02:00
Peter Kokot
60a69daec6
Sync leading and final newlines in source code files
...
This patch adds missing newlines, trims multiple redundant final
newlines into a single one, and trims redundant leading newlines.
According to POSIX, a line is a sequence of zero or more non-' <newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.
C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."
Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.
[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
2018-10-14 12:54:08 +02:00
Peter Kokot
6f343d29a5
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Sync leading and final newlines in source code files
2018-10-14 12:52:38 +02:00
Peter Kokot
03f3b8479b
Sync leading and final newlines in source code files
...
This patch adds missing newlines, trims multiple redundant final
newlines into a single one, and trims redundant leading newlines.
According to POSIX, a line is a sequence of zero or more non-' <newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.
C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."
Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.
[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
2018-10-14 12:51:01 +02:00
Frank Denis
c4ea98455d
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
ext/sodium: sodium_pad(): do not copy any bytes if the string is empty
ext/sodium: Fix sodium_pad() with blocksize >= 256
ext/sodium: Use a correct max output size for base64 decoding
ext/sodium: Avoid shifts wider than 32 bits on size_t values
2018-10-14 11:01:53 +02:00
Frank Denis
5d70165f63
[ci skip] Update NEWS
2018-10-14 10:58:02 +02:00
Frank Denis
82a93c1794
ext/sodium: sodium_pad(): do not copy any bytes if the string is empty
...
Spotted by San Zhang, thanks!
Backport from PECL libsodium-php 2.0.13
2018-10-14 10:43:21 +02:00
Frank Denis
bf48d0c475
ext/sodium: Fix sodium_pad() with blocksize >= 256
...
Backport from PECL libsodium-php 2.0.12
2018-10-14 10:37:37 +02:00
Frank Denis
15ba7df224
ext/sodium: Use a correct max output size for base64 decoding
...
Also handle the case where the function is not available in test.
Backport from PECL libsodium-php 2.0.12
2018-10-14 10:37:18 +02:00
Frank Denis
d057458166
ext/sodium: Avoid shifts wider than 32 bits on size_t values
...
Backport from PECL libsodium-php 2.0.10
2018-10-14 10:21:29 +02:00
Peter Kokot
1670c4679d
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix failing tests/lang due to whitespace
2018-10-13 15:23:48 +02:00
Peter Kokot
c25b1a7e8c
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix failing tests/lang due to whitespace
2018-10-13 15:23:35 +02:00
Peter Kokot
ed64e1d59a
Fix failing tests/lang due to whitespace
2018-10-13 15:22:49 +02:00
Peter Kokot
3764bd7997
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix failing ext/zlib/tests due to whitespace
2018-10-13 15:16:15 +02:00
Peter Kokot
102cf75eeb
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix failing ext/zlib/tests due to whitespace
2018-10-13 15:15:39 +02:00
Peter Kokot
9120e79e9f
Fix failing ext/zlib/tests due to whitespace
2018-10-13 15:15:26 +02:00
Peter Kokot
3362620b5f
Trim trailing whitespace in source code files
2018-10-13 14:16:33 +02:00
Peter Kokot
edefd16fbc
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Trim trailing whitespace in source code files
Trim trailing whitespace in source code files
2018-10-13 14:15:15 +02:00
Peter Kokot
902d39a3a7
Trim trailing whitespace in source code files
2018-10-13 14:14:50 +02:00
Peter Kokot
581f0141b6
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Trim trailing whitespace in source code files
2018-10-13 14:13:37 +02:00
Peter Kokot
7f6387b59a
Trim trailing whitespace in source code files
2018-10-13 14:12:55 +02:00
Peter Kokot
85290bbfcc
Convert CRLF line endings to LF
...
This patch simplifies line endings tracked in the Git repository and
syncs them to all include the LF style instead of the CRLF files.
Newline characters:
- LF (\n) (*nix and Mac)
- CRLF (\r\n) (Windows)
- CR (\r) (old Mac, obsolete)
To see which line endings are in the index and in the working copy the
following command can be used:
`git ls-files --eol`
Git additionally provides `.gitattributes` file to specify if some files
need to have specific line endings on all platforms (either CRLF or LF).
Changed files shouldn't cause issues on modern Windows platforms because
also Git can do output conversion is core.autocrlf=true is set on
Windows and use CRLF newlines in all files in the working tree.
Unless CRLF files are tracked specifically, Git by default tracks all
files in the index using LF newlines.
2018-10-13 11:23:20 +02:00
Peter Kokot
d591c35779
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Convert CRLF line endings to LF
Convert CRLF line endings to LF
2018-10-13 11:22:47 +02:00
Peter Kokot
2aa897476f
Convert CRLF line endings to LF
...
This patch simplifies line endings tracked in the Git repository and
syncs them to all include the LF style instead of the CRLF files.
Newline characters:
- LF (\n) (*nix and Mac)
- CRLF (\r\n) (Windows)
- CR (\r) (old Mac, obsolete)
To see which line endings are in the index and in the working copy the
following command can be used:
`git ls-files --eol`
Git additionally provides `.gitattributes` file to specify if some files
need to have specific line endings on all platforms (either CRLF or LF).
Changed files shouldn't cause issues on modern Windows platforms because
also Git can do output conversion is core.autocrlf=true is set on
Windows and use CRLF newlines in all files in the working tree.
Unless CRLF files are tracked specifically, Git by default tracks all
files in the index using LF newlines.
2018-10-13 11:22:30 +02:00
Peter Kokot
5a0610d8cc
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Convert CRLF line endings to LF
2018-10-13 11:22:02 +02:00
Peter Kokot
3f72c77ce4
Convert CRLF line endings to LF
...
This patch simplifies line endings tracked in the Git repository and
syncs them to all include the LF style instead of the CRLF files.
Newline characters:
- LF (\n) (*nix and Mac)
- CRLF (\r\n) (Windows)
- CR (\r) (old Mac, obsolete)
To see which line endings are in the index and in the working copy the
following command can be used:
`git ls-files --eol`
Git additionally provides `.gitattributes` file to specify if some files
need to have specific line endings on all platforms (either CRLF or LF).
Changed files shouldn't cause issues on modern Windows platforms because
also Git can do output conversion is core.autocrlf=true is set on
Windows and use CRLF newlines in all files in the working tree.
Unless CRLF files are tracked specifically, Git by default tracks all
files in the index using LF newlines.
2018-10-13 11:21:27 +02:00
Derick Rethans
9c608bd13f
Upgrade timelib to 2018.01RC1, to fix bug #77007
2018-10-12 11:50:36 +01:00
Derick Rethans
a31480c9ae
Merge branch 'PHP-7.2' into PHP-7.3
2018-10-12 11:41:24 +01:00
Derick Rethans
94a98f2c63
Upgrade timelib to 2017.08, to fix bug #77007
2018-10-12 11:41:05 +01:00
Derick Rethans
454a86c2c5
Update news with further fixed bugs due to timelib upgrade
2018-10-11 17:00:42 +01:00
Nikita Popov
01948f20b8
Fixed bug #76991
...
Back up exceptions while the scan-ahead loop, to avoid an early
bail out.
2018-10-10 15:00:18 +02:00
Peter Kokot
1386b029f9
[ci skip] Update UPGRADING about Autoconf version
2018-10-09 21:16:17 +02:00
Peter Kokot
0b0d4b5f0d
Bump minimum Autoconf requirement to 2.68
...
This patch syncs and bumps the minimum required version of Autoconf for
the `phpize.m4` script and the main `configure.ac` from previously mixed
2.64 and 2.59 to 2.68.
At the time of this writing Autoconf 2.63 is still the version on
Centos 6, however by the PHP 7.3 release current systems out there
should all have pretty much updated Autoconf versions to 2.64+ at
least. Centos 7 already has Autoconf 2.69, for example.
This provides more options to update and get current with the *nix
build system and also avoids broken builds in certain cases as pointed
out in the relevant discussion [1].
Additionally, phpize also already provides the `AX_CHECK_COMPILE_FLAG`
Autoconf Archive m4 file that has Autoconf 2.64 minimum requirement.
Autoconf 2.68 was released in 2010, 8 years ago, relative to this patch.
[1] https://github.com/php/php-src/pull/3562
2018-10-09 21:06:10 +02:00
Christoph M. Becker
54e152cb92
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #30875 : xml_parse_into_struct() does not resolve entities
2018-10-09 16:08:55 +02:00
Christoph M. Becker
ebecf569f9
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #30875 : xml_parse_into_struct() does not resolve entities
2018-10-09 16:06:56 +02:00
Christoph M. Becker
2845f859c1
Fix #30875 : xml_parse_into_struct() does not resolve entities
...
Setting up an empty default handler is not only useless, but actually
harmful, since internal entity-references are not resolved anymore.
From the libexpat docs[1]:
| Setting the handler with this call has the side effect of
| turning off expansion of references to internally defined general
| entities. Instead these references are passed to the default
| handler.
[1] <https://www.xml.com/pub/1999/09/expat/reference.html#setdefhandler >
2018-10-09 16:04:43 +02:00
Christoph M. Becker
efb9ccc91b
[ci skip] Update NEWS
2018-10-09 13:30:59 +02:00
Derick Rethans
1eac7c1ea3
Fixed tests
2018-10-09 11:37:53 +01:00
Derick Rethans
e47444d1e1
Added test case for bug #75577
2018-10-09 11:08:40 +01:00
Derick Rethans
09340ea9b9
Fixed bug #75577 : DateTime::createFromFormat does not accept 'v' format specifier, by updating timelib to 2018.01alpha2
2018-10-09 11:08:40 +01:00
Christoph M. Becker
3d4167c3de
[ci skip] Update NEWS wrt. php-7.3.0RC3 tagging
2018-10-09 11:58:48 +02:00
Pierrick Charron
44d2c8c6dd
Merge branch 'PHP-7.2' into PHP-7.3
2018-10-09 01:26:55 -04:00
Pierrick Charron
efa5674a9b
Merge branch 'PHP-7.1' into PHP-7.2
2018-10-09 01:20:01 -04:00
Pierrick Charron
f42d7bddc0
Fixed bug #76965 INI_SCANNER_RAW doesn't strip trailing whitespace
2018-10-09 00:00:21 -04:00
Pierrick Charron
64881a1e64
Add constants from curl 7.56 to 7.61
2018-10-08 10:19:35 -04:00
Nikita Popov
d982bbe175
Fix ref ID handling when serializing $GLOBALS
...
This was already broken previously, but in PHP 7.3 stricter
validation during unserialization made this into an error.
2018-10-08 13:16:23 +02:00
Christoph M. Becker
c5df679ca8
[ci skip] Note the required configure changes for bundled libzip
2018-10-08 12:48:20 +02:00
Christoph M. Becker
6178786233
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #76954 : apache_response_headers removes last character from header name
2018-10-08 12:32:52 +02:00
Christoph M. Becker
879c937a27
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #76954 : apache_response_headers removes last character from header name
2018-10-08 12:30:45 +02:00
stodorovic
47b89bc531
Fix #76954 : apache_response_headers removes last character from header name
2018-10-08 12:29:31 +02:00
Christoph M. Becker
e68f60b087
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #75851 : Year component overflow with date formats "c", "o", "r" and "y"
2018-10-08 11:52:37 +02:00
Christoph M. Becker
1b97f291a7
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #75851 : Year component overflow with date formats "c", "o", "r" and "y"
2018-10-08 11:50:37 +02:00
Adam Saponara
c097acd52e
Fix #75851 : Year component overflow with date formats "c", "o", "r" and "y"
2018-10-08 11:48:58 +02:00
Pedro Magalhães
484b79e868
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Remove unstable dns tests
2018-10-06 15:58:51 +01:00
Pedro Magalhães
608b48e5f4
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Remove unstable dns tests
2018-10-06 15:58:32 +01:00
Pedro Magalhães
49835e1436
Remove unstable dns tests
2018-10-06 15:58:01 +01:00
Pedro Magalhães
ef36419af4
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #76888 - Remove unstable test
2018-10-06 15:46:11 +01:00
Pedro Magalhães
82e10f3974
Fix #76888 - Remove unstable test
2018-10-06 15:45:07 +01:00
Michael Moravec
0a6ddc7722
Fix bug #76979 : define() error message does not mention resources as valid values
2018-10-06 11:21:51 +02:00
Christoph M. Becker
e345af1a2e
Fix #76975 : preg_match difference between 7.3 and < 7.3 - II
...
[ci skip]
2018-10-06 11:05:41 +02:00
Anatol Belski
476fdf543a
[ci skip] Update NEWS
2018-10-05 23:01:03 +02:00
Anatol Belski
d5b84feadc
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
[ci skip] Update NEWS
[ci skip] Update NEWS
Add test for bug #76942
2018-10-05 23:00:24 +02:00
Anatol Belski
fec5786f87
[ci skip] Update NEWS
2018-10-05 22:59:55 +02:00
Anatol Belski
833a1daee2
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
[ci skip] Update NEWS
Add test for bug #76942
2018-10-05 22:57:45 +02:00
Anatol Belski
aaf4cc05eb
[ci skip] Update NEWS
2018-10-05 22:57:27 +02:00
Anatol Belski
72df422d69
Add test for bug #76942
2018-10-05 22:54:50 +02:00
Anatol Belski
55e0bc9532
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Add test for bug #76942
Fixed Bug #76942 U_ARGUMENT_TYPE_MISMATCH
2018-10-05 22:53:11 +02:00
Anatol Belski
a7754286d2
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Add test for bug #76942
Fixed Bug #76942 U_ARGUMENT_TYPE_MISMATCH
2018-10-05 22:52:53 +02:00
Anatol Belski
c2a956de6f
Add test for bug #76942
2018-10-05 22:51:58 +02:00
Anatol Belski
534684d104
Fixed Bug #76942 U_ARGUMENT_TYPE_MISMATCH
...
ref bug #74484
2018-10-05 22:50:34 +02:00
twosee
05a884f639
Optimize MySQL statement execute without parameters
2018-10-05 21:33:38 +02:00
Nikita Popov
aa376cc1d5
Merge branch 'PHP-7.2' into PHP-7.3
2018-10-05 18:41:57 +02:00
Nikita Popov
fde2ae3721
Merge branch 'PHP-7.1' into PHP-7.2
2018-10-05 18:41:28 +02:00
Manuel Mausz
bb4a2e8bb7
Fix #76972 : FTP data truncation due to forceful ssl socket shutdown
...
Do a correct bidirectional shutdown instead
2018-10-05 18:40:50 +02:00
Remi Collet
bbfea4b470
Allow to disable pcre.jit when system library is used
...
as it is for now broken on some arch (s390x...)
2018-10-04 11:45:35 +02:00
Pierrick Charron
2e984dc726
Update NEWS [ci skip]
2018-10-03 21:18:47 -04:00
Pierrick Charron
02b2dbb724
Add constants from curl 7.50 to 7.55
2018-10-03 19:43:59 -04:00
Christoph M. Becker
6af14492a5
libzip has been unbundled in master only
...
Cf. <https://github.com/php/php-src/pull/3532 >.
2018-10-04 00:30:10 +02:00
Anatol Belski
38c060852e
Update NEWS [ci skip]
2018-10-03 18:54:08 +02:00
Anatol Belski
0c99755c3c
Update NEWS [ci skip]
2018-10-03 18:51:48 +02:00
Anatol Belski
3424cc1e8e
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update NEWS [ci skip]
Update NEWS [ci skip]
2018-10-03 18:50:24 +02:00
Anatol Belski
42b769b9e2
Update NEWS [ci skip]
2018-10-03 18:49:52 +02:00
Anatol Belski
31a293f885
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Update NEWS [ci skip]
2018-10-03 18:49:13 +02:00
Anatol Belski
abfda3de99
Update NEWS [ci skip]
2018-10-03 18:48:40 +02:00
Anatol Belski
8400f73f8d
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Avoid code duplication and don't miss env restore
2018-10-03 14:35:38 +02:00
Anatol Belski
b8cfa09657
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Avoid code duplication and don't miss env restore
2018-10-03 14:34:08 +02:00
Anatol Belski
044eb39e63
Avoid code duplication and don't miss env restore
2018-10-03 14:32:52 +02:00
Remi Collet
726a77cfdd
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
bump zip extension version
2018-10-03 12:59:31 +02:00
Remi Collet
da05b7e81e
bump zip extension version
2018-10-03 12:59:01 +02:00
Anatol Belski
46bc0940e7
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #76948 Failed shutdown/reboot or end session in Windows
2018-10-03 12:15:15 +02:00
Anatol Belski
dc48e01a19
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed bug #76948 Failed shutdown/reboot or end session in Windows
2018-10-03 12:13:22 +02:00
Anatol Belski
b0547a3dfb
Fixed bug #76948 Failed shutdown/reboot or end session in Windows
2018-10-03 12:11:43 +02:00
Nikita Popov
9f3ea20320
Merge branch 'PHP-7.2' into PHP-7.3
2018-10-03 10:50:27 +02:00
Nikita Popov
54aa76167b
Merge branch 'PHP-7.1' into PHP-7.2
2018-10-03 10:50:16 +02:00
Nikita Popov
945f315506
Reflection: Copy invoke function also in the variadic case
...
It doesn't matter how the parameters are provided, we always have
to copy the trampoline invoke function.
2018-10-03 10:48:42 +02:00
Anatol Belski
8209a8821c
Fixed bug #76947 file_put_contents() blocks the directory of the file (__DIR__)
...
The condition was wrong. The target buffer size only matters, when some
output is going to be copied into it.
2018-10-03 00:15:43 +02:00
Nikita Popov
a42801abe3
Merge branch 'PHP-7.2' into PHP-7.3
2018-10-02 18:20:25 +02:00
Nikita Popov
f0647edd88
Fixed bug #66430
2018-10-02 18:19:53 +02:00
Nikita Popov
b8392803f9
Merge branch 'PHP-7.2' into PHP-7.3
2018-10-02 17:48:56 +02:00
Nikita Popov
d2477b284b
Fixed bug #76936
2018-10-02 17:47:07 +02:00
Nikita Popov
26f82a7706
Fixed bug #76958
2018-10-02 16:13:51 +02:00
Nikita Popov
9cfd8f43c2
Don't fall back to vtbl_pass if no matching vtbl found
...
If we don't know how to convert between two encodings, make sure
we error instead of ignoring the issue.
Explicitly use vtbl_pass if we are round-tripping wchar->wchar or
8bit->8bit. Fingers crossed that nothing else relies on the
vtbl_pass fallback...
2018-10-02 16:07:22 +02:00
Nikita Popov
d7e96c1b95
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-30 20:07:58 +02:00
Nikita Popov
56d1578515
Merge branch 'PHP-7.1' into PHP-7.2
2018-09-30 20:07:44 +02:00
Nikita Popov
db80e0e2ad
Fixed bug #75479
...
Wrap the zend_signal_init() call, so the hook arguments line up.
2018-09-30 20:07:15 +02:00
Nikita Popov
b617a5b2ea
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-29 21:20:01 +02:00
James Titcumb
950c338f80
Fix reflection arguments for sodium_memzero function
2018-09-29 21:19:42 +02:00
Nikita Popov
8b8b625d08
Fixed bug #72635
...
This seems to be a simple oversight, where we did not enable
exceptions. Other constexpr conditions already throw, so there is
no particular reason to stick to a fatal error here.
2018-09-29 14:21:08 +02:00
Nikita Popov
7189e0b70f
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-28 19:17:53 +02:00
Nikita Popov
8e7dfc6ddf
Merge branch 'PHP-7.1' into PHP-7.2
2018-09-28 19:17:29 +02:00
Nikita Popov
83e2b9e220
Fixed bug #76946
2018-09-28 19:15:19 +02:00
Sara Golemon
0470d21ef3
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Bump versions for 7.1.24-dev
2018-09-28 11:32:56 -04:00
Sara Golemon
fed09a23b7
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Bump versions for 7.1.24-dev
2018-09-28 11:32:41 -04:00
Sara Golemon
69c1b619c9
Bump versions for 7.1.24-dev
2018-09-28 11:31:22 -04:00
Nikita Popov
8ebe1b8de1
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-28 13:41:29 +02:00
Nikita Popov
99eb4b2ea4
Merge branch 'PHP-7.1' into PHP-7.2
2018-09-28 13:41:06 +02:00
Nikita Popov
fa84b8ebb4
Fix test for release builds
2018-09-28 13:40:58 +02:00
Nikita Popov
25522baec4
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-28 12:58:59 +02:00
Nikita Popov
1c35357b31
Merge branch 'PHP-7.1' into PHP-7.2
2018-09-28 12:57:55 +02:00
Nikita Popov
45cdcb2d0b
Fixed bug #76846
2018-09-28 12:56:47 +02:00
Sara Golemon
c431b45fe4
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Bump version
2018-09-25 16:43:40 -04:00
Sara Golemon
5f29e3fb6e
Bump version
2018-09-25 16:39:25 -04:00
Sara Golemon
913c20e61f
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #76918 Repeated parameter name in arg info
2018-09-25 12:10:21 -04:00
Sara Golemon
4baf4964ad
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed bug #76918 Repeated parameter name in arg info
2018-09-25 12:09:38 -04:00
Sara Golemon
b5d0eb44c0
Fixed bug #76918 Repeated parameter name in arg info
2018-09-25 11:18:24 -04:00
Christoph M. Becker
36092b2354
Update NEWS wrt. php-7.3.0RC2 tagging
2018-09-25 11:29:01 +02:00
Christopher Jones
1d67577f4d
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-24 20:53:31 +10:00
Christopher Jones
682d0f8325
Merge branch 'PHP-7.1' into PHP-7.2
2018-09-24 20:53:11 +10:00
Christopher Jones
9e56a3373e
Terminate smart string correctly
...
This is related to Zend VM regression bug #75881 . The regression was fixed in the VM, so there is no user visible change from the termination correction.
2018-09-24 20:52:58 +10:00
Christopher Jones
e6fae9e6f9
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-24 20:14:05 +10:00
Christopher Jones
4ba1fc0a11
Merge branch 'PHP-7.1' into PHP-7.2
2018-09-24 20:06:05 +10:00
Christopher Jones
91954c24da
Make usable for PECL OCI8 release for PHP 7.x
2018-09-24 20:05:54 +10:00
Christopher Jones
3413e7d1d8
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-24 17:07:06 +10:00
Christopher Jones
28b89afca1
Merge branch 'PHP-7.1' into PHP-7.2
2018-09-24 17:06:59 +10:00
Christopher Jones
57eb25b393
Backport master branch comment typo fix
2018-09-24 17:06:29 +10:00
Christopher Jones
28ecd4e1c7
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-24 17:02:36 +10:00
Christopher Jones
d7b060e995
Merge branch 'PHP-7.1' into PHP-7.2
2018-09-24 17:01:20 +10:00
Christopher Jones
3d497f884f
Make tests portable across PHP 7.x versions
2018-09-24 17:01:13 +10:00
Christopher Jones
f291a36659
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-24 16:52:33 +10:00
Christopher Jones
a370e7d0ad
Merge branch 'PHP-7.1' into PHP-7.2
2018-09-24 16:52:26 +10:00
Christopher Jones
338802b543
Remove $id from phpinfo as already done in PHP-7.3
2018-09-24 16:52:17 +10:00
Christopher Jones
d7b87cd995
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-24 16:41:35 +10:00
Christopher Jones
fc296a27db
Merge branch 'PHP-7.1' into PHP-7.2
2018-09-24 16:38:47 +10:00
Christopher Jones
37652336c7
And strip trailing tabs too...
2018-09-24 16:38:39 +10:00
Christopher Jones
aae4ccb030
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-24 16:02:19 +10:00
Christopher Jones
d2b04c1749
Merge branch 'PHP-7.1' into PHP-7.2
2018-09-24 16:00:04 +10:00
Christopher Jones
bdd67d8175
Sync EXPECT usage with PHP-7.3
2018-09-24 15:59:52 +10:00
Christopher Jones
45ab3d3ad3
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-24 13:33:54 +10:00
Christopher Jones
f396d297aa
Merge branch 'PHP-7.1' into PHP-7.2
2018-09-24 13:27:35 +10:00
Christopher Jones
a2c0f8722b
Remove trailing whitespace to help keep branches in sync
2018-09-24 13:27:27 +10:00
Christopher Jones
826702417d
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-24 09:57:20 +10:00
Christopher Jones
f68662f63f
Merge branch 'PHP-7.1' into PHP-7.2
2018-09-24 09:56:53 +10:00
Christopher Jones
eceb34073b
Remove trailing whitespace to help keep branches in sycn
2018-09-24 09:37:46 +10:00
Anatol Belski
da17686d60
[ci skip] Update NEWS
2018-09-23 11:42:07 +02:00
Christoph M. Becker
150e2b8c8c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #66828 : iconv_mime_encode Q-encoding longer than it should be
2018-09-22 15:56:49 +02:00
Christoph M. Becker
7c2cc9aa56
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #66828 : iconv_mime_encode Q-encoding longer than it should be
2018-09-22 15:31:02 +02:00
Christoph M. Becker
9cbe1283f7
Fix #66828 : iconv_mime_encode Q-encoding longer than it should be
...
Before the fix for bug 48289 has been applied, the algorithm to
construct a Q-encoded-word has been optimistic, i.e. try to encode as
many bytes that *may* fit in the remaining space, calculate the actual
length of the Q-encoded word, and if it's too long, try again with a
reduced size. However, the fix for the mentioned bug replaced this by
a pessimistic algorithm, which always terminates[1] the for loop[2]
during the first iteration (which renders the following 3 lines as dead
code), and as such easily produces unnecessarily short encoded-words.
Instead the proper fix for the bug would have been to make sure that
`out_size` is always decremented, if the space isn't sufficient for the
encoded-word.
[1] <https://github.com/php/php-src/blob/php-7.3.0beta3/ext/iconv/iconv.c#L1421 >
[2] <https://github.com/php/php-src/blob/php-7.3.0beta3/ext/iconv/iconv.c#L1360 >
2018-09-22 15:20:20 +02:00
Anatol Belski
9f3aac9e39
Fix test and add skip section
2018-09-22 02:10:43 +02:00
Anatol Belski
9c58ab37c7
Add test for bug #76909
2018-09-21 15:57:00 +02:00
Anatol Belski
7a02ecb7fe
Fixed bug #76909 preg_match difference between 7.3 and < 7.3
...
Applied upstream patch, see https://bugs.exim.org/show_bug.cgi?id=2321
2018-09-21 15:55:03 +02:00
Anatol Belski
91b2b6c65d
Upgrade PCRE2 to 10.32
...
(cherry picked from commit d918e0776b )
2018-09-21 15:54:14 +02:00
Sebastian Bergmann
72231ed747
Fix
2018-09-20 12:01:34 -04:00
Sebastian Bergmann
a311799864
Fix
2018-09-20 11:53:27 -04:00
Dmitry Stogov
b8ffa3707c
Fixed bug #76711 (OPcache enabled triggers false-positive "Illegal string offset")
2018-09-20 12:33:46 +03:00
Nikita Popov
f5729ec532
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-19 12:31:55 +02:00
Nikita Popov
c26902911f
Merge branch 'PHP-7.1' into PHP-7.2
2018-09-19 12:31:46 +02:00
Nikita Popov
842bec5b3c
Fix getColumnMeta() test
...
Newer MySQL versions are stricter about invalid values. Three issues
are fixed:
* Don't use negative values with ZEROFILL. ZEROFILL implies UNSIGNED.
* Use a legal TIMESTAMP value. TIMESTAMP does not accept a Unix timestamp.
* Specify BIGINT values as strings, to avoid overflows.
This is a cherry-pick of d2dc0a3291 from master.
2018-09-19 12:29:38 +02:00
Nikita Popov
c614dd677c
Fix intermittent failures in mysqli_stmt_bind_result_format.phpt
...
There were two distinct issues here:
* $trend was compared against 'NULL' using !=, which does not work
as intended in the case where $trend==0.0.
* current_targets was declared as double(17,0), which means that
the fractional part was rounded, so that the same comparison in
SQL (rounded) and in PHP (not rounded) did not necessarily
match.
Please don't write mt_rand based tests, it takes ages to debug this
crap...
2018-09-19 12:27:31 +02:00
Nikita Popov
040ca85eac
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-19 09:39:31 +02:00
Nikita Popov
cc1fb02760
Merge branch 'PHP-7.1' into PHP-7.2
2018-09-19 09:39:13 +02:00
Nikita Popov
294fb83ee8
Fixed bug #76901
...
get_method() may modify the object pointer passed to it if method
forwarding is used. In this case we do not want to modify the
passed zval, so make sure that we copy the object into a temporary
first.
2018-09-19 09:37:04 +02:00
Nikita Popov
c2da50bc41
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-18 20:51:28 +02:00
Nikita Popov
6bf681249f
Merge branch 'PHP-7.1' into PHP-7.2
2018-09-18 20:50:37 +02:00
Manabu Matsui
ab6c45f524
Fix bug #75533 : array_reduce is slow when $carry is large array
2018-09-18 20:49:59 +02:00
Nikita Popov
9f4ec45aa6
Remove invalid free
...
The initialization of buffer has been moved further down in 7.3,
so this free is no longer legal.
2018-09-18 12:38:46 +02:00
Anatol Belski
f608a60456
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Add spectre switch for suitable vc14 versions
2018-09-18 10:46:44 +02:00
Anatol Belski
a747db872f
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Add spectre switch for suitable vc14 versions
2018-09-18 10:45:18 +02:00
Anatol Belski
be02b2e8fd
Add spectre switch for suitable vc14 versions
2018-09-18 10:43:52 +02:00
Pierrick Charron
aec2d63124
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-17 20:31:07 -04:00
Pierrick Charron
bc1ecd5d7f
Merge branch 'PHP-7.1' into PHP-7.2
2018-09-17 20:30:18 -04:00
Pierrick Charron
3bb218a0a7
Fix 76480: Use curl_multi_wait() so that timeouts are respected
2018-09-17 20:28:44 -04:00
Dmitry Stogov
b25bc917ec
Allow switching back to Zend MM heap.
2018-09-17 20:20:13 +03:00
Christoph M. Becker
ae46e20879
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #76886 : Can't build xmlrpc with expat
2018-09-15 13:24:48 +02:00
Thomas Petazzoni
3691b6d245
Fix #76886 : Can't build xmlrpc with expat
...
We fix it by including "php.h" in the HAVE_LIBEXPAT case.
2018-09-15 13:21:53 +02:00
Dmitry Stogov
17c7b71057
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #76800 (foreach inconsistent if array modified during loop)
2018-09-14 10:32:31 +03:00
Dmitry Stogov
3bc4a63fc2
Fixed bug #76800 (foreach inconsistent if array modified during loop)
2018-09-14 10:28:31 +03:00
Anatol Belski
6bd6265845
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Sync version for vc++ 15.9
2018-09-13 19:27:29 +02:00
Anatol Belski
83685b5258
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Sync version for vc++ 15.9
2018-09-13 19:26:49 +02:00
Anatol Belski
d77ac7b3dc
Sync version for vc++ 15.9
2018-09-13 19:25:23 +02:00
Anatol Belski
b9bcca0080
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Backport changes for OpenSSL 1.1.1 CI integration
2018-09-13 11:06:47 +02:00
Anatol Belski
922f1a0dcf
Backport changes for OpenSSL 1.1.1 CI integration
...
Add debug message for failing test parts
(cherry picked from commit a45169a6ba )
Show all unmatched errors when test failed
(cherry picked from commit 7015965254 )
More possibly colliding libs to remove from the test image
(cherry picked from commit 3008ad1a49 )
Remove colliding file from CI image
(cherry picked from commit 6220d21c34 )
Fix typo
(cherry picked from commit 24517d82cf )
2018-09-13 11:03:42 +02:00
Anatol Belski
ed5262b589
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Improve error code matching
2018-09-12 16:25:39 +02:00
Anatol Belski
05a4fec761
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Improve error code matching
2018-09-12 16:24:38 +02:00
Anatol Belski
19ab91781e
Improve error code matching
2018-09-12 16:22:22 +02:00
Anatol Belski
a14b69e114
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update binary SDK version for AppVeyor
2018-09-12 12:11:47 +02:00
Anatol Belski
aed32f2a03
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Update binary SDK version for AppVeyor
2018-09-12 12:11:07 +02:00
Anatol Belski
49511a5132
Update binary SDK version for AppVeyor
2018-09-12 12:09:32 +02:00
Dmitry Stogov
655a99d131
Fixed bug #76869 (Incorrect bypassing protected method accessibilty check).
2018-09-12 12:16:50 +03:00
Ferenc Kovacs
58735c59b1
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-12 00:06:33 +02:00
Ferenc Kovacs
f56eeb1779
Merge branch 'PHP-7.1' into PHP-7.2
2018-09-12 00:04:40 +02:00
Ferenc Kovacs
68a77fe3d8
Merge branch 'PHP-7.0' into PHP-7.1
2018-09-12 00:02:18 +02:00
Ferenc Kovacs
cba6055cac
Merge branch 'PHP-5.6' into PHP-7.0
2018-09-12 00:00:46 +02:00
Ferenc Kovacs
81f23057dc
5.6.39 will be the next
2018-09-11 23:58:17 +02:00
Christoph M. Becker
e6585a472e
[ci skip] Update NEWS wrt. php-7.3.RC1 tagging
2018-09-11 16:28:36 +02:00
Christoph M. Becker
b117feeb2b
Fix #76510 : file_exists() stopped working for phar://
...
We work around a strlen() optimization bug in GCC 8[1] by checking
whether the used GCC exhibits the broken behavior, and if so by
disabling `optimize-strlen`.
[1] <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86914 >
2018-09-11 12:23:20 +02:00
Anatol Belski
1bb29a4af2
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
7.0.33 next
2018-09-11 07:01:44 +02:00
Anatol Belski
9fe7250e5c
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
7.0.33 next
2018-09-11 07:01:18 +02:00
Anatol Belski
af80ff25f6
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
7.0.33 next
2018-09-11 07:00:48 +02:00
Anatol Belski
1b89522974
7.0.33 next
2018-09-11 07:00:15 +02:00
Anatol Belski
6f8c27f499
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Sync NEWS [ci skip]
2018-09-10 16:58:33 +02:00
Anatol Belski
e28516bb91
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Sync NEWS [ci skip]
2018-09-10 16:58:02 +02:00
Anatol Belski
df45faf446
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Sync NEWS [ci skip]
2018-09-10 16:57:24 +02:00
Anatol Belski
4415dab25e
Sync NEWS [ci skip]
2018-09-10 16:56:37 +02:00
Remi Collet
acada183f5
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
add NEWS for 76582
2018-09-10 15:31:08 +02:00
Remi Collet
609afc2992
add NEWS for 76582
2018-09-10 15:30:51 +02:00
Sara Golemon
a26a107aae
Enforce ordering of property compare in object comparisons
2018-09-10 08:47:50 -04:00
Dmitry Stogov
64dad57d19
Fixed wrong assertion
2018-09-10 15:26:38 +03:00
Anatol Belski
27b270de89
Skip test on unsuitable env
2018-09-10 09:51:36 +02:00
Stanislav Malyshev
af38a991ff
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update NEWS
Fix for bug #76582
2018-09-09 12:29:34 -07:00
Stanislav Malyshev
788717d56d
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Update NEWS
Fix for bug #76582
2018-09-09 12:29:29 -07:00
Stanislav Malyshev
6623f3caca
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Update NEWS
Fix for bug #76582
2018-09-09 12:29:23 -07:00
Stanislav Malyshev
024f3ac160
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Update NEWS
Fix for bug #76582
2018-09-09 12:27:44 -07:00
Stanislav Malyshev
c1de84014d
Update NEWS
2018-09-09 12:19:38 -07:00
Stanislav Malyshev
23b057742e
Fix for bug #76582
...
The brigade seems to end up in a messed up state if something fails
in shutdown, so we clean it up.
2018-09-09 11:45:14 -07:00
Jakub Zelenka
9eec7d06f6
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-09 18:59:47 +01:00
Jakub Zelenka
87a9536bda
Merge branch 'PHP-7.1' into PHP-7.2
2018-09-09 18:58:23 +01:00
Jakub Zelenka
be50a72715
Fix ssl stream reneg limit test to print only after first renegotiation
...
It has been reported that in some setup the test does multiple
renegotiations which is allowed.
2018-09-09 18:53:55 +01:00
Anatol Belski
68c34ce0dc
Make a copy unconditionally
2018-09-09 10:42:53 +02:00
Anatol Belski
9278be148e
Fix memory leak in pcre cache
2018-09-09 10:38:36 +02:00
Anatol Belski
4905d5e0df
Add test for bug #76850
2018-09-08 21:39:54 +02:00
Anatol Belski
c6ddd45650
Fixed bug #76850 Exit code mangled by set locale/preg_match
2018-09-08 21:35:23 +02:00
Christoph M. Becker
58e2f5ead1
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #75273 : php_zlib_inflate_filter() may not update bytes_consumed
2018-09-08 19:13:26 +02:00
Christoph M. Becker
fa70b91a4f
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #75273 : php_zlib_inflate_filter() may not update bytes_consumed
2018-09-08 19:09:56 +02:00
Christoph M. Becker
90d863898c
Fix #75273 : php_zlib_inflate_filter() may not update bytes_consumed
...
Whenever we return with `PSFS_PASS_ON`, we need to update
`bytes_consumed` to not mislead the caller. Instead of fixing the
respective `if` clauses, we eschew the early bail-outs to simplify the
code a bit.
2018-09-08 19:01:36 +02:00
Nikita Popov
a32c563e50
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-07 14:02:51 +02:00
Nikita Popov
cfdd828163
Fixed bug #76796
2018-09-07 14:02:03 +02:00
David Carlier
f7b573b4e9
Support fixed address mmap without replacement
...
Reapply changes for Zend fixed mapping but only for FreeBSD.
Other BSD might expose some day a similar flag (private
for OpenBSD for the moment for example).
The Linux's part could be brought back but not before 7.4,
at this time, distributions with kernel > 4.17 will be
more widely available.
2018-09-07 12:10:05 +02:00
Anatol Belski
6c376996cf
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Sync with recent changes to default libcurl build
2018-09-05 21:30:25 +02:00
Anatol Belski
b323e1e8d0
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Sync with recent changes to default libcurl build
2018-09-05 21:29:53 +02:00
Anatol Belski
28c6125053
Sync with recent changes to default libcurl build
...
(cherry picked from commit a1ba3007a4 )
2018-09-05 21:28:59 +02:00
Dmitry Stogov
1d36c3361f
Fixed support for commutative "user opcodes"
2018-09-05 22:11:10 +03:00
Christoph M. Becker
21cd552e1e
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #74454 : Wrong exception being thrown when using ReflectionMethod
2018-09-05 15:10:27 +02:00
Christoph M. Becker
7a2c9585c4
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #74454 : Wrong exception being thrown when using ReflectionMethod
2018-09-05 15:07:59 +02:00
Christoph M. Becker
c0a389a927
Fix #74454 : Wrong exception being thrown when using ReflectionMethod
...
If zend_throw_exception_ex() already threw an exception, we should not
throw again.
2018-09-05 15:05:19 +02:00
Tyson Andre
86c930e268
Fix typos in UPGRADING.INTERNALS
2018-09-05 11:50:23 +02:00
Anatol Belski
d903fc0861
Restore NEWS entry [skip ci]
2018-09-04 13:03:17 +02:00
Xinchen Hui
48fd1d2ea1
Merge branch 'PHP-7.3' of git.php.net:/php-src into PHP-7.3
...
* 'PHP-7.3' of git.php.net:/php-src:
Fix bug #74764 and add a test case
[ci skip] Update NEWS
[ci skip] Update NEWS
[ci skip] Update NEWS
2018-09-04 17:27:41 +08:00
Xinchen Hui
3497b75b73
Fixed bug #76825 (Undefined symbols ___cpuid_count)
2018-09-04 17:26:46 +08:00
Joe Watkins
6b5e7e6b42
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug #74764 and add a test case
2018-09-04 11:13:14 +02:00
Joe Watkins
21f8cd2a92
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix bug #74764 and add a test case
2018-09-04 11:12:39 +02:00
Ville Hukkamaki
0f724453c0
Fix bug #74764 and add a test case
2018-09-04 11:12:04 +02:00
Anatol Belski
7585a20d44
[ci skip] Update NEWS
2018-09-04 11:03:33 +02:00
Anatol Belski
b6e7aab5f2
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
[ci skip] Update NEWS
[ci skip] Update NEWS
2018-09-04 11:03:01 +02:00
Anatol Belski
64d2978546
[ci skip] Update NEWS
2018-09-04 11:02:26 +02:00
Anatol Belski
9459b45e2b
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
[ci skip] Update NEWS
2018-09-04 11:01:57 +02:00
Anatol Belski
e58690a26d
[ci skip] Update NEWS
2018-09-04 11:01:24 +02:00
Anatol Belski
7d8e6e6394
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #76833 , backport change to stream_socket_enable_crypto-win32.phpt from 7.3
2018-09-04 10:57:25 +02:00
Anatol Belski
2476fb76a7
Fixed bug #76833 , backport change to stream_socket_enable_crypto-win32.phpt from 7.3
...
It would probably be better to remove this test as it's too much
maintanance for a little gain.
2018-09-04 10:53:35 +02:00
Nikita Popov
d36230fcab
Fix incorrect literal freeing if pass_two generates fatal error
2018-09-04 08:08:39 +02:00
Nikita Popov
63072e9c0e
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-04 05:57:07 +02:00
Nikita Popov
edec566d9b
Merge branch 'PHP-7.1' into PHP-7.2
2018-09-04 05:49:02 +02:00
Nikita Popov
03740ef7df
Revert all MySQL auth related changes
...
Per bug #76651 these changes do not appear to work correctly in
some cases. As no immediate fix seems to be forthcoming, I'm
reverting these changes.
Revert "Fixed invalid free introduced by d6e81f0bfd (avoid keeping "invalid" pointer)"
This reverts commit 11507c0e1b .
Revert "Fix mysqlnd build without openssl"
This reverts commit 6c9db02ff7 .
Revert "Fix VC compilation as variable size array is not supported"
This reverts commit f96df64cb2 .
Revert "Fix MySQL 8 auth"
This reverts commit d6e81f0bfd .
2018-09-04 05:47:28 +02:00
Nikita Popov
4cbabb6852
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-04 05:32:52 +02:00
Nikita Popov
08addfea86
Merge branch 'PHP-7.1' into PHP-7.2
2018-09-04 05:32:42 +02:00
Nikita Popov
f1f39d7ed7
Fix parenthesis warning
2018-09-04 05:32:25 +02:00
Peter Kokot
870d893d0b
Fix bug #75481 : makedev warning
...
To use makedev the sys/sysmacros.h needs to be included on newer
systems.
Cherry-picked from PHP-7.3.
2018-09-04 05:13:45 +02:00
Nikita Popov
153e292e10
Escape trigraph sequence
...
??= is a trigraph for #, so it needs to be escaped. To stay
consistent I'm escaping all question marks in this literal, even
though one of the latter two would suffice.
2018-09-04 05:07:43 +02:00
Nikita Popov
6122f67492
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-04 04:57:13 +02:00
Nikita Popov
fcf78dfb89
Merge branch 'PHP-7.1' into PHP-7.2
2018-09-04 04:55:15 +02:00
Ville Hukkamaki
742783c3ee
Fixed bug #73457
...
Correctly report errors when opening FTP data connection.
2018-09-04 04:53:38 +02:00
Anatol Belski
1640d9182a
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #76832 ZendOPcache.MemoryBase periodically deleted by the OS
2018-09-03 15:11:10 +02:00
Anatol Belski
a6b8651d94
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed bug #76832 ZendOPcache.MemoryBase periodically deleted by the OS
2018-09-03 15:10:25 +02:00
Anatol Belski
f26172f934
Fixed bug #76832 ZendOPcache.MemoryBase periodically deleted by the OS
2018-09-03 15:09:23 +02:00
Christoph M. Becker
3e863ff29e
Update to Oniguruma 6.9.0
2018-09-03 12:26:03 +02:00
Dmitry Stogov
bc731f8e7a
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed reference-countingin ZTS build.
2018-09-03 10:21:42 +03:00
Dmitry Stogov
accf5ed621
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed reference-countingin ZTS build.
2018-09-03 10:21:32 +03:00
Dmitry Stogov
7fde2243a7
Fixed reference-countingin ZTS build.
2018-09-03 10:20:40 +03:00
Jakub Zelenka
217888ed26
Merge branch 'PHP-7.2' into PHP-7.3
2018-09-02 20:02:09 +01:00
Jakub Zelenka
cd0a37994e
Fix stream_security_level.phpt with OpenSSL 1.1.1
2018-09-02 20:00:08 +01:00
Christoph M. Becker
0a51e75e28
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #75696 : posix_getgrnam fails to print details of group
2018-09-01 14:30:08 +02:00
Christoph M. Becker
7bcda659f8
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #75696 : posix_getgrnam fails to print details of group
2018-09-01 14:28:13 +02:00
Christoph M. Becker
2677d43850
Fix #75696 : posix_getgrnam fails to print details of group
...
According to the POSIX specification of `getgrnam_r()` the result of
`sysconf(_SC_GETGR_R_SIZE_MAX)` is an initial value suggested for the
size of the buffer, and `ERANGE` signals that insufficient storage was
supplied. So if we get `ERANGE`, we try again with a buffer twice as
big, and so on, instead of failing.
2018-09-01 14:25:59 +02:00
Anatol Belski
bcfe5f5845
[ci skip] Update NEWS
2018-09-01 11:33:39 +02:00
Anatol Belski
4a43e5fb4f
Improve fix for bug #76829
2018-09-01 01:12:06 +02:00
Anatol Belski
b9ca573a1b
Fixed bug #76829 Incorrect validation of domain on idn_to_utf8() function
...
As stated by RFC 5890, U-Labels might be up to 252 Unicode code points
long. This can be fixed in 7.1+ as well, but there might potentially be
issues in some existing apps expecting the output to be max 255 octets
long. Thus it seems to be safer to not to touch stable branches.
2018-09-01 00:14:23 +02:00
Anatol Belski
3f2a3c5aec
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix stack underflow in phar
2018-08-30 19:34:23 +02:00
Anatol Belski
1ccc4ff260
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix stack underflow in phar
2018-08-30 19:34:01 +02:00
Anatol Belski
7fb7869e13
Fix stack underflow in phar
...
The checks can issue reads below and above the temporary buffer. A read
itself doesn't seem dangerous, but the condition result can be
arbitrary. Such reads have to be avoided. Likely this patch should be
backported.
(cherry picked from commit b053beee7e )
2018-08-30 19:33:07 +02:00
Christoph M. Becker
c5231ad394
Fix #76820 : Z_COPYABLE invalid definition
...
We remove the extraneous parenthesis.
2018-08-30 18:00:51 +02:00
Anatol Belski
09ea23f7d6
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Switch to staging series on AppVeyor
2018-08-30 17:39:39 +02:00
Anatol Belski
58339f37e5
Switch to staging series on AppVeyor
2018-08-30 17:38:51 +02:00
Remi Collet
cc63568400
NEWS for #76818
2018-08-30 14:50:26 +02:00
Remi Collet
cf6c32545e
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
fix double cast to int on 32-bit
2018-08-30 09:04:43 +02:00
Remi Collet
6e703c957e
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
fix double cast to int on 32-bit
2018-08-30 09:04:13 +02:00
Remi Collet
c1729272b1
fix double cast to int on 32-bit
2018-08-30 09:03:50 +02:00
Dmitry Stogov
566a75e97c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed incorrect ZEND_ACC_ARENA_ALLOCATED usage (it must be used only for internal functions).
2018-08-29 23:41:22 +03:00
Dmitry Stogov
fd5a453cb9
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed incorrect ZEND_ACC_ARENA_ALLOCATED usage (it must be used only for internal functions).
2018-08-29 23:41:14 +03:00
Dmitry Stogov
709e4e4f17
Fixed incorrect ZEND_ACC_ARENA_ALLOCATED usage (it must be used only for internal functions).
2018-08-29 23:40:17 +03:00
Sara Golemon
ba39ee99ca
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Prep for 7.1.23
2018-08-29 12:42:11 -04:00
Sara Golemon
7881e92c24
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Prep for 7.1.23
2018-08-29 12:41:36 -04:00
Sara Golemon
5fee4e7108
Prep for 7.1.23
2018-08-29 12:41:05 -04:00
Anatol Belski
d21220d7f0
Update NEWS
2018-08-29 16:12:18 +02:00
Remi Collet
a55bcaa14d
Revert "Support fixed address mmap without replacement"
...
This reverts commit 0f68ff5c92 .
2018-08-29 14:41:04 +02:00
Remi Collet
8cc7e2a2df
Revert "Don't report mmap failure if it is expected"
...
This reverts commit 446b5b15d3 .
2018-08-29 14:40:59 +02:00
Anatol Belski
7728160784
Fixed bug #76803 ftruncate changes file pointer
2018-08-28 15:42:39 +02:00
Christoph M. Becker
441b6a6f5e
Fix SKIPIF conditions
...
The test calls `mb_convert_encoding()` and as such requires the
mbstring extension.
2018-08-28 14:02:11 +02:00
Christoph M. Becker
ce201df40f
[ci skip] Update NEWS wrt. php-7.3.0beta3 tagging
2018-08-28 12:22:57 +02:00
Remi Collet
584ffa5f6e
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
bump to 7.2.11-dev
2018-08-28 10:19:08 +02:00
Remi Collet
7353dae815
bump to 7.2.11-dev
2018-08-28 10:17:33 +02:00
Jakub Zelenka
014b1b3aad
Store zlog stream in each child so it can be reused
...
This change results in using the same buffer for multiple
stdio events which should fix inconsistencies of handling
messages that are not ended with a new line and possibly
very long messages that are split to multiple events.
2018-08-27 14:58:39 +01:00
Christoph M. Becker
4d6b0b5031
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #68180 : iconv_mime_decode can return extra characters in a header
2018-08-26 13:23:51 +02:00
Christoph M. Becker
20849b0b0f
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #68180 : iconv_mime_decode can return extra characters in a header
2018-08-26 13:21:22 +02:00
Christoph M. Becker
efb86aef12
Fix #68180 : iconv_mime_decode can return extra characters in a header
...
Basically, the algorithm to append a converted string to an existing
`smart_str` works by increasing the `smart_str` buffer, to let `iconv`
convert characters until there is no more space, to set the new length
of the `smart_str` and to repeat until there is no more input.
Formerly, the new length calculation has been wrong, though, since we
would have to take the old `out_len` into account (`buf_growth -
old_out_len - out_len`). However, since there is no need to take the
old `out_len` into account when increasing the `smart_str` buffer, we
can simplify the fix, avoiding an additional variable.
2018-08-26 13:18:35 +02:00
Christoph M. Becker
b5afc99afb
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #60494 : iconv_mime_decode does ignore special characters
2018-08-25 17:52:16 +02:00
Christoph M. Becker
314b8ecf8b
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #60494 : iconv_mime_decode does ignore special characters
2018-08-25 17:47:29 +02:00
Christoph M. Becker
e29c946c29
Fix #60494 : iconv_mime_decode does ignore special characters
...
We must not ignore erroneous characters in mime headers, but rather let
iconv_mime_decode() fail in this case, issuing the usual notice
regarding illegal characters.
2018-08-25 17:40:39 +02:00
Christoph M. Becker
065eee16b5
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #63839 : iconv_mime_decode_headers function is skipping headers
2018-08-25 14:54:32 +02:00
Christoph M. Becker
7e176ddb57
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #63839 : iconv_mime_decode_headers function is skipping headers
2018-08-25 14:52:54 +02:00
Christoph M. Becker
8754d44167
Fix #63839 : iconv_mime_decode_headers function is skipping headers
...
We have to cater to the possibility that `=?` is not the start of an
encoded-word, but rather a literal `=?`. If a line break is found
while we're still looking for the charset, we can safely assume that
it's a literal `=?`, and act accordingly.
2018-08-25 14:51:13 +02:00
Christoph M. Becker
50fec3be0e
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #55146 : iconv_mime_decode_headers() skips some headers
2018-08-25 14:43:13 +02:00
Christoph M. Becker
6922cae4ae
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #55146 : iconv_mime_decode_headers() skips some headers
2018-08-25 14:41:38 +02:00
Christoph M. Becker
6e1980e152
Fix #55146 : iconv_mime_decode_headers() skips some headers
...
If we're expecting the start of an encoded word (`=?`), but instead of
the question mark get a line break (CR or LF), we must not append it to
the `pretval`.
2018-08-25 14:40:07 +02:00
Christoph M. Becker
eb03290754
Fix #53891 : iconv_mime_encode() fails to Q-encode UTF-8 string
...
The minimum length of an encoded-word is actually the pure encoding
overhead plus the length of the `output-charset` plus the minimum unit
of encoded text, which is 4 for B-encoding and (for simplicity) 3 for
Q-encoding. We also cater to the possibility that we need further
encoded words, which would be split by the `line-break-chars` followed
by a space character. Obviously, the former `out_charset_len + 12` is
too simplistic and wrong in the given case (where the magic number
would be 13).
These simplifications are somewhat wasteful, but iconv_mime_encode()
with Q-encoding is wasteful anyway (see bug 66828[1]), and the proper
solution to convert the whole input to the desired output charset
upfront, and applying the encoding afterwards appears too much a change
for the stable releases.
[1] <https://bugs.php.net/66828 >
2018-08-25 14:30:07 +02:00
Christoph M. Becker
692e5d5c88
Fix #76712 : Assignment of empty string creates extraneous text node
...
We work around this peculiarity of libxml by using xmlNodeSetContent(),
which does not exhibit this behavior. This also saves us from manually
calculating the string length.
2018-08-25 14:24:09 +02:00
Peter Kokot
fcf4088d3f
Remove some old parts of the php
...
Since ba138a3746 the generate-phpt library
has been unbundled from the php-src. This patch cleans two remaining
parts.
2018-08-25 11:58:17 +02:00
Anatol Belski
f15fc8ea1e
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
mkdist.php: recursively check dll dependencies
2018-08-23 21:27:43 +02:00
Anatol Belski
8f43ec1e83
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
mkdist.php: recursively check dll dependencies
2018-08-23 21:26:40 +02:00
Dylan K. Taylor
b9bf9ddce6
mkdist.php: recursively check dll dependencies
...
Fix duplication of recursively checked deps
2018-08-23 21:25:54 +02:00
Christoph M. Becker
5fe8e49baa
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Simplify regression test
2018-08-23 12:51:11 +02:00
Christoph M. Becker
1c3d5659bd
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Simplify regression test
2018-08-23 12:49:26 +02:00
Christoph M. Becker
6644bd005f
Simplify regression test
...
There's no need to actually try to trigger an out-of-memory condition
to proof the leak; instead we can simply rely on the Zend MM to report
the memory leaks in debug mode (at least on Linux). Therefore we
simplify the regression test, which also makes it run much faster.
2018-08-23 12:48:09 +02:00
Christoph M. Becker
3278b3347c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #68825 : Exception in DirectoryIterator::getLinkTarget()
2018-08-22 15:40:03 +02:00
Christoph M. Becker
36946f5c45
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #68825 : Exception in DirectoryIterator::getLinkTarget()
2018-08-22 15:38:30 +02:00
Christoph M. Becker
32a728d351
Fix #68825 : Exception in DirectoryIterator::getLinkTarget()
...
intern->file_name may not have been properly set when
DirectoryIterator::getLinkTarget() is called, so we make sure it is
before using it.
2018-08-22 15:37:02 +02:00
Christoph M. Becker
6cf382b667
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Increase memory_limit to prevent test failures
2018-08-22 14:31:36 +02:00
Christoph M. Becker
10661e28d1
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Increase memory_limit to prevent test failures
2018-08-22 14:30:23 +02:00
Christoph M. Becker
5fb01a3a42
Increase memory_limit to prevent test failures
2018-08-22 14:29:28 +02:00
Chris Wright
9ace33b9c5
Fix #76773 - Methods with a concrete scope need to be added again
2018-08-22 14:08:15 +02:00
Ondřej Surý
02b0bc8bb1
Fix #76767 : ‘asm’ operand has impossible constraints in zend_operators.h
...
We disable assembly code with gcc 4.8 on i386.
2018-08-22 13:57:21 +02:00
Christoph M. Becker
1de17428f6
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #76778 : array_reduce leaks memory if callback throws exception
2018-08-22 13:51:16 +02:00
Christoph M. Becker
cdd9eb8c4a
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #76778 : array_reduce leaks memory if callback throws exception
2018-08-22 13:49:35 +02:00
Nikita Popov
dd07f17f97
Merge branch 'PHP-7.2' into PHP-7.3
2018-08-22 13:43:23 +02:00
Christoph M. Becker
70b2fca220
Fix #76778 : array_reduce leaks memory if callback throws exception
...
We have to release the result variable in the error case, too.
2018-08-22 13:40:24 +02:00
Massimiliano Braglia
2527a0fcfd
Fixed bug #75797
...
Fix zend_register_class_alias_ex() to use non-persistent strings
for (non-persistent) userland classes.
2018-08-22 13:39:08 +02:00
Christoph M. Becker
138671f2f4
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #76777 and added test
2018-08-22 12:54:39 +02:00
Christoph M. Becker
7ad0595712
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed bug #76777 and added test
2018-08-22 12:52:41 +02:00
Ville Hukkamaki
cf2fc66b02
Fixed bug #76777 and added test
...
Set undefined values to null rather than undefined.
2018-08-22 12:51:06 +02:00
David Carlier
446b5b15d3
Don't report mmap failure if it is expected
...
When using mmap with MAP_FIXED_NOREPLACE or MAP_FIXED|MAP_EXCL
an mmap failure is not an error condition, so do not print an
error message in this case.
2018-08-22 11:19:52 +02:00
Dmitry Stogov
8d95f561e4
Stop using zend_function->reserved[] space.
2018-08-22 10:43:51 +03:00
David Carlier
0f68ff5c92
Support fixed address mmap without replacement
...
We did not use MAP_FIXED here, because it may replace an existing
mapping. This commit adds support for MAP_FIXED_NOREPLACE (available
on newer Linux kernels) and MAP_FIXED|MAP_EXCL (available on FreeBSD),
which avoid this issue.
2018-08-21 08:31:31 +02:00
Dmitry Stogov
5e5311e0ba
Removed dead code
2018-08-21 09:01:54 +03:00
David Carlier
16a9dd74f4
Avoid directly adding to string literal
...
This fixes a Clang warning.
2018-08-21 06:25:41 +02:00
Dmitry Stogov
b8828926f2
Avoid hash lookups in BIND_STATIC and BIND_LEXICAL opcode handlers.
...
Encode static variable offset into opline->extended_value.
2018-08-20 16:10:09 +03:00
Aaron Stone
1621f1739d
[ci skip] Correct minor typo (GC_GLAGS to GC_FLAGS)
2018-08-20 12:56:34 +02:00
Gabriel Caruso
efbf846fd2
Make array parsing parameters error messages consistency with ZPP failure
2018-08-19 21:27:57 -03:00
Jakub Zelenka
52ea129efb
Merge branch 'PHP-7.2' into PHP-7.3
2018-08-19 20:19:48 +01:00
Jakub Zelenka
73a8f72617
Merge branch 'PHP-7.1' into PHP-7.2
2018-08-19 20:19:01 +01:00
Jakub Zelenka
4c542e6c13
Fix bug #76705 (unusable ssl => peer_fingerprint in stream_context_create())
2018-08-19 20:14:26 +01:00
Anatol Belski
9708083779
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Use stable deps on AppVeyor for now
2018-08-18 20:05:51 +02:00
Anatol Belski
b0da1745be
Use stable deps on AppVeyor for now
...
as long as the latest image is not synced with VC++ 15.8
2018-08-18 20:04:19 +02:00
Christoph M. Becker
be2447fb7c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Add regression test for bug #68175
Fix #68175 : RegexIterator pregFlags are NULL instead of 0
2018-08-18 14:39:15 +02:00
Christoph M. Becker
41d2102c77
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Add regression test for bug #68175
Fix #68175 : RegexIterator pregFlags are NULL instead of 0
2018-08-18 14:37:48 +02:00
Christoph M. Becker
4c448334bd
Add regression test for bug #68175
2018-08-18 14:36:16 +02:00
Tim Siebels
3257d22fea
Fix #68175 : RegexIterator pregFlags are NULL instead of 0
2018-08-18 14:33:39 +02:00
Anatol Belski
990a404c2d
Add test for bug #76738
...
Original repro. It's unwieldy, but it's otherwise hard to trigger
the wrong buffer handling behavior.
2018-08-17 18:31:58 +02:00
Anatol Belski
0414fff205
Fix memory leak
2018-08-17 16:22:35 +02:00
Anatol Belski
aa7777d36c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update binary SDK version for AppVeyor
2018-08-17 15:46:28 +02:00
Anatol Belski
4aa5065bb0
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Update binary SDK version for AppVeyor
2018-08-17 15:45:31 +02:00
Anatol Belski
837ed71c65
Update binary SDK version for AppVeyor
2018-08-17 15:44:10 +02:00
Christoph M. Becker
a097f926c8
[ci skip] Update NEWS
...
Bug #76285 was supposed to have been fixed for 7.3.0alpha3, but that
has been reverted for 7.3.0beta2 due to bug #76738 . Now that we have a
working fix in master, we backport the respective commits.
2018-08-17 13:06:27 +02:00
Anatol Belski
0c2327b472
Cleanup
...
(cherry picked from commit 8b3174f256 )
2018-08-17 13:01:57 +02:00
Anatol Belski
ddd73d4fa8
Followup fix for ef9ed19e, see also bug #76738
...
(cherry picked from commit 083285f22a )
2018-08-17 13:01:56 +02:00
Xinchen Hui
10d724d82d
Fixed build
...
(cherry picked from commit 36f05a80d7 )
2018-08-17 13:01:55 +02:00
Andrew Nester
2072d377d3
DOMDocument::formatOutput attribute sometimes ignored
...
(cherry picked from commit ef9ed19ec7 )
2018-08-17 13:01:55 +02:00
Xinchen Hui
5c1a2d8375
Fixed same bug #76755 in setrawcookie
2018-08-17 16:19:26 +08:00
Xinchen Hui
0a16af043e
Cheaper checking
2018-08-17 15:21:48 +08:00
Xinchen Hui
751bbaa41f
Micro optimization & fixed invalid key handling
2018-08-17 14:56:24 +08:00
Xinchen Hui
d61ff37f45
Fixed bug #76755 (setcookie does not accept "double" type for expire time)
2018-08-17 13:45:43 +08:00
Xinchen Hui
2aa3733daa
Update NEWS
2018-08-17 13:36:12 +08:00
Xinchen Hui
3131ebcea8
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update NEWS
Fixed bug #76754 (parent private constant in extends class memory leak)
2018-08-17 13:36:03 +08:00
Xinchen Hui
acd4264f7b
Update NEWS
2018-08-17 13:35:46 +08:00
Xinchen Hui
ca103b415e
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed bug #76754 (parent private constant in extends class memory leak)
2018-08-17 13:35:31 +08:00
Xinchen Hui
04c4854fdf
Fixed bug #76754 (parent private constant in extends class memory leak)
2018-08-17 13:35:15 +08:00
Xinchen Hui
fd463a9a60
Fixed bug #76752 (Crash in ZEND_COALESCE_SPEC_TMP_HANDLER - assertion in _get_zval_ptr_tmp failed).
2018-08-17 12:19:31 +08:00
Xinchen Hui
ae926d8961
Merge branch 'PHP-7.3' of git.php.net:/php-src into PHP-7.3
...
* 'PHP-7.3' of git.php.net:/php-src:
fix man page installation
2018-08-16 14:02:03 +08:00
Xinchen Hui
a158fb958f
Merge branch 'PHP-7.2' of git.php.net:/php-src into PHP-7.2
...
* 'PHP-7.2' of git.php.net:/php-src:
fix man page installation
2018-08-16 14:01:17 +08:00
Xinchen Hui
64c88c1e16
Merge branch 'PHP-7.1' of git.php.net:/php-src into PHP-7.1
...
* 'PHP-7.1' of git.php.net:/php-src:
fix man page installation
2018-08-16 14:00:30 +08:00
Xinchen Hui
6e7b381270
Update NEWS
2018-08-16 13:57:40 +08:00
Xinchen Hui
1ea2395712
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update NEWS
Fixed bug #76747 (Opcache treats path containing "test.pharma.tld" as a phar file)
2018-08-16 13:57:05 +08:00
Xinchen Hui
eb7fca9546
Update NEWS
2018-08-16 13:56:52 +08:00
Xinchen Hui
a879f4dd22
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed bug #76747 (Opcache treats path containing "test.pharma.tld" as a phar file)
2018-08-16 13:56:37 +08:00
Xinchen Hui
8c92442b49
Fixed bug #76747 (Opcache treats path containing "test.pharma.tld" as a phar file)
2018-08-16 13:56:20 +08:00
Remi Collet
32477dea70
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
fix man page installation
2018-08-16 06:55:14 +02:00
Remi Collet
2cdde35d0f
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
fix man page installation
2018-08-16 06:54:57 +02:00
Remi Collet
1f2f2c6b96
fix man page installation
...
Since 91996e7ee5
phpdbg.1 is in buildir, not in srcdir
2018-08-16 06:53:56 +02:00
Xinchen Hui
e4276aeb98
Added NEWs
2018-08-15 11:02:59 +08:00
Christoph M. Becker
66a4362914
[ci skip] Update NEWS wrt. php-7.3.0beta2 tagging
2018-08-14 13:36:15 +02:00