henck / henck/rtf-html-php

throw new Exception in Document on line 30

Open
#83 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
107
Forks
79
PR merge metrics
No merged PRs in 30d

Description

We have throw new Exception in Document.php but PHP 7.2 or more with namespace neeed.

$err = "Parse error: Tried to read past end of input; RTF is probably truncated.";
trigger_error($err);
throw new \Exception($err);

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open Document.php and inspect the exception handling around line 30, including the shown trigger_error and throw statements. Confirm the exception works under PHP 7.2+ when the file uses a namespace; done means the parser reports the intended error without a namespace-related exception-resolution failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.