[xdebug-dev] svn: /xdebug/trunk/ usefulstuff.c

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Sat, 25 Dec 2010 13:32:20 +0000

derick Sat, 25 Dec 2010 13:32:20 +0000

Revision: http://svn.xdebug.org/cgi-bin/viewvc.cgi?view=rev&revision=3377&root=xdebug

Log:
- Added support for '%U' as a specifier for $_REQUEST['UNIQUE_ID'] for trace
  and profiler output file names. Patch by EungJun Yi/이응준
  <semtlenori[@]gmail.com>

Changed paths:
    U xdebug/trunk/usefulstuff.c

Modified: xdebug/trunk/usefulstuff.c
===================================================================
--- xdebug/trunk/usefulstuff.c 2010-12-16 23:50:50 UTC (rev 3376)
+++ xdebug/trunk/usefulstuff.c 2010-12-25 13:32:20 UTC (rev 3377)
@@ -571,6 +571,7 @@
                                 } break;

                                 case 'H': /* $_SERVER['HTTP_HOST'] */
+ case 'U': /* $_SERVER['UNIQUE_ID'] */
                                 case 'R': { /* $_SERVER['REQUEST_URI'] */
                                         zval **data;
                                         char *char_ptr, *strval;
@@ -584,6 +585,9 @@
                                                 case 'R':
                                                         retval = zend_hash_find(Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_SERVER]), "REQUEST_URI", sizeof("REQUEST_URI"), (void **) &data);
                                                         break;
+ case 'U':
+ retval = zend_hash_find(Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_SERVER]), "UNIQUE_ID", sizeof("UNIQUE_ID"), (void **) &data);
+ break;
                                                 }

                                                 if (retval == SUCCESS) {
Received on Sat Dec 25 2010 - 13:32:20 GMT

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST