mirror of
https://github.com/php/php-src.git
synced 2026-04-05 07:02:33 +02:00
We avoid `YYCURSOR` becoming `NULL` by initializing `YYMARKER`, and add a default rule for `<NORMAL>` where we catch unexpected input. We also fix the only superficially related issue regarding empty input followed by `T_SEPARATOR` and command, which caused another segfault. Closes GH-6464.
11 lines
379 B
PHP
11 lines
379 B
PHP
--TEST--
|
|
Bug #76813 (Access_violation_near_NULL_on_source_operand)
|
|
--PHPDBG--
|
|
"#!==)===\377\377\276\242="
|
|
#!==)===\377\377\276\242=
|
|
--EXPECT--
|
|
prompt> [Parse Error: syntax error, unexpected input, expecting $end]
|
|
prompt> [Parse Error: syntax error, unexpected # (pound sign), expecting $end]
|
|
prompt> [Parse Error: syntax error, unexpected # (pound sign), expecting $end]
|
|
prompt>
|