Re: How to get error context

From: Date: Fri, 14 Mar 2008 14:40:49 +0000
Subject: Re: How to get error context
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-271571@lists.php.net to get a copy of this message
For example "mysql_connect" reprted automatically the error but in the manual http://us3.php.net/manual/en/function.mysql-connect.php all they give as information is the return: "Returns a MySQL link identifier on success, or FALSE on failure.", where can i see if it throws an error, and when you say throwing do you mean that i can catch the error without throwing it myself? --- Zoltán Németh <znemeth@alterationx.hu> wrote: > 2008. 03. 14, péntek keltezéssel 07.20-kor It Maq > ezt írta: > > So i'm wondering if there are some rules > > that can help me know if an error will be reported > > automatically or not. > > there is no general rule for that. you have to check > the manual for each > function, some of them just returns false on error, > others throw > warnings/notices/errors... > > greets, > Zoltán Németh > > ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs

« previous php.general (#271571) next »