Nikita Popov
f57526a07a
Store base path as zend_string in Phar::buildFrom*
...
This also removes the need to check for length overflow, as the
length is now size_t.
2021-05-27 10:57:51 +02:00
Nikita Popov
8c192c717c
Accept regex as zend_string in Phar::buildFromDirectory()
...
No need to copy it...
2021-05-27 10:51:51 +02:00
Máté Kocsis
172c29879e
Declare tentative return types for ext/zip ( #7053 )
2021-05-27 10:47:32 +02:00
Máté Kocsis
5beba0b038
Declare tentative return types for ext/json ( #7051 )
2021-05-27 10:47:15 +02:00
twosee
95d21f12e3
Add missing extern "C" in zend.h ( #7056 )
2021-05-27 15:53:30 +08:00
twosee
9066d695e9
Remove all *_EXTERN_C() in C source files ( #7054 )
2021-05-27 15:52:54 +08:00
Aaron Piotrowski
3939c9b07e
Add internal Fiber API ( #7045 )
...
This additional internal fiber API creates and manipulates a Fiber object, allowing any internal function to start, resume, or suspend a fiber. The existing zend_fiber_context API allows custom C-based fiber creation using the bundled switching context, but does not interact with the PHP VM. This API behaves the same as calling Fiber object methods from user code, switching EGs, and triggering the fiber switch observer. In general, the Fiber object methods call these new API methods.
2021-05-27 08:33:40 +02:00
twosee
0e2ac303af
Use ZEND_WIN32 instead of PHP_WIN32 ( #7055 )
2021-05-27 08:32:40 +02:00
Anatol Belski
b9f3f35d4a
libtool: Add CC tag explicitly
...
This fixes the scan-build build. CC is also the default tag, so there
should be no impact anywhere.
Signed-off-by: Anatol Belski <ab@php.net >
2021-05-26 22:41:50 +02:00
Máté Kocsis
6af5b369d7
Merge branch 'PHP-8.0'
...
* mysqli_get_client_info() cannot return null
2021-05-26 17:49:39 +02:00
Máté Kocsis
ceb0951fa5
mysqli_get_client_info() cannot return null
...
This method is already deprecated
2021-05-26 17:48:35 +02:00
Máté Kocsis
62f7c0a2d6
Remove unnecessary return doc comment from PDOStatement::errorInfo()
2021-05-26 17:33:14 +02:00
Máté Kocsis
01775fa104
Declare tentative return types for ext/mysqli ( #6998 )
2021-05-26 17:29:58 +02:00
Nikita Popov
b0961f2d04
Remove uses of TRUE/FALSE in mysqli/pdo_mysql
...
Replace with standard uses of true/false.
2021-05-26 15:07:23 +02:00
Nikita Popov
b55793e45b
Merge branch 'PHP-8.0'
...
* PHP-8.0:
Update func info for mysqli_connect
2021-05-26 14:36:52 +02:00
Nikita Popov
9f6ee9f4d7
Update func info for mysqli_connect
2021-05-26 14:36:21 +02:00
Nikita Popov
12a4b2249d
Merge branch 'PHP-8.0'
...
* PHP-8.0:
Make tests compatible with libxml2 2.9.12
2021-05-26 13:21:43 +02:00
Nikita Popov
0b232cf71d
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Make tests compatible with libxml2 2.9.12
2021-05-26 13:20:36 +02:00
Stéphan Kochen and Nikita Popov
f3d1e9ed06
Make tests compatible with libxml2 2.9.12
...
This version of libxml introduced quite a few changes. Most of
them are differences in error reporting, while some also change
behavior, e.g. null bytes are no longer supported and xinclude
recursion is limited.
Closes GH-7030. Closes GH-7046.
Co-authored-by: Nikita Popov <nikic@php.net >
2021-05-26 13:19:34 +02:00
Máté Kocsis
fccb7274e8
Do not verify the signature of ReflectionEnumUnitCase::getValue()
...
This method legally have a different return type (UnitEnum) from its parent's return type (mixed).
2021-05-26 12:38:04 +02:00
Máté Kocsis
b4b848bfa7
Fix the signature of ini_alter()
...
It should be the same as ini_set()
2021-05-26 12:32:38 +02:00
Máté Kocsis
657cb45b84
Declare tentative return types for ext/fileinfo
...
Relates to GH-6985
2021-05-26 12:30:31 +02:00
Máté Kocsis
737af24644
Declare tentative return types for ext/curl
...
Relates to GH-6985
2021-05-26 12:30:07 +02:00
Máté Kocsis
7da2151f7a
Declare typed properties in ext/dom
...
Closes GH-7013
2021-05-26 12:23:43 +02:00
Nikita Popov
f4865010a8
Add missing type declarations in soap tests
2021-05-26 12:21:45 +02:00
Máté Kocsis
8ae4b56027
Declare tentative return types for ext/soap
...
Closes GH-7001
2021-05-26 12:18:51 +02:00
Máté Kocsis
1a1a9b2e4a
Merge branch 'PHP-8.0'
...
* Fix the return type of mysqli_connect()
2021-05-26 12:11:09 +02:00
Máté Kocsis
187c56ae2d
Update mysqli stub hash
2021-05-26 12:09:54 +02:00
Máté Kocsis
97f7279353
Fix the return type of mysqli_connect()
2021-05-26 12:07:02 +02:00
Máté Kocsis
a6c9f148b6
Merge branch 'PHP-8.0'
...
* Fix return type of mysqli::connect()
2021-05-26 11:56:21 +02:00
Máté Kocsis
86ef34fc61
Fix the return type of mysqli::connect()
2021-05-26 11:55:03 +02:00
Nikita Popov
07da2e3f28
Add comment for specialization in zend_hash_real_init_packed_ex()
...
As the seemingly reundant code may be confusing. Closes GH-6988.
2021-05-26 11:52:36 +02:00
Máté Kocsis
a40cdd55f8
Declare tentative return types for ext/sqlite3
...
Closes GH-7000
2021-05-26 11:48:51 +02:00
Máté Kocsis
37a3c9bc8d
Declare tentative return types for ext/simplexml
...
Closes GH-7003
2021-05-26 11:23:38 +02:00
Nikita Popov
312b72908d
Convert some instanceof checks to assertions
...
Again, $this must be instanceof self.
2021-05-26 10:44:56 +02:00
twosee
2c0b4c8d21
Remove the redefinition of zend_error_info ( #7044 )
...
It causes -Wtypedef-redefinition warning.
2021-05-26 16:23:23 +08:00
Nikita Popov
82ccd47d39
Use ZEND_TLS for spl ( #7043 )
...
For extension globals that do not require cross-module visibility, we can
use ZEND_TLS as a more efficient TLS mechanism.
2021-05-26 09:36:23 +02:00
Máté Kocsis
97a849602d
Declare tentative return types for ext/tidy
...
Closes GH-6999
2021-05-25 19:18:58 +02:00
Máté Kocsis
4ed66ff2a9
Declare tentative return types for ext/pdo
...
Closes GH-6996
2021-05-25 19:17:40 +02:00
Máté Kocsis
1b35056a33
Declare tentative return types for ext/xsl
...
Relates to GH-6995
2021-05-25 19:15:44 +02:00
Máté Kocsis
65995002f0
Declare tentative return types for ext/xmlwriter
...
Relates to GH-6995
2021-05-25 19:15:18 +02:00
Máté Kocsis
a902622ad6
Declare tentative return types for ext/xmlreader
...
Relates to GH-6995
2021-05-25 19:14:48 +02:00
Nikita Popov
940f599be9
Convert check into assertion in ext/xmlreader
...
$this is requires to be instanceof self for quite a while now,
so make this an assertion.
2021-05-25 17:35:14 +02:00
Nikita Popov
3c96d7e618
Remove some unnecessary null pointer checks in ext/xmlreader
...
intern cannot be NULL.
2021-05-25 17:18:06 +02:00
Janakarajan Natarajan
4a68067c10
Use arm64-graviton2 on Travis ( #7016 )
2021-05-25 15:30:54 +02:00
Nikita Popov
a76d35abcc
Remove commented code from get_method handler
2021-05-25 15:25:51 +02:00
Christoph M. Becker
fda53548b5
Merge branch 'PHP-8.0'
...
* PHP-8.0:
Fix #76359 : open_basedir bypass through adding ".."
2021-05-25 13:47:25 +02:00
Christoph M. Becker
a5601b2ab5
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fix #76359 : open_basedir bypass through adding ".."
2021-05-25 13:46:38 +02:00
Christoph M. Becker
ee9e07541f
Fix #76359 : open_basedir bypass through adding ".."
...
We explicitly forbid adding paths with a leading `..` to `open_basedir`
at runtime.
Closes GH-7024.
2021-05-25 13:44:53 +02:00
Kamil Tekiela
428340dfeb
Add error reporting to mysqli_options ( #7036 )
2021-05-25 10:42:06 +01:00