I don't follow. Is this really the intended behavior? It seems quite
unintuitive that the original array would be modified by *empty* loops.
Suppose I create an include file that loops through $_GET variables
with references:
foreach ($_GET as &$get) { /* empty loop */ }
Subsequent foreach(
On 2009-10-21, at 10:40 PM, Richard K Miller wrote:
I don't follow. Is this really the intended behavior? It seems quite
unintuitive that the original array would be modified by *empty*
loops.
It is intended behaviour. Consider your code; at the end of this loop:
$items = array('apple',
Richard, enumerator exhausted, repeat your sub-sequence again you will get it
e.g pointer and pointed
Best Regards
On Wed, Oct 21, 2009 at 7:01 PM, Richard K Miller
wrote:
> Hi Jill,
>
>>> >> $items = array('apple', 'banana', 'carrot');
>>> print_r($items);
>>> foreach ($items as &$item) { }
>>
Hi Jill,
$item is now a reference to the last element of $items.
print_r($items);
foreach ($items as $item) { }
And here, the foreach loop writes to $item for each element: thus
assiging that value to the last element of $items.
The last element of $items is 'carrot'. Why does it print appl
Richard K Miller schreef:
> Is this a bug in PHP?
No
>
> $items = array('apple', 'banana', 'carrot');
> print_r($items);
> foreach ($items as &$item) { }
$item is now a reference to the last element of $items.
> print_r($items);
> foreach ($items as $item) { }
And here, the foreach loop writes to
Is this a bug in PHP?
// Output:
Array
(
[0] => apple
[1] => banana
[2] => carrot
)
Array
(
[0] => apple
[1] => banana
[2] => carrot
)
Array
(
[0] => apple
[1] => banana
[2] => banana
)
Two bananas in the last set?! Not what I expected.
Richard
-
-Original Message-
>From: "Pierre Joye"
>Sent: Wednesday, October 21, 2009 1:54pm
>To: jani.taski...@iki.fi
>Cc: "Nick Fortenberry" , internals@lists.php.net, "Jake
>Levitt" >
>Subject: Re: [PHP-DEV] Patch: Add INTERNALDATE to imap_append()
>
>On Wed, Oct 21, 2009 at 6:44 PM, Jani Taskin
On Wed, Oct 21, 2009 at 6:44 PM, Jani Taskinen wrote:
> 1. Top-posting is considered evil.
> 2. Look harder, timelib_* has several functions for this, be creative..
> 3. Tabs instead of spaces, NO C++ comments!
4. point him to the right function then.
That would spare us time and bandwidth.
Che
Here,
http://github.com/php/php-src/commits/PHP_5_3_1
http://github.com/php/php-src/blob/93b4bd98771412ee2dbd18efa71e223a1daf3536/NEWS
On Wed, Oct 21, 2009 at 5:18 PM, Justin Rovang
wrote:
> Are there changelogs available without downloading?
> I keep digging but can't find one - only for standa
1. Top-posting is considered evil.
2. Look harder, timelib_* has several functions for this, be creative..
3. Tabs instead of spaces, NO C++ comments!
--Jani
On 10/21/2009 06:37 PM, Nick Fortenberry wrote:
Hey Jani,
We looked through the date library but it doesn't look like there are any
fu
Are there changelogs available without downloading?
I keep digging but can't find one - only for standard releases
(http://www.php.net/ChangeLog-5.php#5.2.11)
>>> On 10/20/2009 at 17:31, Johannes Schlüter
wrote:
The second release candidate of 5.3.1 was just released for testing
and can be d
Hey Jani,
We looked through the date library but it doesn't look like there are any
functions to verify that a date is in a certain format. Unless we are
mistaken, it looks like the only way to verify this would be to use a regex.
Also, we read through CODING_STANDARDS and it said to be genero
Stanislav Malyshev wrote:
>> Would it be possible to implement CG(zend_linecol) in addition to
>> CG(zend_lineno)? As far I can see, this is a missing prerequisite for
>> Xdebug to report more fine-grained code coverage, for instance.
>
> Unless we put this inside each opcode, I'm not sure it'd
Hi Abri,
You are on the wrong mailing list as this is the one of PHP internal developers.
You may have more chance by contacting RoomBooker and ionCube's support.
For the general mailing list of PHP, take a look at php-general,
although I think they would redirect you to products support too.
Ki
Hi,
We downloaded RoomBooker because we have a client who require the functionality.
I do not know anything about php, and are trying to run Roombooker on my laptop
(I understand that it is meant for a server website environment) but just to
show the client the functionality I need it to run on
15 matches
Mail list logo