On Tue, 20 Dec 2005 20:02:58 -0500
Michael B Allen <[EMAIL PROTECTED]> 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to