George Peter Banyard
a90abe2064
Convert warnings to TypeError in php_spl.c
...
Closes GH-4991
2019-12-11 13:49:16 +01:00
Nikita Popov
33648585d6
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fixed bug #78903 : Conflict in RTD key for closures results in crash
2019-12-11 13:08:12 +01:00
Nikita Popov
b55033fa18
Fixed bug #78903 : Conflict in RTD key for closures results in crash
...
I wasn't able to create a simple reproducer for this. General approach
is the same as for anonymous classes: If the key is already used, reuse
the old definition.
2019-12-11 13:07:45 +01:00
Nikita Popov
05e6a11b5b
Remove ZEND_PARSE_PARAMS_QUIET from spl_autoload_register()
2019-12-11 11:15:02 +01:00
Nikita Popov
e2a1dbd502
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Free RSA public key in mysqlnd sha256 auth
2019-12-11 10:32:06 +01:00
Nikita Popov
b6a59cee47
Free RSA public key in mysqlnd sha256 auth
...
Not sure why this only started showing up as a leak now.
2019-12-11 10:31:56 +01:00
Dmitry Stogov
ee45dbab37
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Addirional fix for bug #78918
2019-12-11 12:29:10 +03:00
Dmitry Stogov
3280209c03
Addirional fix for bug #78918
2019-12-11 12:21:49 +03:00
Dmitry Stogov
8fb3ef6e37
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fixed bug #78937 (Preloading unlinkable anonymous class can segfault)
2019-12-11 00:47:15 +03:00
Dmitry Stogov
20ef51db22
Fixed bug #78937 (Preloading unlinkable anonymous class can segfault)
2019-12-11 00:46:30 +03:00
Dmitry Stogov
764c8159b7
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix error message
2019-12-10 22:17:42 +03:00
Dmitry Stogov
518a8f89c1
Fix error message
2019-12-10 22:17:10 +03:00
Derick Rethans
4f31bcbf2f
Merge branch 'PHP-7.4'
2019-12-10 16:59:09 +00:00
Derick Rethans
2badeb511b
PHP-7.4 is now 7.4.2-dev
2019-12-10 16:56:33 +00:00
Nikita Popov
725c2a999d
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Set zend.exception_ignore_args=0 in run-tests.php
2019-12-10 16:16:03 +01:00
Nikita Popov
e87dc32569
Set zend.exception_ignore_args=0 in run-tests.php
...
Any existing tests are going to be written under this assumption...
2019-12-10 16:15:26 +01:00
Nikita Popov
c2d92ad971
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix incorrect zend_try usage
2019-12-10 15:22:46 +01:00
Nikita Popov
5ddcacac2e
Fix incorrect zend_try usage
2019-12-10 15:22:31 +01:00
Nikita Popov
fa18c115be
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix release build failure
2019-12-10 13:53:19 +01:00
Nikita Popov
d6f86caa11
Fix release build failure
...
GCC complained about potentially uninitialized __orig_bailout,
even though the variable has an initializer. This warning was
quite persistent, I was only able to avoid it by using a separate
function.
Am I missing something?
2019-12-10 13:51:09 +01:00
Christoph M. Becker
f2dbe4297b
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Improve error message
2019-12-10 13:20:55 +01:00
Christoph M. Becker
9e22c3d4d9
Improve error message
...
Formerly, the error message was like:
| Can't preload unlinked class MyException: Internal parent (Windows
| only limitation)Exception
Now it's like:
| Can't preload unlinked class MyException: Windows can't link to
| internal parent Exception
2019-12-10 13:19:58 +01:00
Nikita Popov
5cdea8d5e8
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Add support for class_alias to preloading
Fixed bug #78935 : Check that all linked classes can be preloaded
2019-12-10 13:12:29 +01:00
Nikita Popov
baf3a9133b
Add support for class_alias to preloading
...
Related to bug #78918 .
2019-12-10 13:06:36 +01:00
Nikita Popov
3f86adb0ef
Fixed bug #78935 : Check that all linked classes can be preloaded
...
During preloading, check that all classes that have been included
as part of the preload script itself (rather than through opcache_compile_file)
can actually be preloaded, i.e. satisfy Windows restrictions, have
resolved initializers and resolved property types. When resolving
initializers and property types, also autoload additional classes.
Because of this, the resolution runs in a loop.
2019-12-10 13:05:48 +01:00
Máté Kocsis
33f7cabbf0
Promote warnings to exceptions in *scanf() functions
2019-12-10 13:01:59 +01:00
Nikita Popov
ea4bb58889
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix merge mistake
2019-12-10 09:04:01 +01:00
Nikita Popov
4313659bb9
Fix merge mistake
2019-12-10 09:03:44 +01:00
Nikita Popov
c124d202e2
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix DCE with FE_FETCH
2019-12-10 09:01:55 +01:00
Nikita Popov
7e028a41e2
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix DCE with FE_FETCH
2019-12-10 09:01:18 +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
Máté Kocsis
9563449d8b
Add stubs for another batch of standard functions
2019-12-09 19:47:08 +01:00
Máté Kocsis
16e68ac53a
Return false when "Unable to fork"
2019-12-09 19:44:48 +01:00
Máté Kocsis
6f9248359e
Throw an exception when an invalid comparison operator is passed to version_compare()
2019-12-09 19:44:01 +01:00
Máté Kocsis
b2dc833c1a
Only accept string as the format parameter of *printf() functions
2019-12-09 19:43:34 +01:00
ekinhbayar
a74484cc98
Remove phpdbg README
...
phpdbg documentation has been moved to PHP manual and the link at the
bottom of this README is dead, so the file can be removed.
2019-12-09 17:32:17 +01:00
Christoph M. Becker
8060a8507f
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix #78912 : INTL Support for accounting format
2019-12-09 16:35:45 +01:00
Christoph M. Becker
505cc77cbe
Fix #78912 : INTL Support for accounting format
...
We provide `NumberFormatter::CURRENCY_ACCOUNTING` to wrap
`UNUM_CURRENCY_ACCOUNTING `[1].
[1] <https://unicode-org.github.io/icu-docs/apidoc/released/icu4c/unum_8h.html#a4eb4d3ff13bd506e7078b2be4052266dae97cdd7ed612d07d251021c076efb1c5 >
2019-12-09 16:34:56 +01:00
Nikita Popov
aaa0a80636
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix build
2019-12-09 16:06:37 +01:00
Nikita Popov
8d36d79d57
Fix build
2019-12-09 16:06:26 +01:00
Dmitry Stogov
b1577f5a57
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Export zend_init_func_run_time_cache()
2019-12-09 15:58:19 +03:00
Dmitry Stogov
03d1c788ea
Export zend_init_func_run_time_cache()
2019-12-09 15:58:00 +03:00
Dmitry Stogov
62826e95d2
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Call zend_unregister_ini_entries() when unload extension loaded through dl() without MSHUTDOWN callback. Extensions with MSHUTDOWN should use UNREGISTER_INI_ENTRIES().
2019-12-09 15:07:39 +03:00
Dmitry Stogov
92c23e1fd3
Call zend_unregister_ini_entries() when unload extension loaded through dl() without MSHUTDOWN callback.
...
Extensions with MSHUTDOWN should use UNREGISTER_INI_ENTRIES().
2019-12-09 15:05:24 +03:00
Dmitry Stogov
796d11c942
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fixed bug #78895 (Reflection detects abstract non-static class as abstract static. IS_IMPLICIT_ABSTRACT is not longer used)
2019-12-09 13:50:43 +03:00
Dmitry Stogov
42a2fb8411
Fixed bug #78895 (Reflection detects abstract non-static class as abstract static. IS_IMPLICIT_ABSTRACT is not longer used)
2019-12-09 13:49:12 +03:00
Christoph M. Becker
a776069ea8
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Extend CURLFile to support streams
Use curl_mime_*() functions if available
2019-12-09 10:32:53 +01:00
Christoph M. Becker
b37a5b9ca4
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Extend CURLFile to support streams
Use curl_mime_*() functions if available
2019-12-09 10:32:03 +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