I was looking through the PN code and found the following which doesn't quite seem right: in pnAPI.php the following function is defined:
Code
function &pnDBGetTables()
The in (for example) pnMod.php (and other places) this function is typically invoked like this:
Code
$pntable =& pnDBGetTables();
So the declaration of the function defines that a reference is returned from said function. Then when you're actually using the function, you're again explicitly assigning a reference to the resulting variable. It seems that one of the '&' (reference operators) is superflous here: either you define it at the function declaration or you use it in the invocation/assignment statement.
What is the correct way of doing this? Am I misunderstanding something here?
Thanks
Lobita
