Problems after trying to extract broken file text
Open
Nobody has claimed this yet.
bug
- Dominant language
- PHP
- Stars
- 2.7k
- Forks
- 579
- Avg merge
- 2m
- Merged PRs (30d)
- 1
Description
Problems:
- Not work echo, var_dump, print_r, e.t.c.
- Memory leak
Broken file
Example:
function pdfToText(string $path):?string
{
$content = file_get_content($path);
$parser = new Parser();
try{
return $parser->parseContent($content)->getText();
} catch (Exception $exception){
return null;
}
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the provided pdfToText example and the linked broken PDF, then reproduce the failures involving echo, var_dump, and print_r. Trace parsing of that file and check memory usage; the issue is complete when text extraction and normal output work without the reported memory leak.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100