Zeev Suraski
91a7c6f612
Take out some last remnants of the yearly copyright range
2019-01-30 11:26:28 +02:00
Zeev Suraski
02557f87bc
Adios, yearly copyright ranges
2019-01-30 11:23:29 +02:00
Zeev Suraski
38c337f22e
Remove year range from copyright notice
2019-01-30 11:00:23 +02:00
Nikita Popov
6c73b50cf6
Remove static calls to non-static methods
2019-01-30 09:19:02 +01:00
Nikita Popov
4eb5db2c68
Forbid unbinding $this from methods
2019-01-30 09:19:02 +01:00
Nikita Popov
23a5be3696
Remove ability to declare userland case-insensitive constants
...
This is part of https://wiki.php.net/rfc/case_insensitive_constant_deprecation .
This commit only removes the ability to declare such constants from
userland. Before the functionality can be removed entirely, it's
necessary to figure out the handling of true/false/null first.
2019-01-30 09:19:02 +01:00
Nikita Popov
682b54f687
Remove support for legacy constructors
...
This has been deprecated in PHP 7.0 by
https://wiki.php.net/rfc/remove_php4_constructors .
2019-01-29 13:04:20 +01:00
Nikita Popov
55dbb57322
Remove support for custom assert() function
...
Deprecated in PHP 7.3 as part of
https://wiki.php.net/rfc/deprecations_php_7_3 .
2019-01-29 11:10:47 +01:00
Nikita Popov
d74d3922ce
Remove (unset) cast
...
Deprecated in PHP 7.2 as part of
https://wiki.php.net/rfc/deprecations_php_7_2 .
2019-01-29 11:10:47 +01:00
Nikita Popov
6db97f5e3e
Remove each()
...
This has been deprecated in PHP 7.2 as part of
https://wiki.php.net/rfc/deprecations_php_7_2 .
2019-01-29 09:42:59 +01:00
Nikita Popov
9bc2cacf7f
Remove special treatment of strings in asserts
...
This was deprecated in PHP 7.2 as part of
https://wiki.php.net/rfc/deprecations_php_7_2 .
2019-01-29 09:42:59 +01:00
Nikita Popov
46d38aa7cd
Merge branch 'PHP-7.4'
2019-01-29 09:40:38 +01:00
Nikita Popov
16460ebc81
Merge branch 'PHP-7.3' into PHP-7.4
2019-01-29 09:40:19 +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
ff780feca4
Require second argument on (mb_)parse_str()
...
This was deprecated in PHP 7.2 as part of
https://wiki.php.net/rfc/deprecations_php_7_2 .
2019-01-28 15:58:24 +01:00
Nikita Popov
331e56ce38
Remove mbstring.func_overload
...
Deprecated in PHP 7.2 as part of
https://wiki.php.net/rfc/deprecations_php_7_2 .
2019-01-28 15:58:23 +01:00
Nikita Popov
920b4b249f
Remove track_errors and $php_errormsg
...
This has been deprecated in PHP 7.2 as part of
https://wiki.php.net/rfc/deprecations_php_7_2 .
2019-01-28 15:58:23 +01:00
Nikita Popov
ee16d99504
Remove create_function()
...
Deprecated in PHP 7.2 as part of
https://wiki.php.net/rfc/deprecations_php_7_2 .
2019-01-28 15:58:23 +01:00
Joe Watkins
faf03e47d2
bump versions of all the things
2019-01-28 15:54:55 +01:00
Nikita Popov
3c2e1b6bd5
Bump API numbers
...
These are of course not the final API numbers, but let's make sure
they differ from the 7.4 branch for now.
2019-01-28 11:17:30 +01:00
Nikita Popov
768bc7a0b8
Merge branch 'PHP-7.3'
2019-01-28 09:23:53 +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
Nikita Popov
b93aefc1a7
Fix assign to self detection
2019-01-27 20:50:08 +01:00
rjhdby
3a0fc00424
zend_compile.c: zend_is_variable(). Removed unnecessary checks. Naming according to internal logic.
2019-01-27 08:38:08 +01:00
Dmitry Stogov
662243cb30
Don't hide real peak usage.
2019-01-25 13:36:32 +03:00
Nikita Popov
7f13557843
Merge branch 'PHP-7.3'
2019-01-25 11:03:29 +01: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
Dmitry Stogov
bf774d4d75
Reduce amount of updated memory
2019-01-24 18:01:24 +03:00
Dmitry Stogov
f80b1b0c56
Delay hash table allocation
2019-01-24 16:01:04 +03: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:
a983eb17b6/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
fd41b99d58
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fixed bug #77494 (Disabling class causes segfault on member access)
2019-01-24 13:08:00 +03: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
1d984cc707
Merge branch 'PHP-7.3'
2019-01-24 10:58:24 +01: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
a50198d0fe
Implement ??= operator
...
RFC: https://wiki.php.net/rfc/null_coalesce_equal_operator
$a ??= $b is $a ?? ($a = $b), with the difference that $a is only
evaluated once, to the degree that this is possible. In particular
in $a[foo()] ?? $b function foo() is only ever called once.
However, the variable access themselves will be reevaluated.
2019-01-22 11:12:04 +01:00
Dmitry Stogov
a3503f0402
Most opcodes that don't consume their OP1 operand, must be terminated with real consumer, and don't have to be checked.
...
These checks are replaced by ZEND_ASSERT.
2019-01-22 02:11:50 +03:00
Dmitry Stogov
960f922ed2
Fixed odd ROPE_ADD instruction placement.
2019-01-21 23:34:09 +03:00
Dmitry Stogov
97ccafd4c6
Live ranges construction optimization
2019-01-21 17:25:24 +03:00
Nikita Popov
3269e88468
Implement single-pass live range calculation
...
Instead of interleaving creation of live-ranges with the main
compiler code, compute them in a separate pass over the opcodes
as part of pass_two. Additionally, do not keep live ranges
synchronized during optimization in opcache and instead use the
same mechanism to recompute them after optimization.
2019-01-21 11:47:27 +01:00
Anatol Belski
1f4a04fb3f
Merge branch 'PHP-7.3'
...
* PHP-7.3:
Fixed bug #77484 Zend engine crashes when calling realpath in invalid working dir
2019-01-19 02:39:42 +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
Dmitry Stogov
c69d830d45
Micro-optimization
2019-01-18 12:43:42 +03:00
Dmitry Stogov
77db3d524e
Optimize zend_handle_fetch_obj_flags()
2019-01-18 01:22:14 +03:00