microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.9k stars 29.17k forks source link

Exception in shader when SQL string concatenation in PHP. #113324

Closed huye closed 3 years ago

huye commented 3 years ago

Issue Type: Bug

<?php

// The single quotation mark in the string causes the color highlight of the implode function to be incorrect.
$sql = "SELECT * FROM  WHERE  IN('" . implode("','", $subs) . "')";

VS Code version: Code 1.52.0 (940b5f4bb5fa47866a54529ed759d95d09ee80be, 2020-12-10T22:43:50.597Z) OS version: Linux x64 5.4.70-amd64-desktop

System Info |Item|Value| |---|---| |CPUs|AMD Ryzen 7 3750H with Radeon Vega Mobile Gfx (8 x 2920)| |GPU Status|2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: disabled_software
skia_renderer: enabled_on
video_decode: unavailable_off
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|1, 1, 1| |Memory (System)|14.65GB (2.58GB free)| |Process Argv|--no-sandbox --unity-launch --crash-reporter-id 14391a16-897d-41f8-af87-c27038b34956| |Screen Reader|no| |VM|0%| |DESKTOP_SESSION|deepin| |XDG_CURRENT_DESKTOP|Deepin| |XDG_SESSION_DESKTOP|deepin| |XDG_SESSION_TYPE|x11|
Extensions (9) Extension|Author (truncated)|Version ---|---|--- vscode-intelephense-client|bme|1.5.4 php-cs-fixer|jun|0.1.157 php-server-vars-snippets|Mih|0.0.3 vscode-language-pack-zh-hans|MS-|1.52.2 jupyter|ms-|2020.12.414227025 php-docblocker|nei|2.1.0 guilite-previewer|nia|0.0.2 code-settings-sync|Sha|3.4.3 xmake-vscode|tbo|1.4.4
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 openlogontheside:30221877 python763:30178808 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 python504:30227505 vswsl492cf:30211402 wsl2prompt:30224612 pythonvsdeb440cf:30237828 unusedprompt:30224610 folderexplorer:30224614 openfilemenucf:30224648 pythonvsded773cf:30236630 ```
vscodebot[bot] commented 3 years ago

(Experimental duplicate detection) Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

roblourens commented 3 years ago

https://github.com/atom/language-php/issues/392