Re: [PHP-DEV] CVS errors: Cannot create references to/from string offsets From: Andi Gutmans (andi <email protected>)
Date: 11/09/00

I re-commited the patch with a small fix. Can you please grab the latest
Zend CVS version (as of when you read this Email) and let me know if
everything's OK now?

Thanks,

Andi
At 05:31 PM 11/9/00 -0600, Matt McClanahan wrote:
>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>

---
Andi Gutmans <andi <email protected>>
http://www.zend.com/

-- 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>