[dev] PHP 5, Horde and this
Jan Schneider
jan at horde.org
Thu Jun 24 00:39:20 PDT 2004
Zitat von Elnikoff Thierry <elnikoff at skynet.be>:
> 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...]
You didn't say which Horde version.
> 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 ?
To be honest, you should have more in-depth knowledge if you want to port
something huge as the Horde framework to a development release of a bc
breaking PHP version.
> * Does someone try to make Horde working with PHP 5 ? I presume that
Yes.
> I could find a php5-enabled version of the Horde Framework but where
> is it (on the CVS perhaps...) ?
No.
> * Are there some other surprises with php5 incompatibility with php4,
> that some 'expert users' as you could warn me ??
Yes, a lot. While you shouldn't see any error messages anymore when using
the latest Horde development code, it won't work as expected, due to the
heavy usage of OO features in Horde, the area that has changed most in PHP
5.
Jan.
--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting.php
More information about the dev
mailing list