fork(4) download
  1. <?
  2. try {
  3. $siteId = 3;
  4. if(1 !== 2) {
  5. throw new Exception('1 does not equal 2!');
  6. }
  7. } catch(Exception $e) {
  8. $moreInfo = '';
  9. if(isset($siteId)) {
  10. $moreInfo .= ' SiteIdĀ»' . $siteId;
  11. }
  12. echo 'Error' . $moreInfo . ':' . $e->getMessage();
  13. }
Success #stdin #stdout 0.01s 20568KB
stdin
Standard input is empty
stdout
Error SiteId»3:1 does not equal 2!