Welcome! Log In Create A New Profile

Advanced

[PHP] Php version

Posted by David Mehler 
David Mehler
[PHP] Php version
February 08, 2018 04:10PM
Hello,

I'm doing a server upgrade. It is not mine. I am having several Php
versions to choose from, 5.6, 7.0, and 7.1. I'm wondering which I
should go with and what the major differences are? Also, are there any
module compatibility issues between modules that work in 5.6 to say
7.1?

Thanks.
Dave.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Bastien Koert
Re: [PHP] Php version
February 08, 2018 06:50PM
Hey David,

The thing to check is the usage of any deprecated functions like eregi or mysql_ functions. They will break under php 7 since they’ve been removed.

Thanks,

Bastien

> On Feb 8, 2018, at 10:01 AM, David Mehler <[email protected]> wrote:
>
> Hello,
>
> I'm doing a server upgrade. It is not mine. I am having several Php
> versions to choose from, 5.6, 7.0, and 7.1. I'm wondering which I
> should go with and what the major differences are? Also, are there any
> module compatibility issues between modules that work in 5.6 to say
> 7.1?
>
> Thanks.
> Dave.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Philip
Re: [PHP] Php version
February 08, 2018 09:10PM
Silly Question, But is there a list somewhere of deprecated functions?

On 09/02/2018 06:41, Bastien Koert wrote:
> Hey David,
>
> The thing to check is the usage of any deprecated functions like eregi or mysql_ functions. They will break under php 7 since they’ve been removed.
>
> Thanks,
>
> Bastien
>
>> On Feb 8, 2018, at 10:01 AM, David Mehler <[email protected]> wrote:
>>
>> Hello,
>>
>> I'm doing a server upgrade. It is not mine. I am having several Php
>> versions to choose from, 5.6, 7.0, and 7.1. I'm wondering which I
>> should go with and what the major differences are? Also, are there any
>> module compatibility issues between modules that work in 5.6 to say
>> 7.1?
>>
>> Thanks.
>> Dave.
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Dan McCullough
Re: [PHP] Php version
February 08, 2018 09:20PM
Not a silly question at all.
You can find items here for incompatible and depreciated for migrating from
one version to the next.
http://us1.php.net/manual/en/appendices.php

You could then roll with something like this -- if you can excuse shell
scripts
https://gist.github.com/waja/6552974 -- was for people migrating from 5.3
to 5.4 -- which one of my hosting companies did 2 years ago.


On Thu, Feb 8, 2018 at 2:43 PM, Philip <[email protected]> wrote:

