Subversion Repositories simple_log_event

Rev

Rev 2 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2 Rev 3
Line 25... Line 25...
25
} catch (Exception $e) {
25
} catch (Exception $e) {
26
        die('Error calling object ViaThinkSoftSimpleEventLog. Was the DLL file registered correctly? (Error: '.$e->getMessage().')');
26
        die('Error calling object ViaThinkSoftSimpleEventLog. Was the DLL file registered correctly? (Error: '.$e->getMessage().')');
27
}
27
}
28
 
28
 
29
if (PHP_INT_SIZE == 8) {
29
if (PHP_INT_SIZE == 8) {
30
        $x->LogEvent(LOGEVENT_MSG_WARNING, 'This is a test warning written by 64 bit PHP');
30
        $x->LogEvent('MySourceName', LOGEVENT_MSG_WARNING, 'This is a test warning written by 64 bit PHP');
31
} else if (PHP_INT_SIZE == 4) {
31
} else if (PHP_INT_SIZE == 4) {
32
        $x->LogEvent(LOGEVENT_MSG_WARNING, 'This is a test warning written by 32 bit PHP');
32
        $x->LogEvent('MySourceName', LOGEVENT_MSG_WARNING, 'This is a test warning written by 32 bit PHP');
33
} else {
33
} else {
34
        // Should never happen!
34
        // Should never happen!
35
        $x->LogEvent(LOGEVENT_MSG_WARNING, 'This is a test warning written by whatever-bit PHP');
35
        $x->LogEvent('MySourceName', LOGEVENT_MSG_WARNING, 'This is a test warning written by whatever-bit PHP');
36
}
36
}