D. Dante Lorenso wrote:
Internals,

Seems the order or left vs right assignment evaluation has changed somehow recently in my upgrade to PHP 5.1.4. See the following code:

---------- 8< -------------------- 8< ----------
<?php
$data = array();
$index = 0;
for ($x = 0; $x < 5; $x++) {
  $data[$index] = $index++;
}

The behaviour is undefined (tm) if you use the variable to be in/decremented 
more than once in a statement.

Regards,
--
Michael

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to