Scary stuff
I found this in a open source package, which I won't disclose. Amazingly enough, in the phpDoc comments, the author was proud of this and boasting of their l33t skills. It horrified me.
function myFunction($myObject, ... other params)
{
...Code code Code
//WTF?
$this = &$myObject;
}
I can kind of see how someone would even think of using this, but it still scares me.
function myFunction($myObject, ... other params)
{
...Code code Code
//WTF?
$this = &$myObject;
}
I can kind of see how someone would even think of using this, but it still scares me.
