Not LiteSpeed but PHP related...

Discussion in 'Install/Configuration' started by xing, Sep 6, 2005.

  1. xing

    xing LiteSpeed Staff

    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.
  2. xing

    xing LiteSpeed Staff

    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.

Share This Page