View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000226 | Xdebug | Uncategorized | public | 2006-12-11 11:57 | 2006-12-25 16:19 |
Reporter | jeroen | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | open | ||
Summary | 0000226: Xdebug2 doesn't show memory (or memory delta) | ||||
Description | Description: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] | ||||
Tags | No tags attached. | ||||
Operating System | Windows XP | ||||
PHP Version | 5.2.0 | ||||
|
Some additional phpinfo information (sorry I forgot to add it to the orginal report): phpinfo() System => Windows NT RAHRAH 5.1 build 2600 This program makes use of the Zend Scripting Language Engine: xdebug xdebug support => enabled Supported protocols => Revision Directive => Local Value => Master Value |
|
Also, I experienced the same problem with APD for PHP 5.2.0 (http://nl3.php.net/apd) I don't know about previous versions of PHP, I haven't tried them as I don't have the binaries of those versions. |
|
Please try the latest version from http://pecl4win.php.net/ext.php/php_xdebug.dll, this should be fixed. |
|
I tried the last version from PECL4WIN for PHP 5.2, and memory usage still isn't shown: TRACE START [2006-12-11 21:10:41] I have tried compiling php 5.2 with --enable-memory-limit (still on windows), but that doesn't seem to make any difference, no memory usage there either. |
|
Also, the timestamp on the top of the trace file is set to one hour earlier than my system time for some reason. (This is a new output file, I deleted the old ones before testing the latest PECL4WIN release). |
|
My timezone settings in php.ini are correct btw: [Date] |
|
The date/time is expected, the log files always show GMT/UTC. I'll need some more time to check out the memory stuff. I will do that when I get access to a windows machine again. |
|
Ok, looking forward to the results. |
|
I tested with PHP 5.0.5 and the same problem exists: cmd: php -e -d zend_extension_ts=D:\server\php\php-5.0.5\ext\php_xdebug.dll -d xdebug.auto_trace=1 -d xdebug.trace_output_dir="/tmp/trace" -d xdebug.show_mem_delta=1 -d xdebug.trace_format=0 -r "$tmp = ''; function editme() {global $tmp; $tmp.= 'hoi'; } for($i = 0; $i < 1024; $i++) { editme(); }" output: |
|
On a stock PHP 5.0.5 it is expected as well, as memory limit is not enabled by default there either. |
|
For what it's worth, I made a feature change request at php.net ;-) |
|
Your feature request has been implemented in PHP Cvs now, so please get the latest Xdebug from pecl4win.php.net (dated after now). Please let me know whether it works as I still don't have access to Windows. |
|
Cool, I'll have a look at it and will let you know some time later today. |
|
Looks like pecl4win hasn't compiled for a few days (16 December for the last time), I'm waiting for the next build. |
|
I can tell you that this works (it didn't before, it would exit because of the fatal error saying call to undeclared function): D:\server\php\php5.2-win32-200612201130>php -r "echo memory_get_usage();" (this is a snapshot from yesterday) So far, so good. Still waiting on the next pecl4win build :-) |
|
Any idea when these builds occur? |
|
I managed to build it myself, but unfortunately the memory stuff still doesn't show up because the MEMORY_LIMIT define is not set in the windows build. |
|
Ah, that was my mistake. The module at http://xdebug.org/link.php?url=xdebug200rc2-521-win should work for you (as long as you have the latest PHP snapshot) |
|
WOOHOO!!! I just downloaded the latest snap and your .dll and it WORKS!! Thanks, man! Btw, if you need some more Windows testing, feel free to contact me. cmd: php -e -d zend_extension_ts=D:\server\php\php5.2-win32-200612251130\ext\php_xdebug.dll -d xdebug.auto_trace=1 -d xdebug.trace_output_dir="/tmp/trace" -d xdebug.show_mem_delta=1 -d xdebug.trace_format=0 -r "$tmp = ''; function editme() {global $tmp; $tmp.= 'hoi'; } for($i = 0; $i < 1024; $i++) { editme(); }" output: TRACE START [2006-12-25 13:49:39] |
|
Cool, let's close the report then :-) |
Date Modified | Username | Field | Change |
---|---|---|---|
2006-12-11 11:57 | jeroen | New Issue | |
2006-12-11 12:09 | jeroen | Note Added: 0000502 | |
2006-12-11 12:16 | jeroen | Note Added: 0000503 | |
2006-12-11 21:56 | derick | Note Added: 0000504 | |
2006-12-11 21:56 | derick | Status | new => feedback |
2006-12-11 22:13 | jeroen | Note Added: 0000505 | |
2006-12-11 22:30 | jeroen | Note Added: 0000506 | |
2006-12-11 22:32 | jeroen | Note Added: 0000507 | |
2006-12-11 22:39 | derick | Note Added: 0000509 | |
2006-12-11 22:43 | jeroen | Note Added: 0000510 | |
2006-12-12 02:44 | jeroen | Note Added: 0000511 | |
2006-12-12 13:47 | derick | Note Added: 0000515 | |
2006-12-12 16:49 | jeroen | Note Added: 0000518 | |
2006-12-20 13:07 | derick | Note Added: 0000525 | |
2006-12-20 13:10 | jeroen | Note Added: 0000526 | |
2006-12-20 14:22 | jeroen | Note Added: 0000527 | |
2006-12-21 16:18 | jeroen | Note Added: 0000528 | |
2006-12-21 16:40 | jeroen | Note Added: 0000529 | |
2006-12-24 20:43 | derick | Note Added: 0000530 | |
2006-12-24 21:03 | derick | Note Added: 0000531 | |
2006-12-25 14:57 | jeroen | Note Added: 0000532 | |
2006-12-25 16:19 | derick | Status | feedback => closed |
2006-12-25 16:19 | derick | Note Added: 0000533 | |
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) |
2020-03-12 16:35 | derick | Category | Usage problems (Wrong Results) => Variable Display |
2020-03-12 16:38 | derick | Category | Variable Display => Uncategorized |