Page 1 of 3 1 23 LastLast
Results 1 to 10 of 23

Thread: Upgrade the servers to PHP 5.3

   
  1. #1
    Easen is offline Member
    Join Date
    Aug 2004
    Age
    26
    Posts
    46

    Default Upgrade the servers to PHP 5.3

    Hello there,

    My suggestion is to upgrade PHP on the servers to 5.3.

    Lately I have been doing some local developing in 5.3, it seems to be a great improvement on 5.2.x as it includes the concepts of namespaces, closures, late static binding (PHP: New features - Manual).... which is something I have been waiting for in PHP for some time. It's just a shame I can't use any of the code I have written on my web server.

    I understand that there are a few deprecated features in 5.3 (PHP: Backward Incompatible Changes - Manual), but it's not as dramatic as moving from PHP 4 to 5.

    What does everyone else think about this?

    Thanks.

  2. #2
    hobwebs's Avatar
    hobwebs is offline Moderator
    Join Date
    Apr 2005
    Location
    Sittingbourne Kent
    Age
    43
    Posts
    1,141

  3. #3
    Terryphi's Avatar
    Terryphi is offline Senior Member
    Join Date
    Mar 2007
    Location
    West Wales
    Posts
    327
    Blog Entries
    1

    Default

    Could this be a problem:

    (Quote from Backward Incompatible Changes)

    The new mysqlnd library necessitates the use of MySQL 4.1's newer 41-byte password format. Continued use of the old 16-byte passwords will cause mysql_connect() and similar functions to emit the error, "mysqlnd cannot connect to MySQL 4.1+ using old authentication."

    What password format are we currently using?
    Old school desktop forever!

  4. #4
    Drew's Avatar
    Drew is offline Administrator
    Join Date
    Nov 2005
    Age
    33
    Posts
    888

    Default

    ohhh it breaks LOADS of stuff !

  5. #5
    Colin's Avatar
    Colin is offline Admin
    Join Date
    Nov 2005
    Location
    Chapelhall, Ardrie
    Age
    49
    Posts
    7,697
    Blog Entries
    5

    Default

    We can't upgrade it as it causes a hell of a lot of problems on our test server. It stopped wordpress from working for a start. Any program that uses eregi() would have to be patched or you will get Function eregi() is deprecated

    So no upgrades

  6. #6
    Mike's Avatar
    Mike is offline Moderator
    Join Date
    Apr 2004
    Age
    26
    Posts
    2,954

    Default

    I'm all for new features, but why do they have to keep breaking things?



  7. #7
    jabb0's Avatar
    jabb0 is offline Senior Member
    Join Date
    Nov 2005
    Age
    30
    Posts
    539

    Default

    I think it would be cool if we could do it the way it was done a while back where you could specify the php version to use depending on the file extension of your script. i.e. all .php (eg index.php) files run that current version and any php5 (ie index.php5) runs the new version. (i am not even certain this was available here, but i seen it done somewhere)

    Alas i do not pretend to know anything about anything when it come to server/network configuration, so be gentle!

    I would easily kill someone if i could use that to negotiate using php 5.3 here tho. :cool:
    1 by 1 penguins steal my sanity!!!

  8. #8
    Easen is offline Member
    Join Date
    Aug 2004
    Age
    26
    Posts
    46

    Default

    Thanks for all your comments!

    Colin, I didn't realise that it would break a Wordpress, I guess it may also break alot of other off-the-shelf software packages. I never thought of this as I primerely build my own CMS/PHP Framework.

    It would be nice to have PHP 5.3 running along side PHP 5.2, the only way I can see this happening to implement what jabb0 has described. Have Apache run *.php5 files under PHP 5.3. Personally I don't see this as a practical method to get PHP 5.3 running on the servers, as I see this method as staging technique - to allow people to test their code against PHP 5.3.

    I guess I am going to have stick with PHP 5.2.x until it's not actively developed/supported, thus forcing everyone to upgrade to PHP 5.3.

  9. #9
    Mike's Avatar
    Mike is offline Moderator
    Join Date
    Apr 2004
    Age
    26
    Posts
    2,954

    Default

    I don't see Java having ridiculous compatibility issues such as these.

    How about some JSP/Servlet hosting, Colin?



  10. #10
    Easen is offline Member
    Join Date
    Aug 2004
    Age
    26
    Posts
    46

    Default

    I don't think these are ridiculous compatibility issues, if you go through them all they seem to be reasonable. For example, the fact that MySQL's 16 byte password format is removed is because it's insecure compared to the new 41 byte password format.

    The deprecation of 'ereg', 'split', session_register', etc. functions is just the PHP developers cleaning up duplicated code and ensuring everything behind the scenes is categorised by 'extension'/'feature', to make it easier to maintain in the future.

    This is similar to Python 3.0 - a complete re-write of Python 2.x to remove any unmodular code and to replace it something more OO. This is to ensure it's maintainable for the future.

    Just to clear things up, Java doesn't really have these problems as it's hardly ever upgraded , plus who wants to code in Java :p

    Originally Posted by Mike:
    I don't see Java having ridiculous compatibility issues such as these.

    How about some JSP/Servlet hosting, Colin?

Page 1 of 3 1 23 LastLast

Similar Threads

  1. Windows 7 - No EU Upgrade
    By Malcolm in forum Computers
    Replies: 16
    Last Post: 15-07-2009, 09:55 PM
  2. OS X $29 Upgrade
    By Malcolm in forum Computers
    Replies: 6
    Last Post: 07-07-2009, 11:34 AM
  3. More PHP problems since upgrade :(
    By hobwebs in forum PHP & MYSQL Support
    Replies: 32
    Last Post: 21-09-2008, 07:28 PM
  4. Upgrade Kernels on all main servers
    By Colin in forum Emergency Downtime
    Replies: 6
    Last Post: 08-02-2005, 11:04 AM
  5. phpBB2 upgrade to 11
    By Nik in forum cPanel & Fantastico Support
    Replies: 6
    Last Post: 24-12-2004, 11:01 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •