Re: Re: User error handler must not modify error context

From: Date: Tue, 20 Sep 2005 03:09:32 +0000
Subject: Re: Re: User error handler must not modify error context
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-222718@lists.php.net to get a copy of this message
Noel wrote:
Actually, that's all of it aside from the function statement and the return statement. function funcTitle ($title='') {
        global $mywebsite;
        if ($_POST['title']) $title = $_POST['title'];
        elseif ($_GET['title']) $title = $_GET['title'];
        elseif (!$title) $title = $mywebsite;
        return '<title>'.$title.'</title>';
        }
I don't see anything wrong with the code, do you? After all, the error does not occur if I try to comment out the user_error_handler() function. And also, this error didn't occur in the previous version. Nothing has been modified in the PHP codes when the PHP version has been upgraded to 4.4. Only after the upgrade did this error occurred.
Please don't top-post. Sorry, I assumed that code was part of your error_handler. Can you please post your user_error_handler() function? Thanks -- Jasper Bryant-Greene Freelance web developer http://jasper.bryant-greene.name/

« previous php.general (#222718) next »