Jump to content


Photo

PHP 5.3?


  • Please log in to reply
41 replies to this topic

#21 stocktrader

stocktrader

    Member

  • Members
  • PipPip
  • 50 posts

Posted 10 February 2011 - 03:23 AM

the 5.2.16 version of PHP 'breaks' scripts using certain deprecated functions like ereg and eregi.


Does this mean that if I have a script with "ereg" in it that it won't work anymore?
  • 0
ThinkTrade - My Trading Site

#22 fshagan

fshagan

    Member

  • Members
  • PipPip
  • 145 posts

Posted 10 February 2011 - 08:12 PM

Does this mean that if I have a script with "ereg" in it that it won't work anymore?


Yes, it gives an error message and does not perform the comparison. Google "ereg deprecated" for some more information on it.

The error message looks something like "Deprecated: Assigning the return value of XXXXXX by reference is deprecated in /home/users/domain.com/any-php-file.php on line 204"

The solution is to replace every instance of ereg or eregi with the appropriate preg routine (and there is not pregi, so it gets a bit complex).
  • 1

#23 kuemerle5

kuemerle5

    Member

  • Clients
  • PipPip
  • 70 posts
  • Gender:Male

Posted 13 March 2011 - 11:50 PM

I don't mean to pester-y but I would like to know if MDDHosting has any time frame of if/when they will allow clients to choose a PHP 5.3 option. Thanks for any help!
  • 0

#24 MikeDVB

MikeDVB

    Forum Administrator

  • Staff Administrator
  • PipPipPipPipPip
  • 2,902 posts
  • Gender:Male
  • Location:Central Indiana, USA

Posted 14 March 2011 - 07:25 PM

I don't mean to pester-y but I would like to know if MDDHosting has any time frame of if/when they will allow clients to choose a PHP 5.3 option. Thanks for any help!

We're still evaluating the various methods of implementing this option in our development environment. I can't give an ETA because I can't tell you how fast the testing will go. With any luck it shouldn't be more than a week but that's just a guess at this point.
  • 0
Michael Denney - MDDHosting LLC - Providing Hosting since 2007
Scalable shared hosting plans in the cloud! Check them out!
Highly Available Cloud Shared, Reseller, and VPS
http://www.mddhosting.com/

#25 TotalZen

TotalZen

    Newbie

  • Clients
  • Pip
  • 21 posts
  • Gender:Male

Posted 14 March 2011 - 07:34 PM

Yes, it gives an error message and does not perform the comparison. Google "ereg deprecated" for some more information on it.

The error message looks something like "Deprecated: Assigning the return value of XXXXXX by reference is deprecated in /home/users/domain.com/any-php-file.php on line 204"

The solution is to replace every instance of ereg or eregi with the appropriate preg routine (and there is not pregi, so it gets a bit complex).


It is unbelievably annoying that they would do this. My extensively tweaked messageboard uses ereg all over the place, some of it quite complex :)
  • 0

#26 MikeDVB

MikeDVB

    Forum Administrator

  • Staff Administrator
  • PipPipPipPipPip
  • 2,902 posts
  • Gender:Male
  • Location:Central Indiana, USA

Posted 09 April 2011 - 06:18 AM

We've got it installed, but we're wrestling with making it work correctly, once configured it's supposed to "just work" but it doesn't seem to be the case.

Anybody wanting the nitty gritty details can look at http://www.litespeed...read.php?t=4894
  • 0
Michael Denney - MDDHosting LLC - Providing Hosting since 2007
Scalable shared hosting plans in the cloud! Check them out!
Highly Available Cloud Shared, Reseller, and VPS
http://www.mddhosting.com/

#27 MikeDVB

MikeDVB

    Forum Administrator

  • Staff Administrator
  • PipPipPipPipPip
  • 2,902 posts
  • Gender:Male
  • Location:Central Indiana, USA

Posted 09 April 2011 - 11:11 AM

This has been perfected and will be rolled out to all servers.
  • 0
Michael Denney - MDDHosting LLC - Providing Hosting since 2007
Scalable shared hosting plans in the cloud! Check them out!
Highly Available Cloud Shared, Reseller, and VPS
http://www.mddhosting.com/

#28 TotalZen

TotalZen

    Newbie

  • Clients
  • Pip
  • 21 posts
  • Gender:Male

Posted 09 April 2011 - 12:12 PM

Are you saying everyone on shared will now be forced to use 5.3 then?
  • 0

#29 MikeDVB

MikeDVB

    Forum Administrator

  • Staff Administrator
  • PipPipPipPipPip
  • 2,902 posts
  • Gender:Male
  • Location:Central Indiana, USA

Posted 09 April 2011 - 12:20 PM

No, it defaults to 5.2 and you can optionally choose 5.3.
  • 0
Michael Denney - MDDHosting LLC - Providing Hosting since 2007
Scalable shared hosting plans in the cloud! Check them out!
Highly Available Cloud Shared, Reseller, and VPS
http://www.mddhosting.com/

#30 kuemerle5

kuemerle5

    Member

  • Clients
  • PipPip
  • 70 posts
  • Gender:Male

Posted 09 April 2011 - 12:22 PM

*Like*
  • 0

#31 MikeDVB

MikeDVB

    Forum Administrator

  • Staff Administrator
  • PipPipPipPipPip
  • 2,902 posts
  • Gender:Male
  • Location:Central Indiana, USA

Posted 09 April 2011 - 12:23 PM

