[PHP-DEV] Bug #904: %n in log_error crashes apache From: bschaffner <email protected>
Date: 11/06/98

From: bschaffner <email protected>
Operating system: FreeBSD 3.0-RELEASE
PHP version: 3.0.5
PHP Bug Type: Reproduceable crash
Bug description: %n in log_error crashes apache

I thought it was an apache problem, however, aplog_error (actually ap_log_error) in main.c (224) should escape any % signs before sending the log message to apache. ap_error_log expects a format string followed by varargs - but we're only ever sending the log message - so we need to do a find/replace of every % with %% in order to keep apache from crashing.

-brian-

--
PHP Development Mailing List   http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
For help: php-dev-help <email protected>