1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +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:
Christoph M. Becker
2024-10-10 01:47:52 +02:00
2 changed files with 11 additions and 1 deletions

View File

@@ -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;

View 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>