# where to request small enhancements?

- Thread: https://externals.io/message/41783
- Original archive: https://news-web.php.net/php.internals/41783
- Started by James Murray on 2008-11-09T18:10:51+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #41783 — James Murray — 2008-11-09T18:10:51+00:00

URL: https://externals.io/message/41783#41783

I'm not a C++ or C programmer, however I have made an extension that 
exposes a complimentary function to error_get_last, error_clear_last.

It's a super useful function, specially if you're trying to detect 
things like "white pages"

It's a much needed function for people that write their own error reporters.

Considering the last error doesn't clear until the error reporter 
returns true, so there could be cases where someone's custom error 
reporter could be reporting the same error stored in $php_errormsg many 
times.

regardless of your usage, users should have the ability to clear the 
'last error' at their will.

ANYWAY where would I post something like this? I don't want to put up my 
code because a.)I can't find it anymore and b.)it'd probably be 
embarrassing to show my crap C!

-James

---

## #42020 — Daniel Convissor — 2008-11-23T04:03:58+00:00

URL: https://externals.io/message/41783#42020 · In reply to: #41783

Hi James:


> I'm not a C++ or C programmer, however I have made an extension that  
> exposes a complimentary function to error_get_last, error_clear_last.

How does this differ from $php_errormsg?


> It's a much needed function for people that write their own error reporters.

How does this differ from using the $errstr in a function established via 
 `set_error_handler()`?


> regardless of your usage, users should have the ability to clear the  
> 'last error' at their will.

?


> ANYWAY where would I post something like this? 

Here.  Or if you have a PHP CVS account, wiki.php.net.

--Dan

-- 
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
            data intensive web and database programming
                http://www.AnalysisAndSolutions.com/
 4015 7th Ave #4, Brooklyn NY 11232  v: 718-854-0335 f: 718-854-0409
