[PHP-DEV] Bug #2345: overloads, incompatibility with php2 From: krauss <email protected>
Date: 09/21/99

From: krauss <email protected>
Operating system: Linux (2.0.36)
PHP version: 3.0.11
PHP Bug Type: Compile Failure
Bug description: overloads, incompatibility with php2

The overload,

$x=1; $x[0]="a"; $x[1]="b";

is valid in PHP2 (and Perl), but not in PHP3 (3.0.11).
Message:
Warning: Illegal string index in /... on line ...
(when $x is from cookie)
or
Warning: Variable $x is not an array or string in /... on line ...

I had problemens with $x from a SetCookie and $x[$i] in script attribs.

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