Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System error #8388

Closed
facido opened this issue Jan 5, 2024 · 3 comments · Fixed by rectorphp/rector-src#5436
Closed

System error #8388

facido opened this issue Jan 5, 2024 · 3 comments · Fixed by rectorphp/rector-src#5436

Comments

@facido
Copy link

facido commented Jan 5, 2024

Hi,

I am getting a system error processing one of my files. Please help!

Configurations: Windows 10 32 bit, PHP 7.4.32

Code processed:

private function getHeaders(array $headers)
{
    $str = '';
    foreach ($headers as $key => $value) {
        $str .= "{$key}: {$value}\r\n";     // Error occurs here! (This is line 56 where the error occurs)
    }

    return "--{$this->boundary}\r\n" . trim($str) . "\r\n\r\n";
}

I am attaching the output file with debug setting on.
output to report to Github.txt

I am also attaching the source file that was processed and gave the error.
MultipartStream.zip

@TomasVotruba
Copy link
Member

Thank you for your report!

We'll need an isolated failing demo link from: http://getrector.com/demo,
that way we can reproduce the bug.

@facido
Copy link
Author

facido commented Jan 5, 2024

Hi,

The isolated failing demo link from https://getrector.com/demo is as follows:
https://getrector.com/demo/aca74932-09f8-4159-bb35-e64c79d9fe61

@samsonasik
Copy link
Member

Reproduced with single rule: SimplifyForeachToCoalescingRector , ref https://getrector.com/demo/6aabe859-7793-4f31-af07-7b713df22b31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants