[wp-trac] [WordPress Trac] #22325: Abstract GPCS away from the superglobals

WordPress Trac noreply at wordpress.org
Fri Nov 2 05:27:26 UTC 2012


#22325: Abstract GPCS away from the superglobals
-------------------------+-----------------------------
 Reporter:  rmccue       |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  General      |     Version:
 Severity:  minor        |  Resolution:
 Keywords:               |
-------------------------+-----------------------------

Comment (by rmccue):

 Replying to [comment:8 mbijon]:
 > Symfony is definitely the only future-proofed candidate here. But, if we
 add Symfony we should be prepared for a bump to requiring 5.3.

 At the moment, that's really out of the question. The
 [http://wordpress.org/about/stats/ stats page] shows that we still have a
 huge 5.2 userbase, and I think it's somewhat unlikely that this will
 change soon. Personally, I'd love to drop 5.2, but practically, it's not
 possible.

 I think what would most likely happen is that we would have to fork the
 Request component, convert to 5.2-compatible, and then attempt to keep
 that up-to-date. It sucks, but it's most likely the only way. The code it
 seems relatively stable ([https://github.com/symfony/HttpKernel/graphs
 /commit-activity Kernel activity] and
 [https://github.com/symfony/HttpKernel/graphs/code-frequency line
 changes]; [https://github.com/symfony/HttpFoundation/graphs/commit-
 activity Foundation activity] and
 [https://github.com/symfony/HttpFoundation/graphs/code-frequency line
 changes]) but those are still a fair number of changes to backport
 constantly. Granted, most probably don't need any changes for 5.2
 compatibility.

 > The Request component in Symfony will, I think, work on PHP 5.2.4, but
 we will likely need to grab a bigger part of Symfony than that.

 I'm not sure what we'd need apart from Kernel and Foundation. The
 ClassLoader is just a standard SPL class loader really, and the rest is
 self-contained.

 > Edit: Just found drupal/org's research on Zend vs. Symfony from their
 decision-making on this: http://groups.drupal.org/node/167299

 That's a great link; thanks for that! I think that further confirms that
 Zend is dead-in-the-water as far as this is concerned; it's also very
 interlinked with their other stuff, while - as noted - Symfony components
 are very much standalone.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22325#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list