Okay, just upgraded to PHP 4.2.1 and it doesn't appear to care if you do

$val['key'] .= "string";

or other +=, overload-type, operations. 

So is it safe to assume that anything Pre-4.2.1 will choke on lines like

---John Holmes...

> -----Original Message-----
> From: John Holmes [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 24, 2002 7:39 PM
> Subject: Fatal Error: Cannot use assign-op operators
> Hi. I'm getting this error on my scripts:
> Fatal error: Cannot use assign-op operators with overloaded objects
> string offsets in
> on line 40
> After doing some searching, I concluded the errors are caused by using
> +=, etc on an array.
> $Report["Where"] .= " Battalion = 2 ";
> or something similar. The error is eliminated if you replace the line
> $Report["Where"] = $Report["Where"] . " Battalion = 2 ";
> The odd thing is I'm taking code from one server to another and it's
> now showing up. The one I'm on now that's showing the error is running
> 4.2.0, IIS, and Win2K. The other machine is Win2K with IIS also. I
> remember the exact version of PHP but it's 4.2.x. The error reporting
> the same on each machine, I didn't change that at all (It's a fatal
> anyhow).
> Any idea why it's ok on one server and not on the other? b/c of PHP
> version? Any other workarounds for this or changes to the
configuration I
> can make to get rid of it? Thanks for any help.
> ---John Holmes...

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to