Posted by howa on 02/09/07 02:52
> In other words: the engine is smarter then you think.
> --
the bottom line is: the engine created dummy variables for storing two
copies of data, e.g.
<?php
function conv_md5( $data ) {
return md5($data);
}
$data = "abc";
echo conv_md5( $data );
echo $data;
?>
the engine never know we will use the variable $data later, so it
always created allocated memory for storing the result of conv_md5(),
only we know and can force to use return by reference.
[Back to original message]
|