Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Hoshmand's avatar

php version

php version does it related to sql injection ? or not so many people php version i mean version 8 had a big effect on sql injection and give me one way to decrease it !!!

0 likes
6 replies
Sinnbeck's avatar

Source? I have heard before (on this forum) that somehow php 8 should be responsible for sql injection, but no one has any sources.

1 like
Hoshmand's avatar

@Sinnbeck okay but do you think the php version does not related to sql injection !!!

Sinnbeck's avatar

@Hoshmand I dont see how it would. I mean it would involve a bug in php8.0s PDO module, which noone has noticed and patched. Where did you read that it was caused by php 8.0 ?

Hoshmand's avatar

@Sinnbeck someone told me the php version but i totally agree with you sql injection does not effect on the php version i would guess validation

Sinnbeck's avatar
Sinnbeck
Best Answer
Level 102

@Hoshmand Yeah sql injections happen when people dont sanitize inputs, and when they dong use binding in PDO. Can the person give any reference to their claim ? I feels like someone posted it somewhere without knowing what they were talking about, and now people think its true. I mean it can be true, but without any source, I wont just accept it as fact.

2 likes

Please or to participate in this conversation.