Re: Re: moving to other web server

From: Date: Wed, 11 Oct 2006 08:16:38 +0000
Subject: Re: Re: moving to other web server
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-242962@lists.php.net to get a copy of this message
David Robley wrote:
Chris wrote:
David Robley wrote:
Afan Pasalic wrote:
hi to all, we are moving our web server from one to other hosting company. we have chance to request what version of php i want to be installed, 4 or 5. Current web server works on php 4.3.4 we don't use any classes, functions only. as far as I know, in our case moving from 4 to 5 shouldn't be any problem, no concerns. but, anyway, where can I expect errors - except in oop? thanks for any help. -afan
If you currently use a variable named $this you can expect problems.
Care to elaborate? I use that all the time on both php4 & php5 servers and it works fine.
When I upgraded my service to php5 a couple of scripts that used $this as a variable name, as opposed to $this->value, were spitting errors - I don't remember the actual error but let me see if I can reproduce it; <?php $this = ''; echo $this; ?> Fatal error: Cannot re-assign $this in /usr/local/apache2/htdocs/test/file.php on line 2
Ahhh... I don't use it outside of a class situation so I guess that's why I haven't run into it before :) -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#242962) next »