migrating to PHP5

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

    migrating to PHP5

    I'm planning on installing the PHP5 RC1 on my local machine as a testing
    server. Are there any particulars I should be aware of for all my
    PHP4-developed applications to keep working? Or should the transition go
    smoothly..?

    ..soma


  • Savut

    #2
    Re: migrating to PHP5

    unless you use new PHP5 feature, all build-in function are the same.

    Just a remark, domxml is not include in PHP5 as It was in PHP4 (for windows
    users). Just download and install it if you need domxml as most people use
    it for XML parsing. But now PHP5 use libxml which is as far as I see better
    than domxml, but you had to rewrite all the code :D, but I did it and the
    code is more clean .

    Another point is mysql is not enabled by default, and the new function
    file_put_conten t is somewhat whack but still save some line and useful for
    fast coding.

    Savut

    "somaBoy MX" <none@nonesuch. net> wrote in message
    news:4062eca4$0 $1968$ba620e4c@ news.skynet.be. ..[color=blue]
    > I'm planning on installing the PHP5 RC1 on my local machine as a testing
    > server. Are there any particulars I should be aware of for all my
    > PHP4-developed applications to keep working? Or should the transition go
    > smoothly..?
    >
    > .soma
    >
    >[/color]

    Comment

    • Ruby Tuesdays

      #3
      Re: migrating to PHP5

      How do you enable MySQL modules for PHP for Win32 platform? I tried to use
      it by setting it up in extension e.g:

      ....
      extension=php_m ysql.dll
      extension=php_m ysqli.dll
      ....

      Both gave me errors so I disable it by commenting it. Help. Thanks


      Comment

      • Thierry B.

        #4
        Re: migrating to PHP5

        I believe you shoud not enable both extension at the same time ...

        TB
        --
        Click below to answer / cliquez ci dessous pour me repondre


        "Ruby Tuesdays" <NoSpamPlease_r ubytuzdaiz@yaho o.com> a écrit dans le message
        de news:c3v9dd$2ck eud$1@ID-205437.news.uni-berlin.de...[color=blue]
        > How do you enable MySQL modules for PHP for Win32 platform? I tried to use
        > it by setting it up in extension e.g:
        >
        > ...
        > extension=php_m ysql.dll
        > extension=php_m ysqli.dll
        > ...
        >
        > Both gave me errors so I disable it by commenting it. Help. Thanks
        >
        >[/color]

        Comment

        • somaBoy MX

          #5
          Re: migrating to PHP5

          "Savut" <webki@hotmail. com> wrote...
          [color=blue]
          > Just a remark, domxml is not include in PHP5 as It was in PHP4 (for[/color]
          windows[color=blue]
          > users). Just download and install it if you need domxml as most people use
          > it for XML parsing. But now PHP5 use libxml which is as far as I see[/color]
          better[color=blue]
          > than domxml, but you had to rewrite all the code :D, but I did it and the
          > code is more clean .[/color]

          Very well... the move should be quite painless then. I have avoided using
          PHP for xml parsing because these changes had been announced a long time
          ago, now I can dive straight in.
          [color=blue]
          > Another point is mysql is not enabled by default, and the new function
          > file_put_conten t is somewhat whack but still save some line and useful for
          > fast coding.[/color]

          It does look useful.

          What about the new object model? Will my old classes still work?


          ..soma


          Comment

          • Thierry B.

            #6
            Re: migrating to PHP5

            You will get 'stric_warning' for declaring variables as var $sthing instead
            of public/private/protected $sthing, but these warnings are not enabled by
            default. Hopefully classes are BC, I think we will have to wait PHP6 before
            writing fully PHP5 compliant classes, as they will not work with PHP4, but
            at this time we will drop PHP4 support (?).

            TB
            --
            Click below to answer / cliquez ci dessous pour me repondre

            "somaBoy MX" <none@nonesuch. net> a écrit dans le message de
            news:40642666$0 $2055$ba620e4c@ news.skynet.be. ..
            [color=blue]
            >
            > What about the new object model? Will my old classes still work?
            >
            >
            > .soma
            >
            >[/color]

            Comment

            Working...