PHP 5?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • steve

    PHP 5?

    Hi, I am finally thinking of upgrading code from 4.xx to 5.xxx.

    I think I am a bit ’dated’ with my question, but here we go.

    What are the pitfalls I should look for in this upgrade. Does
    everything run just fine- at least code you have tried? Can you share
    some experiences on this.

    steve

    --
    Posted using the http://www.dbforumz.com interface, at author's request
    Articles individually checked for conformance to usenet standards
    Topic URL: http://www.dbforumz.com/PHP-default-ftopict221422.html
    Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbforumz.com/eform.php?p=761740
  • Peter's Public Mail Buffer

    #2
    Re: PHP 5?

    PHP 5 is at least ten times better than PHP 4. It has a lot of extra
    features that make it more like a true object-oriented language. A
    must-have. It is fully forward-compatible with previous versions, but not
    completely backwards-compatible. This is mainly as a result of the new and
    much improved object model. Some of the things that work in PHP 5 but not
    PHP < 5 are:

    - private/protected member variables/functions in classes
    - variable size arrays in classes
    - default values for function parameters passed by reference
    - various functions, like stripos, str_split, etc. go here for an
    _incomplete_ list: http://www.zend.com/php5/whats-new.php

    Check out http://www.zend.com/php5/index.php for more.

    ECRIA



    Comment

    • Jean-François Lacrampe

      #3
      Re: PHP 5?

      Well, for what it's worth, I began programming in PHP two years ago
      and, at this time, I read up to date manuals and documentation so that
      I didn't use deprecated ways of doing things.

      I've got one or two sites that are getting fairly large and made the
      switch two months ago. It went OK, not a single problem.

      It looks like some scripts that have some legacy instructions in them
      can be buggy. But my own PHP 4.x scripts went smoothly to PHP 5. Give
      it a try on another server if you can.

      JFLac

      Comment

      • steve

        #4
        Re: Re: PHP 5?

        "Peter's Public Mail Buffe" wrote:[color=blue]
        > PHP 5 is at least ten times better than PHP 4. It has a lot of
        > extra
        > features that make it more like a true object-oriented
        > language. A
        > must-have. It is fully forward-compatible with previous
        > versions, but not
        > completely backwards-compatible. This is mainly as a result of
        > the new and
        > much improved object model. Some of the things that work in
        > PHP 5 but not
        > PHP < 5 are:
        >
        > - private/protected member variables/functions in classes
        > - variable size arrays in classes
        > - default values for function parameters passed by reference
        > - various functions, like stripos, str_split, etc. go here for
        > an
        > _incomplete_ list: http://www.zend.com/php5/whats-new.php
        >
        > Check out http://www.zend.com/php5/index.php for more.
        >
        > ECRIA
        > http://www.ecria.com[/color]

        Thank you Jean and Peter. I will have different version environments
        for a while, so it is heartening to think that they could all be
        running without code modifications.

        Peter, impressive list of features from Zend site.

        I will just run my old code on a test server and see how it goes.

        steve

        --
        Posted using the http://www.dbforumz.com interface, at author's request
        Articles individually checked for conformance to usenet standards
        Topic URL: http://www.dbforumz.com/PHP-default-ftopict221422.html
        Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbforumz.com/eform.php?p=761812

        Posted Via Usenet.com Premium Usenet Newsgroup Services
        ----------------------------------------------------------
        ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
        ----------------------------------------------------------
        Best Usenet Service Providers 2025 ranked by Newsgroup Access Newsservers, Usenet Search, Features & Free Trial. Add VPN for privacy.

        Comment

        • Philip  Olson

          #5
          Re: PHP 5?

          When in doubt, read the PHP manual:

          PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world.



          Comment

          • Mladen Gogala

            #6
            Re: PHP 5?

            On Wed, 04 May 2005 19:04:40 -0500, steve wrote:
            [color=blue]
            > What are the pitfalls I should look for in this upgrade. Does
            > everything run just fine- at least code you have tried? Can you share
            > some experiences on this.[/color]

            If you were using OCI driver, it no longer works with PHP5.
            Re-writing this was a pain.

            --
            Egoist: A person of low taste, more interested in themselves than in me.

            Comment

            Working...