History log of /php-src/Zend/zend_compile.c (Results 251 – 275 of 2851)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# ee7eecf3 29-Jul-2020 Nikita Popov

Fix leak with nullsafe operator with constant LHS

Followup to 5303bcdd32e8171399c2c60bf431e5304a66c39a. We need to
perform the addref after emitting the opline, because that might
in

Fix leak with nullsafe operator with constant LHS

Followup to 5303bcdd32e8171399c2c60bf431e5304a66c39a. We need to
perform the addref after emitting the opline, because that might
intern the string.

Fixes oss-fuzz #24479.

show more ...

# 5303bcdd 28-Jul-2020 Nikita Popov

Fix use-after-free when nullsafe used with constant LHS

Fixes oss-fuzz #24436.

# 08e6c209 27-Jul-2020 Nikita Popov

Fix null pointer deref in compile_return()

Fixes oss-fuzz #24387.

# 0a5b7c81 24-Jul-2020 Nikita Popov

Make nested ternary without parentheses a compile error

This was deprecated in PHP 7.4.

# 9bf11983 24-May-2020 Ilija Tovilo

Implement nullsafe ?-> operator

RFC: https://wiki.php.net/rfc/nullsafe_operator

Closes GH-5619.

Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>

# 7a3dcc3e 15-Jun-2020 Nikita Popov

Treat namespaced names as single token

Namespace names are now lexed as single tokens of type
T_NAME_QUALIFIED, T_NAME_FULLY_QUALIFIED or T_NAME_RELATIVE.

RFC: https://wiki.php.

Treat namespaced names as single token

Namespace names are now lexed as single tokens of type
T_NAME_QUALIFIED, T_NAME_FULLY_QUALIFIED or T_NAME_RELATIVE.

RFC: https://wiki.php.net/rfc/namespaced_names_as_token

Closes GH-5827.

show more ...

# 7fd4212c 20-Jul-2020 Nikita Popov

Add common code for magic method assignment

This was repeated three times.

# 149029b9 20-Jul-2020 Nikita Popov

Unify magic method visibility check

This was missing entirely for the internal function case.

# 312fe2bd 20-Jul-2020 Nikita Popov

Unify magic method return type checks

# fbbcf82a 20-Jul-2020 Nikita Popov

Unify static/non-static check for magic methods

And promote it to be fatal.

# 86a62eb1 17-Jul-2020 Nikita Popov

Fixed bug #79867

In line with usual rules, give untyped properties a null default
value. Otherwise constructor promotion would give you a property
declaration that cannot be achieved

Fixed bug #79867

In line with usual rules, give untyped properties a null default
value. Otherwise constructor promotion would give you a property
declaration that cannot be achieved through any other means.

show more ...

# 272b887b 16-Apr-2020 Pedro Magalhães

Ignore inheritance rules on private methods

Closes GH-5401

# 1c967df5 11-Jul-2020 Ilija Tovilo

Fix free of uninitialized memory in MATCH_ERROR

As suggested by Tyson Andre:
https://github.com/php/php-src/pull/5371#issuecomment-657081464

Also fix line number of unhandled ma

Fix free of uninitialized memory in MATCH_ERROR

As suggested by Tyson Andre:
https://github.com/php/php-src/pull/5371#issuecomment-657081464

Also fix line number of unhandled match error

Closes GH-5841.

show more ...

# d30cd7d7 26-May-2020 Máté Kocsis

Review the usage of apostrophes in error messages

Closes GH-5590

# 5fc70243 10-Jul-2020 Nikita Popov

Add missing addref for MATCH_ERROR operand

# 9fa1d133 09-Apr-2020 Ilija Tovilo

Implement match expression

RFC: https://wiki.php.net/rfc/match_expression_v2

Closes GH-5371.

# 2af1d36b 08-Jul-2020 Nikita Popov

Skip special function optimization for redeclared disabled functions

As pointed out on GH-5817.

# 1e394696 07-Jul-2020 Nikita Popov

Merge branch 'PHP-7.4'

* PHP-7.4:
Fixed bug #79783


# 971e5c51 07-Jul-2020 Nikita Popov

Fixed bug #79783

Make sure we don't drop the by-reference check when passing the
result of a VM builtin function.

# 4a0d6901 06-Jul-2020 moliata <7127204+moliata@users.noreply.github.com>

refactor: class constants parsing

As part of my work on typed class constants, I wanted to make a
separate pull request for unrelated changes.

These include:

* Moving

refactor: class constants parsing

As part of my work on typed class constants, I wanted to make a
separate pull request for unrelated changes.

These include:

* Moving from ast->child[0]->attr to ast->attr
* Making zend_ast_export_ex() export class constants' visibility
* Extracting an additional zend_compile_class_const_group() function

Closes GH-5812.

show more ...

# 6a195cac 02-Jul-2020 Nikita Popov

Treat attribute argument lists like normal argument lists

Allow trailing comma. Syntactically allow unpacking, but forbid it
during compilation.

The trailing comma test-case is

Treat attribute argument lists like normal argument lists

Allow trailing comma. Syntactically allow unpacking, but forbid it
during compilation.

The trailing comma test-case is adopted from GH-5796.

show more ...

# 053ef28b 28-Jun-2020 Martin Schröder

Implement Attribute Amendments.

RFC: https://wiki.php.net/rfc/attribute_amendments

Support for attribute grouping is left out, because the short
attribute syntax RFC will likely

Implement Attribute Amendments.

RFC: https://wiki.php.net/rfc/attribute_amendments

Support for attribute grouping is left out, because the short
attribute syntax RFC will likely make it obsolete.

Closes GH-5751.

show more ...

# 1314ccbf 26-Jun-2020 Nikita Popov

Cache __unserialize() instead of unserialize()

We should use these cache slots for the new object serialization
mechanism rather than the old one.

# c5caa051 26-Jun-2020 Nikita Popov

Fixed bug #79740

# 48e16a9d 18-Jun-2020 moliata

Use ZEND_TOSTRING_FUNC_NAME

Closes GH-5736.

1...<<11121314151617181920>>...115