I recently had to reinstall everything on my machine due to a drive crash, and now that I've reinstalled, the code I was developing started crashing with an Invalid Opcode error at every point where I used the the command:
List($var1, $var2) = "";
I quickly found that if I split it into individual commands, e.g.:
$var1 = "";
$var2 = "";
everything works fine. But I am curious why this error is happening? I am running Win2K with Apache/2.0.55 (Win32) PHP/5.1.2
Can anyone inform me?
Thanks!
David
List construct causing Invalid Opcode errors?
Moderator: General Moderators
I think the correct syntax would be:
Maybe you had error_reporting set differently on your previous installation?
Code: Select all
list($var1, $var2) = array("","");Maybe you had error_reporting set differently on your previous installation?