Upgrade to PHP5 (beta)

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default Upgrade to PHP5 (beta)

    Hallo!

    I was wondering if my PHP4-Scripts will run under PHP5 (Haeven't tried the
    beta yet).
    Does anybody know?

    Thank you,
    -Christoph


    Christoph Nothdurfter Guest

  2. Similar Questions and Discussions

    1. Upgrade to PHP5
      Well Spiritdomains has upgraded there server to only allow PHP5, and i am using DreamWeaver 8 which i cant seem to figure out where i can change...
    2. Uninstalling Flex 2.0 Beta 1 (for upgrade to Beta 2)
      Hello all, Here it says to simply use the Add/Remove programs to uninstall the Beta 1 pieces:...
    3. #24416 [Com]: Apache2 won't start with PHP5 beta
      ID: 24416 Comment by: levi at levifig dot net Reported By: ldf13 at hotmail dot com Status: Bogus Bug Type: ...
    4. Can you upgrade using a previous version upgrade disk?
      When upgrading to PS 7, can I use the previous version 5 upgrade media for product verification or do I need the original full version disk - which,...
    5. [PHP-DEV] PHP5 - Beta 2
      i know the standard answer ("when it's ready") but the last set of discussions on the issue indicated that Zeev and Andi wanted to push it out the...
  3. #2

    Default Upgrade to PHP5 (beta)

    Hallo!

    I was wondering if my PHP4-Scripts will run under PHP5 (Haeven't tried the
    beta yet).
    Does anybody know?

    Thank you,
    -Christoph


    Christoph Nothdurfter Guest

  4. #3

    Default Re: Upgrade to PHP5 (beta)

    > "Will PHP 5 break backwards compatibility?"
    > "No, the main functionality will stay the same, but since PHP 5
    > adds many more object-oriented features and tools,
    > it will cause some of the older scripts using PHP 4.x to break."
    For more information look at
    > "http://www.zend.com/php/ask_experts.php"
    Peter



    "MeerKat" <liquidlaughter2000@blueyonder.co.uk> schrieb im Newsbeitrag
    news:UMEPa.949$uO5.728@news-binary.blueyonder.co.uk...
    > > I was wondering if my PHP4-Scripts will run under PHP5
    > > (Haeven't tried the beta yet).
    >
    > Yes. PHP is always very good at backward compatibility and there
    > *should* be no reason why they wouldn't work.
    >
    > MK.
    >
    > --
    > MeerKat
    >

    Peter Matheis Guest

  5. #4

    Default Re: Upgrade to PHP5 (beta)

    > "Will PHP 5 break backwards compatibility?"
    > "No, the main functionality will stay the same, but since PHP 5
    > adds many more object-oriented features and tools,
    > it will cause some of the older scripts using PHP 4.x to break."
    For more information look at
    > "http://www.zend.com/php/ask_experts.php"
    Peter



    "MeerKat" <liquidlaughter2000@blueyonder.co.uk> schrieb im Newsbeitrag
    news:UMEPa.949$uO5.728@news-binary.blueyonder.co.uk...
    > > I was wondering if my PHP4-Scripts will run under PHP5
    > > (Haeven't tried the beta yet).
    >
    > Yes. PHP is always very good at backward compatibility and there
    > *should* be no reason why they wouldn't work.
    >
    > MK.
    >
    > --
    > MeerKat
    >

    Peter Matheis Guest

  6. #5

    Default Re: Upgrade to PHP5 (beta)



    Agelmar wrote:
    > MeerKat wrote:
    >
    >>>I was wondering if my PHP4-Scripts will run under PHP5
    >>
    >> > (Haeven't tried the beta yet).
    >>
    >>Yes. PHP is always very good at backward compatibility and there
    >>*should* be no reason why they wouldn't work.
    >>
    >>MK.
    >
    >
    > I don't know that I'd quite go that far.... PHP is *usually* good at
    > backwards compatability. I can't even guess how much money I made fixing
    > scripts for companies when their IT-guys rolled out PHP 4.2.0, and that
    > wasn't even such a big thing.
    >
    > Anyone remember anymore the change in if..endif syntax from PHP 2 to PHP 3?
    > that broke a lot...
    >
    > PHP3 also used a new method to determine the type of a result... that caused
    > odd quirks...
    >
    > And going from PHP3 to PHP4, man, I can't even remember how long it took me
    > to track down errors caused by empty("0") == true... same with $var = "",
    > isset($var) == true...
    >
    > So while I would say that php is usually good about backwards compatability,
    > I would certainly not say always. Download PHP5, test it out (I checked out
    > a build from CVS back in April, and have been testing since then...), and
    > test out ALL your scripts THOROUGHLY. Make sure you have tested everything
    > with php5 for a while before moving into production with php5 when it comes
    > out. Personally, I will probably wait until 5.0.2 to roll out on my
    > production server.
    Testing is mandatory...
    >
    > (As for things that will break PHP5 - I'm trying to think... the MySQL libs
    > are no longer included, this might cause problems for people who dont read
    > readmes :-) Other than that, I'll sit back on the sidelines and watch for a
    > while before jumping on the production bandwagon ^-^
    MySQL problem should be solved by then, and the mysqli lib is worth the
    move.
    >
    > // Ian Fette
    > // Proponent comp.lang.php
    >
    >
    The only thing that will really break the scripts is if your script
    required the implicit object copy. It's quite easy to fix using
    __clone() tought.

    Other than the way objects are handled, there are not that many
    differences between PHP4 and 5, even if that change makes an entire new
    language.

    Louis-Philippe Huberdeau Guest

  7. #6

    Default Re: Upgrade to PHP5 (beta)



    Agelmar wrote:
    > MeerKat wrote:
    >
    >>>I was wondering if my PHP4-Scripts will run under PHP5
    >>
    >> > (Haeven't tried the beta yet).
    >>
    >>Yes. PHP is always very good at backward compatibility and there
    >>*should* be no reason why they wouldn't work.
    >>
    >>MK.
    >
    >
    > I don't know that I'd quite go that far.... PHP is *usually* good at
    > backwards compatability. I can't even guess how much money I made fixing
    > scripts for companies when their IT-guys rolled out PHP 4.2.0, and that
    > wasn't even such a big thing.
    >
    > Anyone remember anymore the change in if..endif syntax from PHP 2 to PHP 3?
    > that broke a lot...
    >
    > PHP3 also used a new method to determine the type of a result... that caused
    > odd quirks...
    >
    > And going from PHP3 to PHP4, man, I can't even remember how long it took me
    > to track down errors caused by empty("0") == true... same with $var = "",
    > isset($var) == true...
    >
    > So while I would say that php is usually good about backwards compatability,
    > I would certainly not say always. Download PHP5, test it out (I checked out
    > a build from CVS back in April, and have been testing since then...), and
    > test out ALL your scripts THOROUGHLY. Make sure you have tested everything
    > with php5 for a while before moving into production with php5 when it comes
    > out. Personally, I will probably wait until 5.0.2 to roll out on my
    > production server.
    Testing is mandatory...
    >
    > (As for things that will break PHP5 - I'm trying to think... the MySQL libs
    > are no longer included, this might cause problems for people who dont read
    > readmes :-) Other than that, I'll sit back on the sidelines and watch for a
    > while before jumping on the production bandwagon ^-^
    MySQL problem should be solved by then, and the mysqli lib is worth the
    move.
    >
    > // Ian Fette
    > // Proponent comp.lang.php
    >
    >
    The only thing that will really break the scripts is if your script
    required the implicit object copy. It's quite easy to fix using
    __clone() tought.

    Other than the way objects are handled, there are not that many
    differences between PHP4 and 5, even if that change makes an entire new
    language.

    Louis-Philippe Huberdeau Guest

  8. #7

    Default Re: Upgrade to PHP5 (beta)

    Louis-Philippe Huberdeau wrote:
    > MySQL problem should be solved by then, and the mysqli lib is worth
    > the
    > move.
    mysqli is interesting, but requires MySQL >= 4.1.x. Most servers that I've
    worked on lately are running 3.23.57 - I think the jump to 4 is a big change
    for many sysadmins, and I don't forsee mysql4 taking over on most
    development systems until at least 2004. Of those systems that I have worked
    on that *are* running MySQL 4.x, they have been almost exclusively MySQL
    4.0.x, usually 4.0.11. Currently, the production release is 4.0.13, an 4.1.0
    is listed as alpha. I have yet to see a production server that I've been
    hired to develop for run 4.1.x. So while I am a bit intrigued by mysqli, I
    do not hold out a hope that it will solve the problems of removing the
    bundled mysql lib. Hopefully they work something out, but I don't think
    mysqli is the answer.

    As for SQLite - this is an interesting development, however given that it's
    currently primarily PHP 5.0.0 only, I don't forsee implementing it in my
    work any time soon, especially given that it does not support ALTER TABLE. I
    use ALTER TABLE frequently - for example, I just did a program for a client
    that, among other things, tracked objectives and whether a certain item met
    certain objectives. I have one table that contains the itemID and then a
    field for each objective - when I the client adds objectives, this table is
    ALTERed. So unless SQLite implements ALTER TABLE, I think I would only use
    it in a very limited fashion.
    >> // Ian Fette
    >> // Proponent comp.lang.php
    >>
    >>
    >
    > The only thing that will really break the scripts is if your script
    > required the implicit object copy. It's quite easy to fix using
    > __clone() tought.
    >
    > Other than the way objects are handled, there are not that many
    > differences between PHP4 and 5, even if that change makes an entire
    > new language.
    I seem to recall that they were proposing eliminating indexing into a string
    via $somestring[$index], going for instead $somestring{$index} or something
    of that nature. Do you recall if that was implemented?

    // Ian


    Agelmar Guest

  9. #8

    Default Re: Upgrade to PHP5 (beta)

    Louis-Philippe Huberdeau wrote:
    > MySQL problem should be solved by then, and the mysqli lib is worth
    > the
    > move.
    mysqli is interesting, but requires MySQL >= 4.1.x. Most servers that I've
    worked on lately are running 3.23.57 - I think the jump to 4 is a big change
    for many sysadmins, and I don't forsee mysql4 taking over on most
    development systems until at least 2004. Of those systems that I have worked
    on that *are* running MySQL 4.x, they have been almost exclusively MySQL
    4.0.x, usually 4.0.11. Currently, the production release is 4.0.13, an 4.1.0
    is listed as alpha. I have yet to see a production server that I've been
    hired to develop for run 4.1.x. So while I am a bit intrigued by mysqli, I
    do not hold out a hope that it will solve the problems of removing the
    bundled mysql lib. Hopefully they work something out, but I don't think
    mysqli is the answer.

    As for SQLite - this is an interesting development, however given that it's
    currently primarily PHP 5.0.0 only, I don't forsee implementing it in my
    work any time soon, especially given that it does not support ALTER TABLE. I
    use ALTER TABLE frequently - for example, I just did a program for a client
    that, among other things, tracked objectives and whether a certain item met
    certain objectives. I have one table that contains the itemID and then a
    field for each objective - when I the client adds objectives, this table is
    ALTERed. So unless SQLite implements ALTER TABLE, I think I would only use
    it in a very limited fashion.
    >> // Ian Fette
    >> // Proponent comp.lang.php
    >>
    >>
    >
    > The only thing that will really break the scripts is if your script
    > required the implicit object copy. It's quite easy to fix using
    > __clone() tought.
    >
    > Other than the way objects are handled, there are not that many
    > differences between PHP4 and 5, even if that change makes an entire
    > new language.
    I seem to recall that they were proposing eliminating indexing into a string
    via $somestring[$index], going for instead $somestring{$index} or something
    of that nature. Do you recall if that was implemented?

    // Ian


    Agelmar Guest

  10. #9

    Default Re: Upgrade to PHP5 (beta)

    "Keith Maika" <slick@aoeex.com> wrote in message
    news:vh11pgc5evdf0d@corp.supernews.com...
    > Agelmar wrote:
    > > Louis-Philippe Huberdeau wrote:
    > >
    > ...
    > >
    > > I seem to recall that they were proposing eliminating indexing into a
    string
    > > via $somestring[$index], going for instead $somestring{$index} or
    something
    > > of that nature. Do you recall if that was implemented?
    > >
    > > // Ian
    > >
    > >
    >
    > That has been done for a long time. Maybe they are finally going to
    > remove support for $something[$index] but it's been in the manual for
    > quite some time that they do not want you do use that syntax, and rather
    > $something{$index} should be used.
    Hmm... personally, I much prefer $something[$index] as it's closer to C, and
    just feels more natural :-) No idea why they changed it $string{$index}
    just feels like a concatenation of $string and $index... I mean come on,
    you're indexing into the string, why drop the array subscripting? gah...



    Agelmar Guest

  11. #10

    Default Re: Upgrade to PHP5 (beta)

    "Keith Maika" <slick@aoeex.com> wrote in message
    news:vh11pgc5evdf0d@corp.supernews.com...
    > Agelmar wrote:
    > > Louis-Philippe Huberdeau wrote:
    > >
    > ...
    > >
    > > I seem to recall that they were proposing eliminating indexing into a
    string
    > > via $somestring[$index], going for instead $somestring{$index} or
    something
    > > of that nature. Do you recall if that was implemented?
    > >
    > > // Ian
    > >
    > >
    >
    > That has been done for a long time. Maybe they are finally going to
    > remove support for $something[$index] but it's been in the manual for
    > quite some time that they do not want you do use that syntax, and rather
    > $something{$index} should be used.
    Hmm... personally, I much prefer $something[$index] as it's closer to C, and
    just feels more natural :-) No idea why they changed it $string{$index}
    just feels like a concatenation of $string and $index... I mean come on,
    you're indexing into the string, why drop the array subscripting? gah...



    Agelmar Guest

  12. #11

    Default Re: Upgrade to PHP5 (beta)

    Honestly, I never heard of that modification and have been following the
    development for quite a while... and my square brackets still work just
    fine.

    Don't worry about that, chances they modify that part are very low. They
    don't want to remove case insensitivity because it would cause
    incompatibility issues, I can't even think of the disaster it would make
    if they would change the array element symbol. It's about the most used
    syntax of the entire language... except maybe the PHP tags.

    Agelmar wrote:
    > "Keith Maika" <slick@aoeex.com> wrote in message
    > news:vh11pgc5evdf0d@corp.supernews.com...
    >
    >>Agelmar wrote:
    >>
    >>>Louis-Philippe Huberdeau wrote:
    >>>
    >>
    >>...
    >>
    >>>I seem to recall that they were proposing eliminating indexing into a
    >
    > string
    >
    >>>via $somestring[$index], going for instead $somestring{$index} or
    >
    > something
    >
    >>>of that nature. Do you recall if that was implemented?
    >>>
    >>>// Ian
    >>>
    >>>
    >>
    >>That has been done for a long time. Maybe they are finally going to
    >>remove support for $something[$index] but it's been in the manual for
    >>quite some time that they do not want you do use that syntax, and rather
    >>$something{$index} should be used.
    >
    >
    > Hmm... personally, I much prefer $something[$index] as it's closer to C, and
    > just feels more natural :-) No idea why they changed it $string{$index}
    > just feels like a concatenation of $string and $index... I mean come on,
    > you're indexing into the string, why drop the array subscripting? gah...
    >
    >
    >
    Louis-Philippe Huberdeau Guest

  13. #12

    Default Re: Upgrade to PHP5 (beta)

    Honestly, I never heard of that modification and have been following the
    development for quite a while... and my square brackets still work just
    fine.

    Don't worry about that, chances they modify that part are very low. They
    don't want to remove case insensitivity because it would cause
    incompatibility issues, I can't even think of the disaster it would make
    if they would change the array element symbol. It's about the most used
    syntax of the entire language... except maybe the PHP tags.

    Agelmar wrote:
    > "Keith Maika" <slick@aoeex.com> wrote in message
    > news:vh11pgc5evdf0d@corp.supernews.com...
    >
    >>Agelmar wrote:
    >>
    >>>Louis-Philippe Huberdeau wrote:
    >>>
    >>
    >>...
    >>
    >>>I seem to recall that they were proposing eliminating indexing into a
    >
    > string
    >
    >>>via $somestring[$index], going for instead $somestring{$index} or
    >
    > something
    >
    >>>of that nature. Do you recall if that was implemented?
    >>>
    >>>// Ian
    >>>
    >>>
    >>
    >>That has been done for a long time. Maybe they are finally going to
    >>remove support for $something[$index] but it's been in the manual for
    >>quite some time that they do not want you do use that syntax, and rather
    >>$something{$index} should be used.
    >
    >
    > Hmm... personally, I much prefer $something[$index] as it's closer to C, and
    > just feels more natural :-) No idea why they changed it $string{$index}
    > just feels like a concatenation of $string and $index... I mean come on,
    > you're indexing into the string, why drop the array subscripting? gah...
    >
    >
    >
    Louis-Philippe Huberdeau Guest

  14. #13

    Default Re: Upgrade to PHP5 (beta)

    Louis-Philippe Huberdeau wrote:
    > Honestly, I never heard of that modification and have been following
    > the development for quite a while... and my square brackets still
    > work just
    > fine.
    >
    > Don't worry about that, chances they modify that part are very low.
    > They don't want to remove case insensitivity because it would cause
    > incompatibility issues, I can't even think of the disaster it would
    > make
    > if they would change the array element symbol. It's about the most
    > used syntax of the entire language... except maybe the PHP tags.
    Not for indexing into arrays, only when indexing into a string as an array
    to grab the ith character. [] remains the array index operator, but {} is
    supposed to be used for strings.

    wierd :(


    Agelmar Guest

  15. #14

    Default Re: Upgrade to PHP5 (beta)

    Louis-Philippe Huberdeau wrote:
    > Honestly, I never heard of that modification and have been following
    > the development for quite a while... and my square brackets still
    > work just
    > fine.
    >
    > Don't worry about that, chances they modify that part are very low.
    > They don't want to remove case insensitivity because it would cause
    > incompatibility issues, I can't even think of the disaster it would
    > make
    > if they would change the array element symbol. It's about the most
    > used syntax of the entire language... except maybe the PHP tags.
    Not for indexing into arrays, only when indexing into a string as an array
    to grab the ith character. [] remains the array index operator, but {} is
    supposed to be used for strings.

    wierd :(


    Agelmar Guest

  16. #15

    Default Re: Upgrade to PHP5 (beta)

    Louis-Philippe Huberdeau wrote:
    > MySQL4.1 is still in development, and so is PHP5. Moving from MySQL3.x
    > to 4.x will not be that much of a major change since everything that
    > used to work still work. I run a dev version of php5 (pre-beta, didn't
    > have time to upgrade) and mysql4.1 alpha on my test server and the
    > standard mysql lib connects just fine with the MySQL server. Scripts
    > won't suffer from that change.
    >
    > SQLLite will sure be a major part of PHP from now on. PHP developpers
    > wanted to seperate PHP and MySQL for a while since PHP can do a lot
    > more
    > and most seemed to forget it. MySQL is powerful but it's not the only
    > solution. PHP/MySQL is NOT a platform.
    >
    > As for your alter table problem, you might want to review your basic
    > data architecture and use a relational table instead. You shouldn't
    > need
    > to modify a table structure that way all the time.
    The tables are altered only when a new objective is added, which is very
    rare. I would estimate it would happen perhaps once every three months at
    the most. There are a list of objectives which are already defined from the
    getgo, and these are quite comprehensive. The ability to modify this list is
    provided simply for completeness, I doubt that it would be used very often.
    relational tables seemed like overkill...


    Agelmar Guest

  17. #16

    Default Re: Upgrade to PHP5 (beta)

    Louis-Philippe Huberdeau wrote:
    > MySQL4.1 is still in development, and so is PHP5. Moving from MySQL3.x
    > to 4.x will not be that much of a major change since everything that
    > used to work still work. I run a dev version of php5 (pre-beta, didn't
    > have time to upgrade) and mysql4.1 alpha on my test server and the
    > standard mysql lib connects just fine with the MySQL server. Scripts
    > won't suffer from that change.
    >
    > SQLLite will sure be a major part of PHP from now on. PHP developpers
    > wanted to seperate PHP and MySQL for a while since PHP can do a lot
    > more
    > and most seemed to forget it. MySQL is powerful but it's not the only
    > solution. PHP/MySQL is NOT a platform.
    >
    > As for your alter table problem, you might want to review your basic
    > data architecture and use a relational table instead. You shouldn't
    > need
    > to modify a table structure that way all the time.
    The tables are altered only when a new objective is added, which is very
    rare. I would estimate it would happen perhaps once every three months at
    the most. There are a list of objectives which are already defined from the
    getgo, and these are quite comprehensive. The ability to modify this list is
    provided simply for completeness, I doubt that it would be used very often.
    relational tables seemed like overkill...


    Agelmar Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139