View Issue Details

IDProjectCategoryView StatusLast Update
0000142Xdebugpublic2005-09-23 09:23
Reportere-novative Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionopen 
Summary0000142: xdebug crashes in PHP-CLI
DescriptionI am running PHPUnit2 tests at the command line. I'm testing a Collection class implementing the Iterator interface. The script runs, but xdebug seems to crash on shutdown.

When I disable xdebug in php.ini, everything works fine (naturally).

I'm not sure which additional information I can provide, so please give instructions.
Additional InformationAppName: php.exe AppVer: 5.0.4.4 ModName: php_xdebug.dll
ModVer: 5.0.5.5 Offset: 000037be
TagsNo tags attached.
Operating SystemWindows XP
PHP Version5.0.4

Activities

derick

2005-08-02 12:40

administrator   ~0000271

Please provide a short reproducable script that causes this crash - without this I can not debug Xdebug, unless you manage to run this on linux and use valgrind and gdb to create specific crash information, including a backtrace.

e-novative

2005-08-02 13:47

reporter   ~0000272

Here is a minimal example that crashes on my system. If I comment out the destructor of Object, the example works fine.

<?php

  class eno_Exception extends Exception {}

  require_once 'PHPUnit2/Framework/TestCase.php';

  class CollectionTest extends PHPUnit2_Framework_TestCase
  {
    public function testSomething()
    {
      $collection = new Collection;
      $collection->add(new Object);
    }
  }

  class Collection
  {
    var $Objects = array();

    public function __construct() { }
    public function rewind() { }
    public function current() { }
    public function key() { }
    public function next() { }
    public function valid() { }

    public function add(Object $aObject)
    {
      $this->Objects[] = $aObject;
    }
  }

  class Object
  {
    public function __construct() { }
    public function __destruct() { }
  }

?>

derick

2005-09-22 20:49

administrator   ~0000291

Although that wasn't a very short script, I did confirm it. It seems like some structure in PHP isn't set correctly though. I'll have a look there.

derick

2005-09-23 09:23

administrator   ~0000293

Fixed in CVS, thanks for the report.

Issue History

Date Modified Username Field Change
2005-08-02 12:35 e-novative New Issue
2005-08-02 12:40 derick Note Added: 0000271
2005-08-02 12:40 derick Status new => feedback
2005-08-02 13:47 e-novative Note Added: 0000272
2005-09-22 20:49 derick Note Added: 0000291
2005-09-22 20:49 derick Status feedback => confirmed
2005-09-23 09:23 derick Status confirmed => closed
2005-09-23 09:23 derick Note Added: 0000293
2016-07-31 12:35 derick Category Debug client (console) => debugclient (debugging tool)
2016-07-31 12:35 derick Category debugclient (debugging tool) => (No Category)