Re: [PHP] PHP strategy -- pass complex parameters by value or by reference?

2009-02-18 Thread Jochem Maas
Clancy schreef: > I have a function to process a data file. This process opens the file, and > then calls > another function to process each entry. This function in turn calls another > function to > process each line of the entry. A set of fairly complex arrays specifies how > all the > poss

Re: [PHP] PHP strategy -- pass complex parameters by value or by reference?

2009-02-17 Thread Daevid Vincent
Not sure if you need to worry about it so much. PHP5 does a "copy on write" (and a default pass by reference) basically. And references are more like unix symlinks than C pointers. http://us3.php.net/manual/en/language.references.php http://bytes.com/groups/php/769586-copy-write-semantic http://b

[PHP] PHP strategy -- pass complex parameters by value or by reference?

2009-02-17 Thread Clancy
I have a function to process a data file. This process opens the file, and then calls another function to process each entry. This function in turn calls another function to process each line of the entry. A set of fairly complex arrays specifies how all the possible types of entries and line