Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:16260 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21011 invoked by uid 1010); 16 May 2005 23:02:32 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 95311 invoked from network); 16 May 2005 22:41:45 -0000 Received: from unknown (HELO omniti.com) (127.0.0.1) by localhost with SMTP; 16 May 2005 22:41:45 -0000 X-Host-Fingerprint: 66.80.117.3 longsword.omniti.com Linux 2.5 (sometimes 2.4) (4) Received: from ([66.80.117.3:51951] helo=mail.omniti.com) by pb1.pair.com (ecelerity 1.2 r(5656M)) with SMTP id 2A/7A-01538-8A129824 for ; Mon, 16 May 2005 18:41:44 -0400 DomainKey-Status: good X-DomainKeys: Ecelerity dk_sign implementing draft-delany-domainkeys-base-01 DomainKey-Signature: q=dns; a=rsa-sha1; c=nofws; s=test; d=omniti.com; h=Received:In-Reply-To:References:Mime-Version:Content-Type:Message-Id:Cc:Content-Transfer-Encoding:From:Subject:Date:To:X-Mailer; b=M0eNVEyEApKtxkIno+E5qagsDia+isS37ATIWDauMhhYZjA4w6gItk1mRgOJYrgv uUkWQvP+oVi5yAA2o/koGVHogNR5ubULcoS/qNymeKrUNECX9lDKtpxNN1Izl/Mb Received: from ([66.80.117.2:64552] helo=[10.80.116.150]) by mail.omniti.com (ecelerity HEAD r(4355M)) with SMTP id 48/E2-25344-7B129824 for ; Mon, 16 May 2005 18:42:02 -0400 In-Reply-To: <4288F183.7010804@3gupload.com> References: <4288F183.7010804@3gupload.com> Mime-Version: 1.0 (Apple Message framework v728) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-ID: Cc: George Schlossnagle , internals@lists.php.net Content-Transfer-Encoding: 7bit Date: Mon, 16 May 2005 18:41:36 -0400 To: Blake Matheny X-Mailer: Apple Mail (2.728) Subject: Re: [PHP-DEV] Patch for php_error_cb From: george@omniti.com (George Schlossnagle) On May 16, 2005, at 3:16 PM, Blake Matheny wrote: > Attached is a small patch that allows for a custom error handler to > be used instead of php_log_err. This is useful for custom logging > of error types that can't be handled with a user-space error > handler (such as E_ERROR, E_PARSE, etc.). > > In order to use a custom error handler set error_log to so:/path/to/ > so in the php.ini file, where the shared object has a function > called error_handler with the following prototype: > This is already possible without your patch: just write a php extension and change the zend_error_cb function pointer to your custom C function in MINIT. George