Best way to implement try catch in php4

The closer you can get into try-catch block in php4?

I am in the middle of a callback during an xmlrpc request, and it should return a specially structured array no matter what.

I need to check all calls to external resources, which will lead to a deep stack of nested if-else blocks, ugly.

+3
source share
1 answer

Late answer, I understand, sorry. I hope this is still relevant for you:

First, I repeat the comments you received in response to your post. PHP5 is the way to go.

But:

xmlrpc, , .

, , , PHP4, exit() die() , , .

, . - , , - , . , - , -, , .

, PEAR.

+3

Source: https://habr.com/ru/post/1706347/


All Articles