Not LiteSpeed but PHP related...

xing

LiteSpeed Staff
#1
Do not upgrade to 5.0.5 without first validating your code against the new version. 5.0.5 made some changes to the object code that broke dynamic object property/variable setting like:

$this->$name = $this->_sql_array[$size];

Error: Cannot access empty property:

Where you are trying to set a dynamic variable with the name of $name of the value blah.
 

xing

LiteSpeed Staff
#2
actually...this is a false alarm..oops...

5.0.5 introduced assertions when you are trying to do $this->$name = "adsfasdf" where $name = null or empty string.

Before 5.0.5, the above invalid code would run without error, now it correctly asserts as error.

Turned out to be faulty code in my own app that 5.0.5 asserts finally revealed.
 
Top