|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-07-13 08:04 UTC] derick@php.net
[2007-07-13 10:27 UTC] jagermeistermeister at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 08 22:00:01 2025 UTC |
Description: ------------ I'm using Xdebug Version: 2.0.0RC1 PHP Version 5.2.0 (I couldn't select that one from the PHP Version dropdown for some reason, so not 5.2.0 RC4) Xdebug doesn't show correct memory in trace file (maybe this has something to do with the new memory management of PHP 5.2.0?) Reproduce code: --------------- I'm running PHP from command line php -e -c "PHP_PATH/php.ini" -d error_reporting="E_ALL | E_STRICT" -d zend_extension_ts="PATH/TO/php_xdebug-2.0.0rc1-5.2.0.dll" -d xdebug.auto_trace=1 -d xdebug.trace_output_dir="SOME_PATH\tmp\trace" -d xdebug.show_mem_delta=1 -d xdebug.trace_format=0 some_script.php Expected result: ---------------- I expected to see a different number where it says "0" (memory usage) and "+0" (memory delta). These numbers are the same troughout the script. It's not very likely a script doesn't use any memory ;-) Actual result: -------------- These are the first 10 lines from the trace file: TRACE START [2006-12-11 10:41:26] 0.0008 0 +0 -> {main}() D:\server\www\sobe-1.2\Test\AdvProfiler\xdebug\script\ProfileTest.php:0 0.0010 0 +0 -> test_function() D:\server\www\sobe-1.2\Test\AdvProfiler\xdebug\script\ProfileTest.php:25 0.0011 0 +0 -> trim() D:\server\www\sobe-1.2\Test\AdvProfiler\xdebug\script\ProfileTest.php:8 0.0012 0 +0 -> round() D:\server\www\sobe-1.2\Test\AdvProfiler\xdebug\script\ProfileTest.php:8 0.0013 0 +0 -> TestClass->__construct() D:\server\www\sobe-1.2\Test\AdvProfiler\xdebug\script\ProfileTest.php:26 0.0016 0 +0 -> TestClass->DoSomething() D:\server\www\sobe-1.2\Test\AdvProfiler\xdebug\script\ProfileTest.php:27 0.0016 0 +0 -> rand() D:\server\www\sobe-1.2\Test\AdvProfiler\xdebug\script\ProfileTest.php:19 0.0017 0 +0 -> array_flip() D:\server\www\sobe-1.2\Test\AdvProfiler\xdebug\script\ProfileTest.php:20 0.0018 0 +0 -> test_function() D:\server\www\sobe-1.2\Test\AdvProfiler\xdebug\script\ProfileTest.php:25 0.0018 0 +0 -> trim() D:\server\www\sobe-1.2\Test\AdvProfiler\xdebug\script\ProfileTest.php:8