Current time: 08-11-2020, 09:11 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WebPageTest & PHP 5.4
06-07-2012, 03:36 AM (This post was last modified: 06-07-2012 03:41 AM by pmeenan.)
Post: #2
RE: WebPageTest & PHP 5.4
Thanks. I'm making a minor tweak but testing now and will commit shortly:

Code:
extract($_POST, EXTR_SKIP|EXTR_PREFIX_ALL|EXTR_REFS, 'req');
extract($_GET, EXTR_SKIP|EXTR_PREFIX_ALL|EXTR_REFS, 'req');

The main thing I was trying to accomplish was that $_REQUEST depends on the configuration of request_order in php.ini and I had a case where a cookie value collided with a post parameter and it led to really "interesting" behavior.

Also, watch out for the underscore after req, php adds it automatically with extract()
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
WebPageTest & PHP 5.4 - Aaron Kulick - 06-06-2012, 02:59 AM
RE: WebPageTest & PHP 5.4 - pmeenan - 06-07-2012 03:36 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)