SuPHP patches

Feedback should probably be sent to the suphp mailing list.

Everything here Works For Me [TM]. No warranty.

Sander van Beek's PHP 4/5 patch for apache 2

PATCH
I had trouble getting Sander van Beek's patch from the mailinglist due to whitespace issues. I managed to get it into a shape that works for me. It's available here for others with the same problem.

getenv PHP_VERSION

PATCH
Requires PHP4/5 patch.
While trying to debug suphp config problem I ran into this bug.

I tried to run suphp from commandline, got a number of errors on env variables that I should set which I fixed, then a segfault. Turns out that for the PHP_VERSION getenv call the returncode is not checked.

Now my C skills are a bit rusty (about 10 years worth of rust), but I think this patch should fix this issue.

Set argv[0] for php correctly

PATCH
Requires PHP4/5 patch.
/usr/bin/php, or whatever the path to php is configured to be, instead of using the paths to php4 and php5.

This patch fixes that, although probably not in the most elegant way. As I said, my C is a bit rusty. :)

Extend PHP support to version 3

PATCH
Requires all the patches above.

Cumulative patch

PATCH
Above patches, all wrapped into one.


Author: Tobias Nijweide
Last update: 2005-02-11