History log of /PHP-7.4/Zend/zend_language_scanner.l (Results 1 – 25 of 449)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 118ff033 16-Dec-2020 Nikita Popov

Fix bug #80523

Don't truncate the file length to unsigned int...

I have no idea whether that fully fixes the problem because the
process gets OOM killed before finishing, but at

Fix bug #80523

Don't truncate the file length to unsigned int...

I have no idea whether that fully fixes the problem because the
process gets OOM killed before finishing, but at least the
immediate parse error is gone now.

show more ...


# e8d36ce7 04-Sep-2020 Nikita Popov

Avoid duplicate octal warning during heredoc scan ahead


# 06ade155 05-Aug-2020 Pieter van den Ham

Fix #79934: CRLF-only line in heredoc causes parsing error

Fixes the function `next_newline()` in zend_language_scanner.l. The
function now correctly returns a newline_len of 2 for "\r\n

Fix #79934: CRLF-only line in heredoc causes parsing error

Fixes the function `next_newline()` in zend_language_scanner.l. The
function now correctly returns a newline_len of 2 for "\r\n".

Closes GH-5944.

show more ...


# 6c48da9a 28-Feb-2020 Nikita Popov

Fixed bug #79062

Back up the doc comment when performing heredoc scanahead.


# f77747b0 30-Dec-2019 Nikita Popov

Properly propagate url_stat exceptions during include

Make sure we abort operations early, and that we don't emit
additional warnings or errors if an exception has been thrown.


Revision tags: php-7.3.13RC1, php-7.2.26RC1, php-7.4.0, php-7.2.25, php-7.3.12, php-7.4.0RC6, php-7.3.12RC1, php-7.2.25RC1, php-7.4.0RC5, php-7.1.33, php-7.2.24, php-7.3.11, php-7.4.0RC4
# 641f9615 12-Oct-2019 Nikita Popov

Fix handling of overflowing invalid octal in tokenizer

If token_get_all() is used, we still need to correctly distinguish
LNUMBER vs DNUMBER here for backwards compatibility.


# 6878c583 10-Oct-2019 Nikita Popov

Report error if stream_read is not implemented

We need to return -1 in this case. Slightly restructure the code
to avoid unnecessary conditions.


Revision tags: php-7.3.11RC1, php-7.2.24RC1
# 2f648444 07-Oct-2019 Nikita Popov

Fix leak when include fails in a read operation

Usually it will already fail when opening, but reads can also
fail since PHP 7.4, in which case we still need to place the
file handle

Fix leak when include fails in a read operation

Usually it will already fail when opening, but reads can also
fail since PHP 7.4, in which case we still need to place the
file handle in open_files to make sure the destructor will run
on it.

show more ...


# 239e2dda 04-Oct-2019 Nikita Popov

Make sure T_ERROR is returned for all lexer exceptions

This originally manifested as a leak in oss-fuzz #18000. The following
is a reduced test case:

