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

From: Date: Tue, 30 Sep 2003 12:33:06 +0000
Subject: Re: AW: [PEAR-DEV] Update: HTTP_Download
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-22219@lists.php.net to get a copy of this message
Tuesday, September 30, 2003, 1:00:13 PM, Jeroen Houben wrote: > 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? Nop, there're saying that: <?php function foo($a) {} $b = 'whatever'; foo($b); ?> $a won't be a copy of $b unless you modify $a inside the function. -- Tomas V.V.Cox mailto:cox@idecnet.com

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