I am currently checking the deprecated functions of a software developed in older PHP. It was developed in 2006. And I've seen a lot of variables in this format $_SESSION[name]
or $_GET[name]
.
The issue here is that it does not give error on the deployed site. But in my local it gives Notice: Use of undefined constant name - assumed 'name'
.
I know that I can solve this by adding single or double quotes on each variable but there are a lot to edit. And I have no access to the server configurations.
Any idea why this does not work on my local. I use PHP 5.6.
EDIT:: I just want to know the reason behind.
Thanks.