Discussion:
php 5.5.0 is out........
Daniel
2013-06-21 23:24:14 UTC
Permalink
Hello all,

In case everyone been under a php rock, there is a new version of php:
5.5.0 and I can see a serious issue cropping up, the support for mysql
has been dropped and one will need to use PDO_mysql or mysqli.

Does anyone know when WordPress will be supporting mysqli?

Regards,
Daniel Fenn
Ian Dunn
2013-06-21 23:28:51 UTC
Permalink
Should be 3.7 (~4 months) or 3.8 (~8 months).

http://core.trac.wordpress.org/ticket/21663
Post by Daniel
Hello all,
5.5.0 and I can see a serious issue cropping up, the support for mysql
has been dropped and one will need to use PDO_mysql or mysqli.
Does anyone know when WordPress will be supporting mysqli?
Regards,
Daniel Fenn
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
Drew
2013-06-21 23:28:41 UTC
Permalink
There have been some discussions on trac, to be sure. Seems like PDO has
the most traction: http://core.trac.wordpress.org/ticket/21663
Post by Daniel
Hello all,
5.5.0 and I can see a serious issue cropping up, the support for mysql
has been dropped and one will need to use PDO_mysql or mysqli.
Does anyone know when WordPress will be supporting mysqli?
Regards,
Daniel Fenn
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
--
-- I've kinda got a thing for WordPress > http://www.drewapicture.com
Dion Hulse (dd32)
2013-06-21 23:47:51 UTC
Permalink
And just to set any fears aside, the mysql extension still works in php
5.5, it's just deprecated, just like core deprecates things in favor of a
new api's all the time.

So for now, if you move to php 5.5, just make sure you enable the
extension, since some distro's may not enable it by default.
Post by Daniel
Hello all,
5.5.0 and I can see a serious issue cropping up, the support for mysql
has been dropped and one will need to use PDO_mysql or mysqli.
Does anyone know when WordPress will be supporting mysqli?
Regards,
Daniel Fenn
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
Daniel
2013-06-21 23:50:15 UTC
Permalink
Hi everyone,

Thank-you for letting me know that there is already work done to solve
this issue, and thank-you Dion for pointing out that it mysql will
still work under 5.5.0 :).

Regards,
Daniel Fenn
Post by Dion Hulse (dd32)
And just to set any fears aside, the mysql extension still works in php
5.5, it's just deprecated, just like core deprecates things in favor of a
new api's all the time.
So for now, if you move to php 5.5, just make sure you enable the
extension, since some distro's may not enable it by default.
Post by Daniel
Hello all,
5.5.0 and I can see a serious issue cropping up, the support for mysql
has been dropped and one will need to use PDO_mysql or mysqli.
Does anyone know when WordPress will be supporting mysqli?
Regards,
Daniel Fenn
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
DJ Sylvester
2013-06-22 00:50:48 UTC
Permalink
I don't think there will be a big jump to 5.5 for plugin/theme
development as 5.2 is still the predominate version used with WordPress
installs. I'm still waiting (hoping) for the day 5.3 becomes the minimal
requirement (namespaces and closures anyone).

DJ
Post by Daniel
Hi everyone,
Thank-you for letting me know that there is already work done to solve
this issue, and thank-you Dion for pointing out that it mysql will
still work under 5.5.0 :).
Regards,
Daniel Fenn
Post by Dion Hulse (dd32)
And just to set any fears aside, the mysql extension still works in php
5.5, it's just deprecated, just like core deprecates things in favor of a
new api's all the time.
So for now, if you move to php 5.5, just make sure you enable the
extension, since some distro's may not enable it by default.
Post by Daniel
Hello all,
5.5.0 and I can see a serious issue cropping up, the support for mysql
has been dropped and one will need to use PDO_mysql or mysqli.
Does anyone know when WordPress will be supporting mysqli?
Regards,
Daniel Fenn
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
Daniel
2013-06-22 00:55:52 UTC
Permalink
I don't understand why people are still on php 5.2.
I don't think there will be a big jump to 5.5 for plugin/theme development
as 5.2 is still the predominate version used with WordPress installs. I'm
still waiting (hoping) for the day 5.3 becomes the minimal requirement
(namespaces and closures anyone).
DJ
Post by Daniel
Hi everyone,
Thank-you for letting me know that there is already work done to solve
this issue, and thank-you Dion for pointing out that it mysql will
still work under 5.5.0 :).
Regards,
Daniel Fenn
Post by Dion Hulse (dd32)
And just to set any fears aside, the mysql extension still works in php
5.5, it's just deprecated, just like core deprecates things in favor of a
new api's all the time.
So for now, if you move to php 5.5, just make sure you enable the
extension, since some distro's may not enable it by default.
Post by Daniel
Hello all,
5.5.0 and I can see a serious issue cropping up, the support for mysql
has been dropped and one will need to use PDO_mysql or mysqli.
Does anyone know when WordPress will be supporting mysqli?
Regards,
Daniel Fenn
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
Paolo Tresso
2013-06-22 01:38:30 UTC
Permalink
Post by Daniel
I don't understand why people are still on php 5.2.
Travis CI won't even test for PHP 5.2! :-)

An impressive number of hosting providers does have really bad practices
about that, either because their server imaging system isn't so easy to
upgrade and deploy (this happen mainly with pre-cloud providers with
real machines) or because their hosting system requires server admins to
compile each time a fresh Apache + PHP stack (like CPanel).

Good thing is that the managed WP providers wave should help a bit on
this side, forcing other providers to get on pair.

Another great subset are personal and self-managed servers, many won't
upgrade until they switch to another server. Absurd but real.

I've seen on twitter that some WP core developers would like to push for
PHP 5.3 base support in the next major release, hope it's real, it's
about time :-)




