summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg_prompt.c
diff options
context:
space:
mode:
authorTyson Andre <tysonandre775@hotmail.com>2020-09-05 16:52:14 -0400
committerTyson Andre <tysonandre775@hotmail.com>2020-09-05 17:33:20 -0400
commit9439ca53227b23e9a0eb0173c80f712ed480fdd8 (patch)
tree39506705c4d682fa4d01035852368d69cb69955c /sapi/phpdbg/phpdbg_prompt.c
parentaa613f8b1a4997b8a955422beee5c1e738b3e1e8 (diff)
downloadphp-git-9439ca53227b23e9a0eb0173c80f712ed480fdd8.tar.gz
Improve handling of `#[` in `php -a`
PHP treats `#ini_setting=value` as a call to `ini_set('ini_setting', 'value')`, and silently skips undeclared settings. This is a problem due to `#[` becoming supported attribute syntax: - `#[Attr] const X = 123;` (this is not a valid place to put an attribute) This does not create a constant. - `#[Attr] function test($x=false){}` also contains `=`. This does not create a function. Instead, only treat lines starting with `#` as a special case when the next character isn't `[` Closes GH-6085
Diffstat (limited to 'sapi/phpdbg/phpdbg_prompt.c')
0 files changed, 0 insertions, 0 deletions