Dmitry Stogov
1e53769d82
Set opcode handler
2019-12-23 14:14:47 +03:00
Christoph M. Becker
dabc28d182
Fix #78880 : Spelling error report
...
We fix the most often occuring typos according to a recent codespell
report[1] in tests, code comments and documentation.
[1] <https://fossies.org/linux/test/php-src-master-f8f48ce.191129.tar.gz/codespell.html >.
2019-12-21 11:58:00 +01:00
Máté Kocsis
eff56f83af
Promote warning to exception for proc_open() when null byte is encountered
...
GH-5004
2019-12-20 17:54:12 +01:00
Nikita Popov
1d6325fb01
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix leak when generator closed during yield in finally
2019-12-20 17:46:43 +01:00
Nikita Popov
b829ea5f74
Fix leak when generator closed during yield in finally
...
In this case we need to free any pending exceptions or return values
that will be discarded.
2019-12-20 17:46:31 +01:00
Máté Kocsis
d9eb97d745
Remove unnecessary FN type information from OPCache
...
GH-5029
2019-12-20 16:45:57 +01:00
Máté Kocsis
f3d5a5a9d3
Promote warnings to exceptions in string search related functions
...
GH-5004
2019-12-20 16:43:40 +01:00
Máté Kocsis
17598d503d
Promote warnings to exceptions in proc_open() function
...
GH-5004
2019-12-20 16:43:40 +01:00
Máté Kocsis
a2d83a6cb5
Promote warrnings to exceptions in chgrp() function
...
GH-5004
2019-12-20 16:43:40 +01:00
Máté Kocsis
9585964dd7
Promote warning to exception in dns_check_record() function
...
GH-5004
2019-12-20 16:43:40 +01:00
Christoph M. Becker
cfefba6ddd
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix #79008 : General performance regression with PHP 7.4 on Windows
2019-12-20 16:29:39 +01:00
Christoph M. Becker
6ec4056928
Fix #79008 : General performance regression with PHP 7.4 on Windows
...
We no longer try to retrieve the filename of a given stream when
fstat'ing, because this is very slow. Since we neither didn't do that
in PHP 7.3 and earlier, we regard this as sensible trade-off.
2019-12-20 16:28:11 +01:00
GITSRC
269f44f682
Simplify constant expression
...
Co-Authored-By: Christoph M. Becker <cmbecker69@gmx.de >
2019-12-20 15:41:03 +01:00
Nikita Popov
ed0b788ce7
Fix merge mistake
2019-12-20 15:13:40 +01:00
Máté Kocsis
0e8070778e
Make get_defined_vars() always return an array
...
GH-5025
2019-12-20 14:31:57 +01:00
Máté Kocsis
f52f471a5e
Fix F1 type information in OPCache
...
Closes GH-5025
2019-12-20 14:31:30 +01:00
Máté Kocsis
d59bc80782
Fix smaller issues with stubs
...
GH-5025
2019-12-20 14:31:07 +01:00
Nikita Popov
ca6c54274c
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Try to make proc_open_bug69900.phpt more robust
2019-12-20 13:52:08 +01:00
Nikita Popov
d5c55f81ec
Try to make proc_open_bug69900.phpt more robust
2019-12-20 13:51:31 +01:00
Nikita Popov
2bc0a6e97f
Fix string offset signed int UB in jit as well
2019-12-20 12:11:07 +01:00
Nikita Popov
ed372541da
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix #78982 : pdo_pgsql returns dead persistent connection
2019-12-20 12:06:24 +01:00
Nikita Popov
b0737fa35e
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #78982 : pdo_pgsql returns dead persistent connection
2019-12-20 12:06:05 +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
Máté Kocsis
bf645d6dc1
Remove unnecessary F0 type information from OPCache
...
Closes GH-5024
2019-12-20 12:03:08 +01:00
Máté Kocsis
297b1f8335
Fix return type of strval()
...
GH-5024
2019-12-20 12:02:35 +01:00
Máté Kocsis
d7b2082352
Add stubs for standard library
...
Closes GH-5017
2019-12-20 12:01:35 +01:00
Máté Kocsis
7bfeef602a
Promote warnings to exceptions in stream-related functions
...
GH-5017
2019-12-20 12:01:02 +01:00
Nikita Popov
566b356eca
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix #78980 : pgsqlGetNotify() overlooks dead connection
2019-12-20 11:45:50 +01:00
Nikita Popov
f974f252dd
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #78980 : pgsqlGetNotify() overlooks dead connection
2019-12-20 11:45:16 +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
Nikita Popov
5902b35f85
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fixed bug #79000
2019-12-20 11:38:01 +01:00
Nikita Popov
10eb0b3110
Fixed bug #79000
...
Don't report EAGAIN/EWOULDBLOCK as errors for fwrite on
non-blocking socket streams. This matches behavior for fread,
as well as behavior for plain file streams.
Closes GH-5026.
2019-12-20 11:37:43 +01:00
BohwaZ
3958592487
Add setAuthorizer method to SQLite3
...
This adds the possibility to define a userland callback that will be
used to authorize or not an action on the database.
2019-12-20 11:33:23 +01:00
Nikita Popov
5f2f450554
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix #74170 : locale information change after mime_content_type
2019-12-20 11:24:14 +01:00
Nikita Popov
d4ba1fd963
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #74170 : locale information change after mime_content_type
2019-12-20 11:24:03 +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
Nikita Popov
d011f60eb1
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix #78402 : pcntl_signal() misleading error message
2019-12-20 11:03:15 +01:00
Nikita Popov
5155097431
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #78402 : pcntl_signal() misleading error message
2019-12-20 11:02:57 +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
Nikita Popov
0d8ebbaa73
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix early free of assign_obj op_data
2019-12-20 10:35:50 +01:00
Nikita Popov
885b3451f4
Fix early free of assign_obj op_data
...
We need to make sure that op_data is only freed after populating
result, as op_data may be the only thing holding the value in the
case of an overloaded assignment.
This reverts the code to how it looked like in 7.3.
2019-12-20 10:35:34 +01:00
Máté Kocsis
2ab123b84e
Convert string|array union parameter types
...
Closes GH-4995
2019-12-20 10:15:52 +01:00
Dmitry Stogov
621842e3f5
RECV opcode optimization
2019-12-20 06:46:25 +03:00
Máté Kocsis
bc231f017b
Add upgrading note about implode() [ci skip]
2019-12-19 22:58:26 +01:00
Dmitry Stogov
a31b5eca68
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fixed bug #78999 (Cycle leak when using function result as temporary)
2019-12-19 23:19:31 +03:00
Dmitry Stogov
66d5b0608a
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fixed bug #78999 (Cycle leak when using function result as temporary)
2019-12-19 23:17:39 +03:00
Dmitry Stogov
eb846939b1
Fixed bug #78999 (Cycle leak when using function result as temporary)
2019-12-19 23:11:08 +03:00
Christoph M. Becker
77c58fc53c
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix #78983 : pdo_pgsql config.w32 cannot find libpq-fe.h
2019-12-19 13:21:52 +01:00
Christoph M. Becker
7e05f97fa6
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #78983 : pdo_pgsql config.w32 cannot find libpq-fe.h
2019-12-19 13:21:23 +01: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