Bug #18204: Wrong calls of ap_register_output_filter and ap_register_input_filter functions
| From: | krok at void dot ru | Date: | Sun, 07 Jul 2002 01:18:18 +0000 |
| Subject: | Bug #18204: Wrong calls of ap_register_output_filter and ap_register_input_filter functions | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-13346@lists.php.net to get a copy of this message | ||
From: krok@void.ru
Operating system: FreeBSD 4.6-RELEASE-p1 i386
PHP version: 4CVS-2002-07-06
PHP Bug Type: Compile Failure
Bug description: Wrong calls of ap_register_output_filter and ap_register_input_filter functions
There are wrong calls of ap_register_output_filter and
ap_register_input_filter functions in the php_register_hook function.
File sapi/apache2filter/sapi_apache2.c lines 567 and 568.
Instead of
ap_register_output_filter("PHP", php_output_filter, NULL,
AP_FTYPE_RESOURCE);
ap_register_input_filter("PHP", php_input_filter, NULL,
AP_FTYPE_RESOURCE);
you must use
ap_register_output_filter("PHP", php_output_filter, AP_FTYPE_RESOURCE);
ap_register_input_filter("PHP", php_input_filter, AP_FTYPE_RESOURCE);
because in the apache2 api there are only three parameters in these
functions.
--
Edit bug report at http://bugs.php.net/?id=18204&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18204&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18204&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18204&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18204&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18204&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18204&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18204&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18204&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18204&r=globals