Skip to content

[QUESTION] phpdbg Fails to Generate HTML Report – Segmentation Fault Occurred #7326

@thinklikes

Description

@thinklikes

Before you submit an issue, please be sure to search through existing issues as well as search through the documentation

  • I've searched all existing issues
  • I've read all relevant documentation I could find

Describe your question

Hi everyone, I'm facing an issue with phpdbg when generating an HTML report. It works fine when I set the environment variable SCAN_CACHEABLE to true, but by default, it results in a Segmentation Fault.

Environment Details:

  • Running in: Docker container
  • Docker Image: hyperf/hyperf:8.1-alpine-v3.19-swoole-v5.1.6

Command Used:

$ phpdbg -dmemory_limit=1024M -qrr ./vendor/bin/co-phpunit --prepend test/bootstrap.php -c phpunit.xml --colors=always test/Cases/ExampleTest.php

ExampleTest.php

<?php

declare(strict_types=1);

/**
 * This file is part of Hyperf.
 *
 * @see     https://www.hyperf.io
 *
 * @document https://hyperf.wiki
 *
 * @contact  [email protected]
 *
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */

namespace HyperfTest\Cases;

use App\Common\BotNotify;
use HyperfTest\HttpTestCase;

/**
 * @internal
 */
class ExampleTest extends HttpTestCase
{
    public function testExample()
    {
        $this->assertEquals(1, 1);
    }
}

Error Screenshot:

Image

Does anyone know what might be causing this? Are there any solutions or workarounds?
Thanks in advance for your help! 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions