Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined function 'strtoupper'. intelephase(P1010) ... #3126

Open
trooperken opened this issue Dec 2, 2024 · 0 comments
Open

Undefined function 'strtoupper'. intelephase(P1010) ... #3126

trooperken opened this issue Dec 2, 2024 · 0 comments

Comments

@trooperken
Copy link

Describe the bug
I'm a novice at submitting bug reports but I like your product so much I had to point this out.
I did purchase a license because I use it all the time its great!

I did not see this particular issue (I may have missed it).. Please help!

Thanks

In Visual Studio Code very often I get messages complaining about builtin PHP functions. I suspected the builtin function has turned back on but I verified it is disabled and asking me to enable it.

To Reproduce
A code snippet (NOT a screenshot of a code snippet) or steps to reproduce the issue
foreach($locs as $key=> $value){
$value =strtoupper(trim($value));
if($value=="") continue;
if(isset($locations[$value])){ $valid[]=$value; }
else {
$errors[] =' Invalid Location ['.$value.']';
}
}

the problem message:
Undefined function 'strtoupper'. intelephase(P1010) (LN 4, Col 13)

[{
"resource": "/c:/kdrive/CID/QL2/test_it.php",
"owner": "generated_diagnostic_collection_name#1",
"code": "P1010",
"severity": 8,
"message": "Undefined function 'strtoupper'.",
"source": "intelephense",
"startLineNumber": 4,
"startColumn": 13,
"endLineNumber": 4,
"endColumn": 23
}]

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.
image

Platform and version
OS and Intelephense version.
Windows 10,
PHP Intelephense v1.12.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant