[wp-trac] [WordPress Trac] #18322: The Road to Magic Quotes Sanity

WordPress Trac noreply at wordpress.org
Wed Feb 19 09:34:54 UTC 2014


#18322: The Road to Magic Quotes Sanity
----------------------------+-----------------------------
 Reporter:  ryan            |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Future Release
Component:  Bootstrap/Load  |     Version:  3.2.1
 Severity:  major           |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+-----------------------------

Comment (by arman.poghosyan):

 Replying to [comment:32 Denis-de-Bernardy]:
 > Replying to [comment:31 arman.poghosyan]:
 > > I'm using PHP > 5.4 both on local servers and production servers.
 Majority of shared hostings are already on PHP > 5.4, so magic_quotes are
 disabled and deprecated by default and nobody expects that it can cause
 problem.
 >
 > It's closer to 10%-ish of hosts, actually… :-(
 >
 > http://wordpress.org/about/stats/

 Are these charts up to date?
 On all shared hostings that we use for our clients (I don't know if it is
 appropriate to name hosting companies here, but they are actually top
 (read most advertised and used) hostings)) PHP 5.4 is set up by default
 (on a few of them, PHP 5.2 is on, but you can easily change to 5.4 from
 CPanel) and on some of them you can even switch up to PHP 5.6.

 On VPS and Dedis that we use we always update to latest stable version
 available (CentOS/RedHat default repository) and it's also PHP > 5.4.

 Unfortunately this issue doesn't affect everybody even with lates PHP
 versions, as majority only uses GET and POST to update entries in MySQL
 database with $wpdb, in that case everything is always OK. But in case if
 you escape data on your own or if you use JSON data as me, you will for
 sure get acquanted with strange core behavior.

 I think that it will be more appropriate to say that even if 100% use PHP
 > 5.4, only some 10% will be affected by the issue.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/18322#comment:33>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list