This is a very weird error. I am dealing with a script that uses variable $s
as on object. This script has been running for a long time.
Randomly, on the page it suddenly said:
Trying to get property of non-object...
Confused, I put var_dump($s)
on several places throughout the script, including the VERY TOP (before any includes or anything).
The output: string(32) "8251ca989c1e9aec382f07f6e047e5f3"
Even more confused, I put the var_dump($s)
in another script to test it. Once again, it showed the same 32 character string.
What is happening here? Is this a hack of some kind?
EDIT:
I made a new script and this is LITERALLY the entire code:
<?php
var_dump($s);
?>
When I visit in a browser it says: string(32) "8251ca989c1e9aec382f07f6e047e5f3"
register_globals might be turned on, and the data might be coming from a cookie of the same name. You should disable it if you can for security reasons.