in reply to Pattern for a shell-style call + error response

I suggest setting up a NO_ERR constant that equals 0 and then doing:
$item->frobinize(...) == NO_ERR 
    or die($libobj->GetErrorCode);
  • Comment on Re: Pattern for a shell-style call + error response