CVS errors: Cannot create references to/from string offsets

From: Date: Thu, 09 Nov 2000 23:31:32 +0000
Subject: CVS errors: Cannot create references to/from string offsets
Groups: php.dev 
Request: Send a blank email to php-dev+get-37634@lists.php.net to get a copy of this message
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

« previous php.dev (#37634) next »