mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2: Fix GH-16174: Empty string is an invalid expression for phpdbg-ev
This commit is contained in:
commit
5c6fc09e45
3 changed files with 14 additions and 1 deletions
3
NEWS
3
NEWS
|
@ -9,6 +9,9 @@ PHP NEWS
|
|||
. Fixed bug GH-16302 (CurlMultiHandle holds a reference to CurlHandle if
|
||||
curl_multi_add_handle fails). (timwolla)
|
||||
|
||||
- PHPDBG:
|
||||
. Fixed bug GH-16174 (Empty string is an invalid expression for ev). (cmb)
|
||||
|
||||
- XMLReader:
|
||||
. Fixed bug GH-16292 (Segmentation fault in ext/xmlreader/php_xmlreader.c).
|
||||
(nielsdos)
|
||||
|
|
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue