How to call standard PHP error handler and die script execution?

    Date: 11/09/07 (PHP Community)    Keywords: php

    The problem is: I want to call standard PHP error handler and die script execution after it.
    I need in standard PHP error handler for writing error to syslog.

    I have defined my errorHandler():

    function errorHandler($errno, $errmsg, $filename, $linenum) {
        exit;
    }
    set_error_handler(errorHandler);
    


    All works, but standard PHP error handler are not calling.
    OK, I delete “exit;” and write “return false;” instead of it — standard error handler are calling, but script continue execution.

    Of course, I can write error to syslog by myself and it is not difficult but I would to find other way.

    Source: http://community.livejournal.com/php/595604.html

« DBA (db4) as cache before... || URL normalization »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home