Doesn't look quite right - the source of the problem was that the unsetenv
routine wasn't working right under Windows. This patch made the unsetenv
routine not run properly, because the .key element effectively stopped
being the key, but also contained the value. A side effect of that was
tha
This one time, at band camp, "MRS EKI OMORODION" <[EMAIL PROTECTED]> wrote:
> INTRODUCTION: l am Mrs. Eki Omorodion l know this proposal will come to
> you as a surprise because we have not met before either physically or
> through correspondence. I have no doubt in your
> ability to handle th
Zeev Suraski wrote:
> Log:
> Support references in foreach()
> Syntax:
> foreach ($arr as &$val)
> foreach ($arr as $key => &$val)
Does this mean that before this patch
foreach ($arr as $val) {}
did not put a reference in $val but a copy (clone)?
--
Sebastian Bergmann
htt
At 16:03 24/07/2003, Sebastian Bergmann wrote:
Zeev Suraski wrote:
> Log:
> Support references in foreach()
> Syntax:
> foreach ($arr as &$val)
> foreach ($arr as $key => &$val)
Does this mean that before this patch
foreach ($arr as $val) {}
did not put a reference in $val b
Zeev Suraski wrote:
> A copy, yes.
Why? I thought the Zend Engine 2's new Object Model passed worked with
references by default and only uses copies when "asked".
--
Sebastian Bergmann
http://sebastian-bergmann.de/ http://phpOpenTracker.de/
Das Buch zu PHP 5: http://profes
At 19:12 24/07/2003, Sebastian Bergmann wrote:
Zeev Suraski wrote:
> A copy, yes.
Why? I thought the Zend Engine 2's new Object Model passed worked with
references by default and only uses copies when "asked".
This has nothing to do with the new object model. That's why I used the
word 'copy'
Zeev Suraski wrote:
> This has nothing to do with the new object model.
Got it, thanks,
Sebastian
--
Sebastian Bergmann
http://sebastian-bergmann.de/ http://phpOpenTracker.de/
Das Buch zu PHP 5: http://professionelle-softwareentwicklung-mit-php5.de/
--
PHP Internals - PHP
Along the lines of talking about references with foreach(), is it
possible to allow PHP5's implementation of
func_get_args() to pass args as references, instead of the copy it is
doing in php4 ?
Thanks
Walt
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www