Paolo Tresso
aka pixline
WordPress hacker
SWERgroup

http://profiles.wordpress.org/pixline
http://swergroup.com
Ryan McCue
2013-06-22 01:55:27 UTC
Permalink
Post by Paolo Tresso
Post by Daniel
I don't understand why people are still on php 5.2.
Travis CI won't even test for PHP 5.2! :-)
Actually, although it's not documented any more, it will let you. The
Travis team were having some problems with building it so decided to
drop official support, but it looks like it's still working:

https://travis-ci.org/rmccue/Requests/jobs/8209092

The reason hosts are still on 5.2 is because they've been on it for a
while and they know it works. Changing that for their customers
inevitably means breaking things, so it's easy to see why they don't
upgrade faster.
--
Ryan McCue
<http://ryanmccue.info/>
Daniel
2013-06-22 02:36:31 UTC
Permalink
And hosts don't give a crap about some software refusing to work that
clients may want to use? Also from my understanding php 5.2 isn't
getting any more updates as well.

Adding to that, what about security issues?
Post by Ryan McCue
Post by Paolo Tresso
Post by Daniel
I don't understand why people are still on php 5.2.
Travis CI won't even test for PHP 5.2! :-)
Actually, although it's not documented any more, it will let you. The
Travis team were having some problems with building it so decided to
https://travis-ci.org/rmccue/Requests/jobs/8209092
The reason hosts are still on 5.2 is because they've been on it for a
while and they know it works. Changing that for their customers
inevitably means breaking things, so it's easy to see why they don't
upgrade faster.
--
Ryan McCue
<http://ryanmccue.info/>
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
Paolo Tresso
2013-06-22 04:01:17 UTC
Permalink
Post by Daniel
And hosts don't give a crap about some software refusing to work that
clients may want to use? Also from my understanding php 5.2 isn't
getting any more updates as well.
Adding to that, what about security issues?
I second that, but many providers aren't. Stats are quite impressive,
though:

http://wordpress.org/about/stats/

http://w3techs.com/technologies/details/pl-php/all/all


Paolo Tresso
about.me/pixline
Paolo Tresso
2013-06-22 04:00:12 UTC
Permalink
Post by Ryan McCue
Actually, although it's not documented any more, it will let you. The
Travis team were having some problems with building it so decided to
https://travis-ci.org/rmccue/Requests/jobs/8209092
Nice! I'll try it in the next commit, thank you for sharing.
Post by Ryan McCue
The reason hosts are still on 5.2 is because they've been on it for a
while and they know it works. Changing that for their customers
inevitably means breaking things, so it's easy to see why they don't
upgrade faster.
I understand this view, but I think that a major release (or two) behind
should be enough.
PHP 5.2 was out in 2006 while PHP 5.3 was in 2009: I'm not sure about
how many legacy code runs online, but from the internet point of view
feel like it was a century ago :-)

As many open source project pushed a lot for PHP5, maybe it's time to do
that again and set an higher base PHP version. Would help a lot both
WordPress and developers out there.

Paolo Tresso
about.me/pixline
Bryan Petty
2013-06-22 07:48:05 UTC
Permalink
On Fri, Jun 21, 2013 at 7:38 PM, Paolo Tresso
Post by Paolo Tresso
An impressive number of hosting providers does have really bad practices
about that, either because their server imaging system isn't so easy to
upgrade and deploy (this happen mainly with pre-cloud providers with
real machines) or because their hosting system requires server admins to
compile each time a fresh Apache + PHP stack (like CPanel).
This isn't the problem at all. All of the major hosting companies
using cPanel (and other control panels) offer multiple versions of PHP
at the customer's choice, and multiple customers on the same server
are even running different versions of PHP (depending on what they're
hosting and it's requirements).

The fact is, all of them already have the choice to run PHP 5.4 (and
likely 5.5 very soon), but (in the case of shared hosting) it's up to
the customer to take responsibility for upgrading themselves when they
know the software they have chosen to use supports newer versions of
PHP. You might also be surprised to learn that quite a lot of
perfectly healthy websites out there wont work on PHP 5.3+.

I can assure you that the hosting companies still providing 5.2 are
monitoring the health of those accounts, and are weighing the costs of
breaking a large percentage of their customers' sites when being
forced to upgrade versus letting those sites be hacked if security
becomes a problem. Eventually, they will drop support for 5.2 entirely
and automatically upgrade everyone to 5.3, but honestly, most exploits
out there for 5.2.17 require some very specific and rare conditions to
be met before anything is exposed. Very few sites still on 5.2 are
actually in any danger, assuming the software itself (not PHP) is
secure. Most of the time, it's the custom scripts and web applications
you have to worry about, not PHP, and upgrading PHP (assuming it still
works) usually won't even solve the types of security issues they
should be worried about.

Try finding a linux-based global attack vector that poses a serious
threat and works everywhere from this list [1]. There's only DoS
attacks that work regardless of the PHP scripts installed, and not
only are those easily detected and mitigated by hosting companies
without any serious damage done, but they are also always possible
even with the latest version of PHP anyway (it's just harder to pull
off).

[1] http://www.cvedetails.com/version/106044/PHP-PHP-5.2.17.html
Post by Paolo Tresso
I've seen on twitter that some WP core developers would like to push for
PHP 5.3 base support in the next major release, hope it's real, it's
about time :-)
This won't happen in 3.7 or 3.8, and likely not even in 3.9. It would
be great, and everyone would love to be able to use the newer features
of PHP (hence why devs love to rant about it), however, none of those
features are mandatory, and absolutely none of them are worth leaving
60% (let alone 20%) of WordPress users in the dark with an old,
insecure version of WordPress just because they haven't upgraded their
hosting (or can't).

Regards,
Bryan Petty

Loading...