accessing variables within objects
- From: lehmann@xxxxxx (Marten Lehmann)
- Date: Wed, 30 Jul 2008 20:10:54 +0200
Hello,
I'm using some php-classes which worked fine with php-5.0.4. Now I tried to upgrade to php-5.2.6, but the classes give a lot of errors. If I set
error_reporting(E_ALL);
I see messages like
Notice: Undefined property: FastTemplate::$main in /whereever/inc.template.php on line 293
Notice: Undefined property: current_session::$cust_id in /whereever/inc.init.php on line 117
In inc.template.php there are a lot of calls like $this->$key. In inc.init.php there are calls like $session->cust_id.
What has changed in php-5.2.x so that these calls don't work any more? What is the new, required form to use objects in a similar manner (unfortunately I have no ressources to code these classes from scratch)? Thanks.
Kind regards
Marten
.
- Follow-Ups:
- Re: accessing variables within objects
- From: mrclay
- Re: [PHP] accessing variables within objects
- From: Micah Gersten
- Re: [PHP] accessing variables within objects
- From: Jim Lucas
- Re: accessing variables within objects
- Prev by Date: Re: Php Help
- Next by Date: Re: [PHP] accessing variables within objects
- Previous by thread: Re: Php Help
- Next by thread: Re: [PHP] accessing variables within objects
- Index(es):
Relevant Pages
|