*Like*

Just documenting the installation steps so that it can be automated and then it will be fully rolled out. I expect no longer than 2 hours. Once this is done I will make a KB article on how to choose 5.3.
  • 0
Michael Denney - MDDHosting LLC - Providing Hosting since 2007
Scalable shared hosting plans in the cloud! Check them out!
Highly Available Cloud Shared, Reseller, and VPS
http://www.mddhosting.com/

#32 TotalZen

TotalZen

    Newbie

  • Clients
  • Pip
  • 21 posts
  • Gender:Male

Posted 09 April 2011 - 12:23 PM

No, it defaults to 5.2 and you can optionally choose 5.3.


Alright, thanks for clarifying :D
  • 0

#33 MikeDVB

MikeDVB

    Forum Administrator

  • Staff Administrator
  • PipPipPipPipPip
  • 2,902 posts
  • Gender:Male
  • Location:Central Indiana, USA

Posted 09 April 2011 - 01:09 PM

No problem.
  • 0
Michael Denney - MDDHosting LLC - Providing Hosting since 2007
Scalable shared hosting plans in the cloud! Check them out!
Highly Available Cloud Shared, Reseller, and VPS
http://www.mddhosting.com/

#34 MikeDVB

MikeDVB

    Forum Administrator

  • Staff Administrator
  • PipPipPipPipPip
  • 2,902 posts
  • Gender:Male
  • Location:Central Indiana, USA

Posted 09 April 2011 - 02:12 PM

Here you go!

http://www.mddhostin...-or-PHP-53.html
  • 0
Michael Denney - MDDHosting LLC - Providing Hosting since 2007
Scalable shared hosting plans in the cloud! Check them out!
Highly Available Cloud Shared, Reseller, and VPS
http://www.mddhosting.com/

#35 Jarkko

Jarkko

    Newbie

  • Clients
  • Pip
  • 11 posts
  • Gender:Male
  • Location:Finland

Posted 09 April 2011 - 11:47 PM

I guess this means for me that "if it isn't broken, don't fix it", my sites are running stable so no need for 5.3, right?
  • 0

#36 MikeDVB

MikeDVB

    Forum Administrator

  • Staff Administrator
  • PipPipPipPipPip
  • 2,902 posts
  • Gender:Male
  • Location:Central Indiana, USA

Posted 09 April 2011 - 11:56 PM

I guess this means for me that "if it isn't broken, don't fix it", my sites are running stable so no need for 5.3, right?

Essentially, yes... PHP 5.3 is faster and more efficient so you may check to see if your scripts are compatible. you could also try the "shotgun" method of simply changing to 5.3 and seeing if anything quits working as it's easy to switch back and forth.
  • 0
Michael Denney - MDDHosting LLC - Providing Hosting since 2007
Scalable shared hosting plans in the cloud! Check them out!
Highly Available Cloud Shared, Reseller, and VPS
http://www.mddhosting.com/

#37 SnakEyez

SnakEyez

    Newbie

  • Members
  • Pip
  • 21 posts

Posted 14 April 2011 - 08:34 PM

Essentially, yes... PHP 5.3 is faster and more efficient so you may check to see if your scripts are compatible. you could also try the "shotgun" method of simply changing to 5.3 and seeing if anything quits working as it's easy to switch back and forth.


Everything seems to have gone smooth on my account with this.

To Jarkko, many of the advantages of the PHP 5.3 are in the coding backend with some new shortcuts, defining constants anywhere, namespaces, etc.. But there are also hosting advantages with better INI support which can now be user or directory specific. I think some of the syntax and setup has changed from how it was handled. I've skimmed over some details but I'm sure Mike knows about these things or is learning with the rest of us.
  • 0

#38 Jarkko

Jarkko

    Newbie

  • Clients
  • Pip
  • 11 posts
  • Gender:Male
  • Location:Finland

Posted 16 April 2011 - 11:10 PM

Thank for the info Mike and Snakeyez. I switched one of the sites to 5.3 via .htaccess but cpanel still shows that it is running PHP 5.2.14..

Edited by Jarkko, 16 April 2011 - 11:10 PM.

  • 0

#39 MikeDVB

MikeDVB

    Forum Administrator

  • Staff Administrator
  • PipPipPipPipPip
  • 2,902 posts
  • Gender:Male
  • Location:Central Indiana, USA

Posted 16 April 2011 - 11:23 PM

Thank for the info Mike and Snakeyez. I switched one of the sites to 5.3 via .htaccess but cpanel still shows that it is running PHP 5.2.14..

Open a ticket, it's not something I can help you with via the forum very easily.
  • 0
Michael Denney - MDDHosting LLC - Providing Hosting since 2007
Scalable shared hosting plans in the cloud! Check them out!
Highly Available Cloud Shared, Reseller, and VPS
http://www.mddhosting.com/

#40 MikeDVB

MikeDVB

    Forum Administrator

  • Staff Administrator
  • PipPipPipPipPip
  • 2,902 posts
  • Gender:Male
  • Location:Central Indiana, USA

Posted 17 April 2011 - 12:30 AM

Open a ticket, it's not something I can help you with via the forum very easily.

Got your ticket and issue fixed :D
  • 0
Michael Denney - MDDHosting LLC - Providing Hosting since 2007
Scalable shared hosting plans in the cloud! Check them out!
Highly Available Cloud Shared, Reseller, and VPS
http://www.mddhosting.com/




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users