Is there a constant or env. variable that stores the last error created? The one that is returned via error_get_last?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t mean to be sarcastic (well, yes, but only a little), but you do know the PHP manual has a “See also” section, right? Looking at the page for
error_get_last(), I found this little gem: The $php_errormsg variableOf course, that variable has some limitation (i.e. only works in the scope that the error occurred in, and only if
track_errorsis on).But actually, why do you want to use a variable. The point of
error_get_last()is to give you the last error, so why not use that?