logoalt Hacker News

Dwedityesterday at 4:59 PM4 repliesview on HN

PHP is the language where "return flase" causes it to return true.

https://danielc7.medium.com/remote-code-execution-gaining-do...


Replies

m4tthumphreyyesterday at 5:02 PM

Also the language that runs half of the web.

Also the language that has made me millions over my career with no degree.

Also the language that allows people to be up and running in seconds (with or without AI).

I could go on.

show 11 replies
420officialyesterday at 5:10 PM

FWIW this was fixed in 2020

show 1 reply
ale42yesterday at 5:23 PM

Except that in a contemporary PHP that doesn't work any more.

  PHP Warning:  Uncaught Error: Undefined constant "flase" in php shell code:1
This means game over, the script stops there.