ID:               43387
 Comment by:       sebabar at konto dot pl
 Reported By:      matteo at beccati dot com
 Status:           No Feedback
 Bug Type:         Reproducible crash
 Operating System: GNU/Linux 2.6.18 x86_64
 PHP Version:      5.2.5
 New Comment:

I just experienced the same. I don't know why this happens, but I
managed to find the last executed line before segfault. Below is method
getMock() from PHPUnit (3.2.15), file /PHPUnit/Framework/TestCase.php
I added few echos to see where it crashes.

    protected function getMock($className, array $methods = array(),
array $arguments = array(), $mockClassName = '',
$callOriginalConstructor = TRUE, $callOriginalClone = TRUE,
$callAutoload = TRUE)
    {
        if (!is_string($className) || !is_string($mockClassName)) {
            throw new InvalidArgumentException;
        }

        $mock = PHPUnit_Framework_MockObject_Mock::generate(
          $className,
          $methods,
          $mockClassName,
          $callOriginalConstructor,
          $callOriginalClone,
          $callAutoload
        );
echo " GENERATED ";
        $mockClass  = new ReflectionClass($mock->mockClassName);
echo " REFLECTED ";
        $mockObject = $mockClass->newInstanceArgs($arguments);
echo "\n AFTER newInstanceArgs() \n";
        $this->mockObjects[] = $mockObject;
echo " MOCK READY ";
        return $mockObject;
    }

In cases when php crashes, it stops just after REFLECTED message - on
call to newInstanceArgs()

The same unit tests, testing the same code base with the same version
of PHPUnit under windows and PHP 5.2.3 works ok.


Previous Comments:
------------------------------------------------------------------------

[2008-02-09 02:10:55] [EMAIL PROTECTED]

not fixed - reopen

------------------------------------------------------------------------

[2007-12-13 06:18:50] phajdan dot jr at gmail dot com

As this bug is now closed due to lack of feedback, can you reopen my
original bug http://bugs.php.net/bug.php?id=43397 ?

------------------------------------------------------------------------

[2007-12-07 15:27:38] phajdan dot jr at gmail dot com

I don't know if it is helpful, but I tested with recent snapshot and
the bug wasn't fixed (I submitted another bug report, marked as a
duplicate of this one).

------------------------------------------------------------------------

[2007-12-05 15:40:55] [EMAIL PROTECTED]

Keep this in feedback status until you have actually tested the
snapshot. A fix was committed recently which should fix this one too.

------------------------------------------------------------------------

[2007-12-04 16:06:52] matteo at beccati dot com

We'll try to reproduce it again with either 5.2.4 or 5.2.5 and see if
the snapshot fixes it.

Thanks for the feedback, we really appreciate it!

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/43387

-- 
Edit this bug report at http://bugs.php.net/?id=43387&edit=1

Reply via email to