I am having a problem with my custom errorhandler "ignoring" the exit (or die) inside the handler. I have experienced it with several mssql_* functions. php 4.0.6 and php 4.0.7 running in cgi mode on iis 5 Try the code below: using an invalid servername, it behaves properly (returns an error). But if you have a valid servername, and invalid username/password the script never finishes. The browser will time out. This also happens if you have a valid servername/username/password, but invalid db name. Or of you can connect, but pass an invalid query. (not in this code snippet) Can anyone else reproduce this problem? Am I doing something wrong? It makes using a custom error handler useless... <?php $old_error_handler = set_error_handler("myEH"); $db_hostname = "servername"; $db_username = "username"; $db_password = "password"; $db_dbname = "dbname"; MSSQL_CONNECT($db_hostname,$db_username,$db_password) ; mssql_select_db($db_dbname); echo "Logged in OK!"; function myEH($errno, $errstr, $errfile, $errline, $context) { if ($errno<8) { echo 'Sorry, there was an error.'; exit(); } } ?> Thanks for any insight! Bryan __________________________________________________ Do You Yahoo!? Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger http://im.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]