Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function classFunction($param) {
- static $soapServer = null;
- if(!isset($soapServer)){
- $soapServer = $param;
- } else {
- $soapServer->fault(0, $param->getMessage());
- }
- }
- $ss = new SoapServer();
- //первыи вызов - конструктор
- classFunction($ss);
- try {
- //...
- } catch (Exception $e) {
- classFunction($e);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement