LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Not LiteSpeed but PHP related...

Reply
 
Thread Tools Display Modes
  #1  
Old 09-06-2005, 10:21 AM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
Default Not LiteSpeed but PHP related...

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.
Reply With Quote
  #2  
Old 09-06-2005, 11:54 AM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
setup php in rails template cswilliams Install/Configuration 2 01-25-2007 08:21 AM
Recompiling PHP according to Wiki works, but not with litespeed DavidPesta Install/Configuration 5 05-24-2006 06:07 PM
LiteSpeed & PHP 5.1 zoom Install/Configuration 1 12-07-2005 11:59 AM
php 5.1.0 + litespeed 2.1.6 + apc 3.0.8 feedback xing Install/Configuration 0 11-24-2005 08:46 PM
Best configuration for PHP LiteSpeed SAPI jeff Install/Configuration 6 10-19-2005 09:54 AM


All times are GMT -7. The time now is 09:04 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.