Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58981 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59255 invoked from network); 17 Mar 2012 01:33:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Mar 2012 01:33:13 -0000 Authentication-Results: pb1.pair.com header.from=langwanluo@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=langwanluo@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.210.170 as permitted sender) X-PHP-List-Original-Sender: langwanluo@gmail.com X-Host-Fingerprint: 209.85.210.170 mail-iy0-f170.google.com Received: from [209.85.210.170] ([209.85.210.170:60807] helo=mail-iy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 18/43-43639-8D9E36F4 for ; Fri, 16 Mar 2012 20:33:12 -0500 Received: by iaeh11 with SMTP id h11so7374152iae.29 for ; Fri, 16 Mar 2012 18:33:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:date:message-id:subject:from:to:content-type; bh=Kon9+00Uk7oa7KsUvUbXScZMdQ/QuE2/LYgwqRs86k8=; b=m1CTkQGVjlCY3LLQn4anhJhgkgzKVt9cAVlmV9ID0yAugGRV4TEzWKtAPS2b7TPbyV HljOL1w4Fs6FRWlUyIZasf2xj1h39fd+1LsTpBW9X18Jjk2NXaLnTIjpsmeTbCR6y9MO 5R+YrFSttGUenaDvj4Qkwj6gzkB3SFX2bMV7NVw1iwViTe97+XMBdtCj4yWTHo+SPEVg mJHSWjBM2m9j/3LdO/UJLYnRRntK9jJAfyk1K0Rlo8/4udSNzCovllIUp6NdNiz+5N2J 7LzFKzvJkisaQycSO2VXTG3fOn8ut+SUVHPy9NXC3sksezcMnGflQPAST3yMvS+Tm9u/ sRyw== MIME-Version: 1.0 Received: by 10.50.77.138 with SMTP id s10mr908458igw.48.1331947990113; Fri, 16 Mar 2012 18:33:10 -0700 (PDT) Received: by 10.42.7.70 with HTTP; Fri, 16 Mar 2012 18:33:10 -0700 (PDT) Reply-To: langwanluo@gmail.com Date: Sat, 17 Mar 2012 09:33:10 +0800 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=e89a8f3ba95bcf5bc304bb664ee6 Subject: i hope using set_exception_handler and set_error_handler in php extension code. From: langwanluo@gmail.com (langwan) --e89a8f3ba95bcf5bc304bb664ee6 Content-Type: text/plain; charset=ISO-8859-1 i hope using set_exception_handler and set_error_handler in php extension code. hi, all: i write php monitor extension now. 1. question i hope using set_exception_handler or set_error_handler in PHP_RINIT_FUNCTION() for example: PHP_RINIT_FUNCTION(my) { set_exception_handler(my_exception_handler); } please help me. 2. question i hope print $e->getMessage() info in PHP_FUNCTION(my_exception_handler). thk all help me. -- langwan --e89a8f3ba95bcf5bc304bb664ee6--