Re: AW: [PEAR-DEV] Update: HTTP_Download

From: Date: Tue, 30 Sep 2003 11:00:13 +0000
Subject: Re: AW: [PEAR-DEV] Update: HTTP_Download
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-22214@lists.php.net to get a copy of this message
Stephan Schmidt wrote:
Hi,
I'm using references, because sometimes you want to pull a 50MB (or bigger) file from the database and you don't want PHP to internally copy this data. $data is now mandatory, which seems fine because why would anybody use setData(null). Perhaps there could be a method called unsetData to clear any raw data in the object if this functionality is needed.
As long as the data is not modified, no copy will be created. AFAIK the code should be a bit faster without the reference... Your saying that if I do $a = $b, $b will be *not* be a copy of $a?
Jeroen

« previous php.pear.dev (#22214) next »