> Silly Question, But is there a list somewhere of deprecated functions?
>
> On 09/02/2018 06:41, Bastien Koert wrote:
>
>> Hey David,
>>
>> The thing to check is the usage of any deprecated functions like eregi or
>> mysql_ functions. They will break under php 7 since they’ve been removed.
>>
>> Thanks,
>>
>> Bastien
>>
>> On Feb 8, 2018, at 10:01 AM, David Mehler <[email protected]> wrote:
>>>
>>> Hello,
>>>
>>> I'm doing a server upgrade. It is not mine. I am having several Php
>>> versions to choose from, 5.6, 7.0, and 7.1. I'm wondering which I
>>> should go with and what the major differences are? Also, are there any
>>> module compatibility issues between modules that work in 5.6 to say
>>> 7.1?
>>>
>>> Thanks.
>>> Dave.
>>>
>>> --
>>> PHP General Mailing List (http://www.php.net/)
>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>>
>>>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


--
Thank you,

Dan
Cell: 484-459-2856
Facebook: http://www.facebook.com/dpmccullough
LinkedIn: https://www.linkedin.com/in/danmccullough

-
John Iliffe
Re: [PHP] Php version
February 11, 2018 03:50PM
On Thursday 08 February 2018 15:15:09 Dan McCullough wrote:
> Not a silly question at all.
> You can find items here for incompatible and depreciated for migrating
> from one version to the next.
> http://us1.php.net/manual/en/appendices.php
>
> You could then roll with something like this -- if you can excuse shell
> scripts
> https://gist.github.com/waja/6552974 -- was for people migrating from
> 5.3 to 5.4 -- which one of my hosting companies did 2 years ago.
>
> On Thu, Feb 8, 2018 at 2:43 PM, Philip <[email protected]> wrote:
> > Silly Question, But is there a list somewhere of deprecated functions?
> >
> > On 09/02/2018 06:41, Bastien Koert wrote:
> >> Hey David,
> >>
> >> The thing to check is the usage of any deprecated functions like
> >> eregi or mysql_ functions. They will break under php 7 since they’ve
> >> been removed.
> >>
> >> Thanks,
> >>
> >> Bastien
> >>
> >> On Feb 8, 2018, at 10:01 AM, David Mehler <[email protected]>
wrote:
> >>> Hello,
> >>>
> >>> I'm doing a server upgrade. It is not mine. I am having several Php
> >>> versions to choose from, 5.6, 7.0, and 7.1. I'm wondering which I
> >>> should go with and what the major differences are? Also, are there
> >>> any module compatibility issues between modules that work in 5.6 to
> >>> say 7.1?
> >>>
> >>> Thanks.
> >>> Dave.
> >>>
> >>> --
> >>> PHP General Mailing List (http://www.php.net/)
> >>> To unsubscribe, visit: http://www.php.net/unsub.php
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
The first part of this post contains a question that doesn't seem to have
been answered: given that there are three active versions of PHP, 5.6,
7.0, and 7.1, what is the difference between them? The documentation
available online doesn't seem to say that one is "better" or "more secure"
or "faster" than any other.

Here, due to problems getting 7.1 under PHP-FPM to run a year ago, I backed
off to 5.6 and I'm wondering whether the pain of trying to "upgrade" again
is worth it.

So, can some knowledgeable person give a succinct definition of why one
would run a specific version? It boggles the mind that there would be that
many versions maintained if there isn't some significant difference between
them.

John

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Christoph M. Becker
Re: [PHP] Php version
February 11, 2018 06:20PM
On 11.02.2018 at 15:53, John Iliffe wrote:

> So, can some knowledgeable person give a succinct definition of why one
> would run a specific version? It boggles the mind that there would be that
> many versions maintained if there isn't some significant difference between
> them.

Versions which have reached GA (i.e. PHP x.y.0) usually receive only
bugfixes. New features and internal improvements are typically only
committed to pre GA releases, so each new major or minor PHP version
brings enhancements (see the migration guides in the appendix of the PHP
manual[1] for details), while new revisions have only bugfixes.

Normally, you'll want to run the latest stable PHP version, unless you
have reasons not to, for instance, because your distro/provider does not
yet support it, your codebase is not yet compatible, or you're hitting a
bug (in which case you should report it at https://bugs.php.net/).

[1] http://www.php.net/manual/en/appendices.php

--
Christoph M. Becker

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
John Iliffe
Re: [PHP] Php version
February 11, 2018 06:40PM
On Sunday 11 February 2018 12:12:29 Christoph M. Becker wrote:
> On 11.02.2018 at 15:53, John Iliffe wrote:
> > So, can some knowledgeable person give a succinct definition of why
> > one would run a specific version? It boggles the mind that there
> > would be that many versions maintained if there isn't some
> > significant difference between them.
>
> Versions which have reached GA (i.e. PHP x.y.0) usually receive only
> bugfixes. New features and internal improvements are typically only
> committed to pre GA releases, so each new major or minor PHP version
> brings enhancements (see the migration guides in the appendix of the PHP
> manual[1] for details), while new revisions have only bugfixes.
>
> Normally, you'll want to run the latest stable PHP version, unless you
> have reasons not to, for instance, because your distro/provider does not
> yet support it, your codebase is not yet compatible, or you're hitting a
> bug (in which case you should report it at https://bugs.php.net/).
>
> [1] http://www.php.net/manual/en/appendices.php
Thanks. That explains it well. Obviously I should move to PHP 7.1 as soon
as possible, after full testing of course.

John

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sorry, only registered users may post in this forum.

Click here to login