mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.4'
* PHP-8.4: Fix GH-16174: Empty string is an invalid expression for phpdbg-ev
This commit is contained in:
@@ -82,7 +82,7 @@ ID [^ \r\n\t:#\000]+
|
||||
GENERIC_ID ([^ \r\n\t:#\000"']|":\\")+|["]([^\n\000"\\]|"\\\\"|"\\"["])+["]|[']([^\n\000'\\]|"\\\\"|"\\"['])+[']
|
||||
ADDR [0][x][a-fA-F0-9]+
|
||||
OPCODE (ZEND_|zend_)([A-Z_a-z])+
|
||||
INPUT ("\\"[#"']|["]("\\\\"|"\\"["]|[^\n\000"])+["]|[']("\\"[']|"\\\\"|[^\n\000'])+[']|[^\n\000#"'])+
|
||||
INPUT ("\\"[#"']|["]("\\\\"|"\\"["]|[^\n\000"])*["]|[']("\\"[']|"\\\\"|[^\n\000'])*[']|[^\n\000#"'])+
|
||||
|
||||
<!*> := yyleng = (size_t) YYCURSOR - (size_t) yytext;
|
||||
|
||||
|
||||
10
sapi/phpdbg/tests/gh16174.phpt
Normal file
10
sapi/phpdbg/tests/gh16174.phpt
Normal file
@@ -0,0 +1,10 @@
|
||||
--TEST--
|
||||
GH-16174 (Empty string is an invalid expression for phpdbg-ev)
|
||||
--PHPDBG--
|
||||
ev $e = ""
|
||||
ev $f = ''
|
||||
--EXPECT--
|
||||
prompt>
|
||||
prompt>
|
||||
prompt>
|
||||
prompt>
|
||||
Reference in New Issue
Block a user