Added error documents and 203 response if webroot does not exist

This commit is contained in:
2021-03-11 20:19:14 +01:00
parent b6c7d8f58e
commit 26d54e9968
5 changed files with 127 additions and 14 deletions

17
src/debug.c Normal file
View File

@ -0,0 +1,17 @@
//
// Created by lorenz on 17.01.21.
//
#include "fastcgi.c"
#include "http.c"
#include "sock.c"
const char *msg = "PHP message: PHP Notice: Undefined index: Verifiedd in /srv/necronda/www.necronda.net/admin/users.php on line 58PHP message: PHP Notice: Undefined index: Verifiedd in /srv/necronda/www.necronda.net/admin/users.php on line 58PHP message: PHP Notice: Undefined index: Verifiedd in /srv/necronda/www.necronda.net/admin/users.php on line 58PHP message: PHP Notice: Undefined index: Verifiedd in /srv/necronda/www.necronda.net/admin/users.php on line 58PHP message: PHP Notice: Undefined index: Verifiedd in /srv/necronda/www.necronda.net/admin/users.php on line 58PHP message: PHP Notice: Undefined index: Verifiedd in /srv/necronda/www.necronda.net/admin/users.php on line 58PHP message: PHP Notice: Undefined index: Verifiedd in /srv/necronda/www.necronda.net/admin/users.php on line 58PHP message: PHP Notice: Undefined index: Verifiedd in /srv/necronda/www.necronda.net/admin/users.php on line 58";
int main() {
char err[256];
int ret = fastcgi_php_error(msg, strlen(msg), err);
printf("%i\n", ret);
return 0;
}