Am 29.11.2011 16:56, schrieb Tim Streater:
Is there any benefit to setting a pointer to a class instance to null before
returning from a function? As in:
function myfunc ()
{
$p = new myclass ();
// do stuff
$p = null;
}
Thanks.
No!
In this case the GC will
On 11/29/2011 7:56 AM, Tim Streater wrote:
Is there any benefit to setting a pointer to a class instance to null before
returning from a function? As in:
function myfunc ()
{
$p = new myclass ();
// do stuff
$p = null;
}
Thanks.
--
Cheers -- Tim
On 29 Nov 2011 at 17:01, cimodev cimo...@googlemail.com wrote:
Am 29.11.2011 16:56, schrieb Tim Streater:
Is there any benefit to setting a pointer to a class instance to null before
returning from a function? As in:
function myfunc ()
{
$p = new myclass ();
// do stuff
3 matches
Mail list logo