Re: [PHPLIB-DEV] efficiency of table class From: Faisal Nasim (faisal <email protected>)
Date: 03/25/00

: Do you mean that executing a query within a call to show_result() wouldn't
: work if passed as a reference? ie...
:
: $a_table->show_result($db->query("select * from bla"));
:

Try this:

$a = "cool";
test ( $a );
test ( "cool" );

function test ( &$var )
{
  print $var;
}

The second test() crashes PHP (atleast b4pl1)

<cut>

-
PHPLIB Developers Mailing List. Send messages to <phplib-dev <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-dev-request <email protected>> in
the body, not the subject, of your message.