View Issue Details

IDProjectCategoryView StatusLast Update
0000550XdebugUsage problems (Wrong Results)public2010-03-20 01:25
Reporterviva976Assigned Toderick 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionnot fixable 
Product Version 
Target VersionFixed in Version 
Summary0000550: Session id format specifier in xdebug.profiler_output_name doesn't work when setting session name outside php.ini
DescriptionWhen 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.

Issue History

Date Modified Username Field Change
2010-03-18 20:21 viva976 New Issue
2010-03-18 20:21 viva976 Operating System => Linux 2.6.18
2010-03-18 20:21 viva976 PHP Version => 5.2.10
2010-03-18 20:21 viva976 Xdebug Version => 2.0.2
2010-03-19 00:51 derick Note Added: 0001387
2010-03-19 00:51 derick Status new => feedback
2010-03-19 10:16 viva976 Note Added: 0001389
2010-03-20 01:25 derick Note Added: 0001390
2010-03-20 01:25 derick Status feedback => resolved
2010-03-20 01:25 derick Resolution open => not fixable
2010-03-20 01:25 derick Assigned To => derick
2016-07-31 12:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 12:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)