[PHP-DEV] CVS errors: Cannot create references to/from string offsets From: Matt McClanahan (cardinal <email protected>)
Date: 11/09/00

CVS is giving me grief in some very strange circumstances..

<? $file = '/etc/passwd' ?>

yields

Fatal error: Cannot create references to/from string offsets nor
overloaded objects in - on line 2

Or in the case of a for loop

<?

for ($i = 0; $i < 50; $i++)
{
   if ($i < 10)
      $file = 'phrase00';
   else
      $file = 'phrase0'; // This fails

   echo "$file$i\n";
}

?>

The first 10 will work, and then the same error as above will be
triggered for line 8.

Matt

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>