Re: Logging within Extension
| From: | Michael B Allen | Date: | Wed, 21 Dec 2005 04:47:50 +0000 |
| Subject: | Re: Logging within Extension | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-227760@lists.php.net to get a copy of this message | ||
On Tue, 20 Dec 2005 20:02:58 -0500
Michael B Allen <mba2000@ioplex.com> wrote:
> I'm writing a PHP 4 extension and I would like to write debugging
> information to the Apache error log.Does anyone know how to do
> that? Basically I want error_log() but for within a C extension.
And the answer is php_error_docref. For example:
php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Undefined variable: %s", varname);
Mike