jodrell/php-epp — pull request #3 by nkukard (2013-03-08 15:38:20+00:00)
Title: Update Net::EPP to use exceptions & remove dependency on PEAR

Hi Jodrell,

We really don't need to have a dependency on PEAR for PHP-EPP. Attached please find a patch to update the code to use standard exceptions instead. This should be very flexible going forward and minimise the amount of additional libraries one must pull in to use PHP EPP.

This also adds another check so we catch a timeout when we try open up a SSL server without SSL and get stuck on the non-blocking fread. SSL expects a handshake, seeing as we get stuck in a loop we killed by PHP when we hit the default 30s execution time. Connection errors also seem to be caught by exceptions, and where they killed php, its now caught and returned nicely using exceptions.

-N