Throwing an exception instead of error from a PHP extension

hardcore

New Member
Another co-worker and I have been heavily modifying the PHP Zookeeper extension but the one thing really bothering me is the reliance on PHP error's vs Exceptions.The original source is here: http://github.com/andreiz/php-zookeeper/blob/master/php_zookeeper.c#L209Instead it would be nicer to throw up a Zookeeper_NodeNotExists or similar except I have no idea what the API call in c is. I've tried googling and got a cornucopia result set of Exceptions in the PHP language, the PHP manual doesn't seem to mention them, and I can't remember which PHP stock extensions throw exception for you. Is there an alternative source of documentation on the PHP/Zend c API out there?
 
Back
Top