[dev] PHP 5, Horde and this

Elnikoff Thierry elnikoff at skynet.be
Wed Jun 23 15:48:01 PDT 2004


Hi everybody,

I'm currently discovering the Horde Framework, and I'm quite sure it could be a very pretty good start for some applications I plan to develop (in a first "learning stage").

In get into trouble, because I tried to use Horde with the following configuration :
- Windows XP Pro (Windows Update visited regularly)
- Apache 1.3.29
- PHP 5.0.0RC 3
- PEAR is also installed, with quite frequent updates...
[mySQL is also installed, but the problem doesn't come from mySQL, I think...]


I followed the install described in horde/docs directory (very well done !), but, when trying to access the test.php page, I had the surprise to find an error page : "Fatal error: Using $this when not in object context in [My webroot]\horde\test.php on line 76"

I removed these references (in test.php, but also in the config/registry.php file) and the test page worked fine !

So, I presume I'll have to check all references to this "this" variable which are defined outside of a class scope, but...

But... I don't have the aim to reinvent the wheel, so here are my questions :
* Where could I find a workaround to this "$this->" problem ? 

* Does someone try to make Horde working with PHP 5 ? I presume that I could find a php5-enabled version of the Horde Framework but where is it (on the CVS perhaps...) ?

* Are there some other surprises with php5 incompatibility with php4, that some 'expert users' as you could warn me ??
I found of course the zend page about "Backward Incompatible Changes" (one of the first return from google) 

* Last but not least : are there some general tips for Windows users with the use or configuration of Horde Framework ? 


Thanks for reading me, and a lot more for the answer(s)


Thierry Elnikoff







More information about the dev mailing list