View Issue Details

IDProjectCategoryView StatusLast Update
0000407XdebugUsage problems (Wrong Results)public2019-05-16 08:07
ReportersmoeAssigned Toderick 
PrioritynormalSeveritymajorReproducibilityalways
Status confirmedResolutionopen 
Product Version 
Target Version2.2devFixed in Version 
Summary0000407: Profilerdumpfile name is always auto_prepend_file name
Descriptionmy php.ini:
{{{
auto_prepend_file = prepend.php
xdebug.profiler_output_name = cachegrind.out.%s
}}}

then the dumpfilename is always "cachegrind.out._path_to_prepend-php_prepend_php", regardless which script i requested
Additional InformationIm using PHP5 as FastCGI
TagsNo tags attached.
Operating SystemGnu/Linux Debian Lenny
PHP Version5.2.6

Activities

derick

2016-11-27 19:50

administrator   ~0003798

This bug still exists, and can be reproduced with the one liner:

touch index.php start.php; php -dauto_prepend_file=start.php -dxdebug.profiler_output_name=^Cachegrind.out.%s -dxdebug.profiler_enable=1 index.php

However, I don't see how I can figure our which script is the "auto prepend" script, or the normal script in PHP itself.

Xenos

2019-05-16 08:07

reporter   ~0005025

I couldn't reproduce this now (3 years after so might have been fixed):

--TEST--
Test for bug 0000407: Profilerdumpfile name is always auto_prepend_file name
--INI--
auto_prepend_file = C:\dev\git\php-7.3.3\ext\xdebug\tests\bug00407.prepend.php
xdebug.profiler_enable = 1
xdebug.profiler_output_dir = C:\dev\git\php-7.3.3\ext\xdebug\tests
xdebug.profiler_output_name = bug00407.cachegrind.%s.out
--FILE--
<?php

echo "\$prepended = $prepended\n";

--EXPECTF--
$prepended = yes


Gets 2 files:
bug00407.cachegrind.C__dev_git_php-7.3.3_ext_xdebug_tests_bug00407_php.out =
version: 1
creator: xdebug 2.7.3-dev (PHP 7.3.3)
cmd: C:\dev\git\php-7.3.3\ext\xdebug\tests\bug00407.php
part: 1
positions: line

events: Time Memory

fl=(2) C:\dev\git\php-7.3.3\ext\xdebug\tests\bug00407.php
fn=(1)

summary: 26 32

1 26 32



bug00407.cachegrind.C__dev_git_php-7.3.3_ext_xdebug_tests_bug00407.prepend_php.out =
version: 1
creator: xdebug 2.7.3-dev (PHP 7.3.3)
cmd: C:\dev\git\php-7.3.3\ext\xdebug\tests\bug00407.prepend.php
part: 1
positions: line

events: Time Memory

fl=(1) C:\dev\git\php-7.3.3\ext\xdebug\tests\bug00407.prepend.php
fn=(1) {main}

summary: 16 0

1 16 0



So, should this issue be closed? Do I need to commit the phpt? If so, I would like to know how to remove the two absolute paths I have in the phpt file (otherwise, it's gonna fail on everyone else's computer!)

Issue History

Date Modified Username Field Change
2008-09-05 11:18 smoe New Issue
2010-03-20 23:47 derick Target Version => 2.2dev
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)
2016-11-27 19:50 derick Note Added: 0003798
2016-11-27 19:50 derick Assigned To => derick
2016-11-27 19:50 derick Status new => confirmed
2019-05-16 08:07 Xenos Note Added: 0005025