# Function prototype extension proposal

- Thread: https://externals.io/message/3495
- Original archive: https://news-web.php.net/php.internals/3495
- Started by Andrey Hristov on 2003-07-19T19:07:11+00:00
- Messages: 1
- 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

---

## #3495 — Andrey Hristov — 2003-07-19T19:07:11+00:00

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

Hi,
today I saw that the new SQLite extension throws exceptions.
In the current state the syntaxis of the prototypes in .c files
is :
proto return_type function_name([param_type param_name]*)
As we know, from v5, PHP functions may throw exceptions.
Therefore I propose to extend the syntaxis of function prototype
 with suffix :
throws [exception_name]
If more than one type of exception is throwed a comma separated
list should be specified .
Example :

proto array func_name(int param) throws FuncNameException1,
FuncNameException2

Comments?

Regards,
Andrey
