Re: Re: moving to other web server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



Cheers
-- 
David Robley

"I love the novels of D. H. Lawrence," said the lady chattily.
Today is Prickle-Prickle, the 65th day of Bureaucracy in the YOLD 3172. 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux