Re: cvs: pearweb /public_html/bugs/include functions.inc
| From: | Daniel Convissor | Date: | Mon, 07 Jun 2004 20:56:01 +0000 |
| Subject: | Re: cvs: pearweb /public_html/bugs/include functions.inc | ||
| References: | 1 | Groups: | php.pear.cvs php.pear.webmaster |
| Request: | Send a blank email to pear-cvs+get-20341@lists.php.net to get a copy of this message | ||
Hi:
On Mon, Jun 07, 2004 at 08:29:18PM -0000, Helgi Þormar Þorbjörnsson wrote:
> ampersand on line 628 broke the file :)
... snip ...
> - foreach ($pkgname as $key => &$value) {
> + foreach ($pkgname as $key => $value) {
Thanks. I was testing it on PHP 5 and it worked fine. Switching to PHP 4
and, well, barf.
I did that because I was misremembering about the ability to modify values
of an array while working in foreach. There is something along these
lines in which references are needed. Now, what WAS I remembering? :)
Thanks,
--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
data intensive web and database programming
http://www.AnalysisAndSolutions.com/
4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409