View Issue Details

IDProjectCategoryView StatusLast Update
0000550XdebugUncategorizedpublic2010-03-20 01:25
Reporterviva976 Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionnot fixable 
Summary0000550: Session id format specifier in xdebug.profiler_output_name doesn't work when setting session name outside php.ini
Description

When using the %S format code in xdebug.profiler.output_name setting in xdebug.ini, then it only works when the session name is not touched after reading it from php.ini.
Example:
php.ini:
session_name = PHPSESSID
xdebug.ini:
xdebug.profiler_output_name = cachegrinder%s.%S

and then in my script have something like this:
session_name('othername');
session_start();

xdebug will fail to find the session id for 'othername' session.

TagsNo tags attached.
Operating SystemLinux 2.6.18
PHP Version5.2.10

Activities

derick

2010-03-19 00:51

administrator   ~0001387

Does it still use PHPSESSID then?

viva976

2010-03-19 10:16

reporter   ~0001389

Yes, it tries to find the cookie with the name defined in session.name php.ini setting.

derick

2010-03-20 01:25

administrator   ~0001390

All right, not much I can do about this. The profiler starts and opens the file before PHP starts running. By the time you call session_name() the file has already been created.