note 110197 added to class.exception

From: Date: Fri, 28 Sep 2012 19:40:52 +0000
Subject: note 110197 added to class.exception
Groups: php.notes 
Request: Send a blank email to php-notes+get-191070@lists.php.net to get a copy of this message
when you are using xdebug, exceptions message will never be shown if you use any encoding different than UTF-8, so if you are using any database with translated messages like oracle, you should ALWAYS, always, throw a exception like this throw new Exception(utf8_encode($message),$code), character like ã,é,ç, will make the exception message fail to be shown, if you are not using xdebug ( I do think you should at least try), this code will not affect your page. ---- Server IP: 69.147.83.199 Probable Submitter: 177.43.218.10 ---- Manual Page -- http://www.php.net/manual/en/class.exception.php Edit -- https://master.php.net/note/edit/110197 Del: integrated -- https://master.php.net/note/delete/110197/integrated Del: useless -- https://master.php.net/note/delete/110197/useless Del: bad code -- https://master.php.net/note/delete/110197/bad+code Del: spam -- https://master.php.net/note/delete/110197/spam Del: non-english -- https://master.php.net/note/delete/110197/non-english Del: in docs -- https://master.php.net/note/delete/110197/in+docs Del: other reasons-- https://master.php.net/note/delete/110197 Reject -- https://master.php.net/note/reject/110197 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#191070) next »