I upgraded the PHP version of one of my old applications. The application was not working as expected. Here is the first error I’ve received.
Fatal error: Call to undefined function session_is_registered()
session_is_registered() has been removed in PHP 5.5. We may need to use $_SESSION(‘username’).
I replaced the old code with the following.
Now it ended up with the following error! (AGAIN!)
Fatal error: Cannot use isset() on the result of a function call (you can use “null !== func()” instead)
Then I replaced it like this.
if(null == $myusername)
Fatal error: Function name must be a string
And finally, this one worked.