Consider the following code:
class myclass
{
function __construct(&$arg1, &$arg2)
{
echo $arg1;
echo $arg2;
}
}
How do I know that constructor above has arguments passed by reference through code?
Edit:
I am looking for detecting of they are passed by reference programatically something like this:
is_passed_by_ref($arg1, etc);