|
Posted by Michael B Allen on 12/21/05 06:47
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
Navigation:
[Reply to this message]
|