[pmwiki-users] Request input on soon-coming FAST Data release

Patrick R. Michaud pmichaud at pobox.com
Wed Oct 4 16:57:38 CDT 2006

On Wed, Oct 04, 2006 at 11:47:10PM +0200, Joachim Durchholz wrote:
> Crisses schrieb:
> > You may not know every built-in function in PHP, or that  
> > calling variables into functions by reference is faster and saves  
> > memory. (PM reminded me of that last night -- oops)
> Ordinarily that's true, but IIRC not in PHP. PHP uses copy-on-write 
> logic for strings and arrays, and references are somehow cludged around 
> that - at least that's what I remembered reading in the PHP docs.

I figured that PHP used copy-on-write for strings, but until
your message I hadn't run across anything that indicated
that PHP does copy-on-write for arrays.  I just now did a search 
of the PHP manual and can't find anything about it before PHP 5... 
although there are a few tantalizing messages that indicate 
that you're correct.

Could someone perhaps find a more definitive answer for this
question?  My task list is a bit full at the moment... :-|



More information about the pmwiki-users mailing list