I had to make these changes in the file
php-4.2.3/sapi/apache2filter/sapi_apache2.c
line 567: change to
ap_register_output_filter("PHP", php_output_filter, AP_FTYPE_RESOURCE);
line 568 change to:
ap_register_input_filter("PHP", php_input_filter, AP_FTYPE_RESOURCE);
(remove the "NULL" argument to from both of the functions)
yves