<?php
[

Make sure T_ERROR is returned for all lexer exceptions

This originally manifested as a leak in oss-fuzz #18000. The following
is a reduced test case:

<?php
[
5 => 1,
"foo" > 1,
" " => "" == 0
];
<<<BAR
$x
BAR;

Because this particular error condition did not return T_ERROR,
EG(exception) was set while performing binary operation constant
evaluation, which checks exceptions for cast failures.

Instead of adding this indirect test case, I'm adding an assertion
that the lexer has to return T_ERROR if EG(exception) is set.

show more ...


Revision tags: php-7.4.0RC3
# 19e7e4b1 30-Sep-2019 Nikita Popov

Fixed bug #78604

<?php followed by EOF is valid since PHP 7.4.


# 7df50ef1 28-Sep-2019 Nikita Popov

Don't throw warnings during heredoc scan-ahead

Otherwise these warnings will turn up twice (or more...)


Revision tags: php-7.2.23, php-7.3.10, php-7.4.0RC2
# 3f76f941 14-Sep-2019 Nikita Popov

Fix double-free on invalid large octal with separators

To clean up the mess here a bit, check for invalid octal digits
with an explicit loop instead of mixing this into the string to

Fix double-free on invalid large octal with separators

To clean up the mess here a bit, check for invalid octal digits
with an explicit loop instead of mixing this into the string to
number conversion.

Also clean up some type usage.

show more ...


Revision tags: php-7.2.23RC1, php-7.3.10RC1, php-7.4.0RC1, php-7.1.32, php-7.2.22, php-7.3.9
# 1a78bdab 25-Aug-2019 Theodore Brown

Fix #78454: Consecutive numeric separators cause OOM error

Resolves out of memory error when consecutive numeric separators follow a binary/hex literal.


# 31070884 21-Aug-2019 Christoph M. Becker

Fix #78441: Parse error due to heredoc identifier followed by digit

Since digits are allowed for identifiers, we have to cater to them as
well.


Revision tags: php-7.4.0beta4, php-7.2.22RC1, php-7.3.9RC1, php-7.4.0beta2, php-7.1.31, php-7.2.21, php-7.3.8, php-7.4.0beta1
# d9680272 24-Jul-2019 Nikita Popov

Revert "Drop free_filename field from zend_file_handle"

This reverts commit e0eca262852dba1a78afcde64a49126c81fead1a.

free_filename is used by the wincache extension, restore this

Revert "Drop free_filename field from zend_file_handle"

This reverts commit e0eca262852dba1a78afcde64a49126c81fead1a.

free_filename is used by the wincache extension, restore this
field for PHP 7.4.

show more ...


Revision tags: php-7.2.21RC1, php-7.3.8RC1
# e41b7f6d 12-Jul-2019 Nikita Popov

Deprecate (real) cast


# e0eca262 16-Jul-2019 Nikita Popov

Drop free_filename field from zend_file_handle

free_filename was always zero.


# 49bac9b7 16-Jul-2019 Nikita Popov

Introduce zend_stream_init_filename()

Avoid more ad-hoc initialization of zend_file_handle structures.


# c9acc901 15-Jul-2019 Nikita Popov

Support <?php followed by EOF

This is an annoying edge-case for canonicalization.


# fcdb12ed 15-Jul-2019 Nikita Popov

Combine SKIP_TOKEN+RETURN_TOKEN into one macro


# c5f1b384 15-Jul-2019 Nikita Popov

Move shebang handling into the lexer

Instead of handling shebang lines by adjusting the file pointer in
individual SAPIs, move the handling into the lexer, where this is
both a lot s

Move shebang handling into the lexer

Instead of handling shebang lines by adjusting the file pointer in
individual SAPIs, move the handling into the lexer, where this is
both a lot simpler and more robust. Whether the shebang should be
skipped is controlled by CG(skip_shebang) -- we might want to do
that in more cases.

This fixed bugs #60677 and #78066.

show more ...


# 9ad094e3 15-Jul-2019 Nikita Popov

Emit T_BAD_CHARACTER for unexpected characters

Avoid having holes in the token stream which are annoying and
inefficient to reconstruct on the consumer side.


# 33994ebd 12-Jul-2019 Peter Kokot

Remove tsrm_config_common.h

- Checks and defines are not relevant for files that include it anymore
- Some code is not used anymore
- Defines are a bit duplicated in zend_portability

Remove tsrm_config_common.h

- Checks and defines are not relevant for files that include it anymore
- Some code is not used anymore
- Defines are a bit duplicated in zend_portability.h and TSRM.h file
- MAXPATHLEN defs moved to zend_virtual_cwd.h

show more ...


# 0d568b9f 12-Jul-2019 Nikita Popov

Don't split T_INLINE_HTML at partial PHP tag

If <?php occurs without required trailing whitespace, we should keep
it as part of a single T_INLINE_HTML region.


Revision tags: php-7.4.0alpha3, php-7.3.7, php-7.2.20, php-7.4.0alpha2, php-7.3.7RC3, php-7.3.7RC2, php-7.2.20RC2, php-7.4.0alpha1, php-7.3.7RC1, php-7.2.20RC1, php-7.2.19, php-7.3.6, php-7.1.30, php-7.2.19RC1, php-7.3.6RC1
# f74109d9 02-May-2019 Theodore Brown

Implement numeric literal separators

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


12345678910>>...18