Re: [PHP4BETA] cvs: php4 /sapi/thttpd/ thttpd.c
| From: | Jonas Jochum | Date: | Wed, 17 May 2000 18:21:16 +0000 |
| Subject: | Re: [PHP4BETA] cvs: php4 /sapi/thttpd/ thttpd.c | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-15132@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am 17.05.00 um 17:04 hat Sascha Schumann geschrieben:
SS>sas Wed May 17 19:04:46 2000 EDT
SS> Modified files:
SS> /php4/sapi/thttpd thttpd.c
SS> Log:
SS> Fix build against recent thttpd versions
SS>Index: php4/sapi/thttpd/thttpd.c
SS>diff -u php4/sapi/thttpd/thttpd.c:1.11 php4/sapi/thttpd/thttpd.c:1.12
SS>--- php4/sapi/thttpd/thttpd.c:1.11 Sun Feb 20 00:41:27 2000
SS>+++ php4/sapi/thttpd/thttpd.c Wed May 17 19:04:46 2000
SS>@@ -172,7 +172,7 @@
SS> snprintf(buf, BUF_SIZE, "/%s", TG(hc)->origfilename);
SS> ADD_STRING("SCRIPT_NAME");
SS>
SS>- strncpy(buf, inet_ntoa(TG(hc)->client_addr), BUF_SIZE);
SS>+ strncpy(buf, inet_ntoa(TG(hc)->client_addr.sa_in.sin_addr), BUF_SIZE);
SS> ADD_STRING("REMOTE_ADDR");
SS> ADD_STRING("REMOTE_HOST");
hmm...didn't my patch get through?
BTW, that's not all, that has to be fixed. thttpd_patch is b0rken,too.
Want me to make a diff?
Even with that patch, thttpd does _not_ work. It always segfaults, when
accessing a .php page:
-- cut --
Program received signal SIGSEGV, Segmentation fault.
0x8055ee4 in thttpd_request_ctor () at thttpd.c:236
236 pathinfo_len = strlen(TG(hc)->pathinfo);
-- end --
- --
MfG,
Jonas Jochum
commandline net services
- -------------------------------------------------------------------------
tel: 07223-911794 | cmd:~ # Systemadministration, Netzwerkverwaltung
fax: 07223-911795 | cmd:~ # Einrichtung von *BSD/Linux-Servern
d2 : 0173-5712481 | cmd:~ # Datenbank/Internetprogrammierung
jj@commandline.de | cmd:~ # Webdesign
www.commandline.de |
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (FreeBSD)
Comment: Made with pgp4pine
iEYEARECAAYFAjki4x4ACgkQF1ki3orczCDivgCfT28a2n74HdrNY0px4Fil/fN/
wgYAn1kMh+cvN7rDte0eka0UIL/ihy9n
=/oLc
-----END PGP SIGNATURE-----