I have to debug a weird PHP application and today I came across a snippet of code which basically looked like:
<?
if($IdUtil !=0)
{
$rowres=mysql_fetch_array($res);
$TypeUtil=$rowres['Typeuser'];
//if util is not an admin, does it have rights?
if ($TypeUtil != ****admin)
{
if($TypeUtil == 4013)
{
//======================SNIP
The line that’s stunning me is the ****admin one. It is used several times in this file, but I never saw it elsewhere. As the application is very buggy I can’t run it to use a var_dump(****admin); at the moment.
Have you guys, seen somethink like that before? And what does it mean?
It’s not valid PHP syntax; it will produce a syntax error when run.
Your source file must be mangled somehow.