| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
| |
As for Bug #64915
Systemd use --nodaemonize but need to error_log to file or syslog to be honoured
|
| |
|
|
|
|
|
|
| |
We had an infinite loop in sapi_cli_server_send_headers(): while iterating over
the linked list of headers, when an empty header was hit, continue would go to
the next iteration of the loop without updating h to be the next value in the
linked list. Updating it to always increment regardless of whether the header
is actually valid or not fixes the issue.
|
| |
|
|
| |
This reverts commit a0ecb3794f00e65cd2a073b2073e32d6c2fb7180.
|
| |
|
|
|
| |
error_log is listed in FPM_PHP_INI_TO_EXPAND,
but should not be expand when value = syslog
|
| |
|
|
|
| |
As for Bug #64915
Systemd use --nodaemonize but need to error_log to file or syslog to be honoured
|
| | |
|
| |
|
|
| |
Implements FR #67429 (CLI server is missing some new HTTP response codes).
|
| |
|
|
|
|
|
|
| |
Reproduce on aarch64.
From select man page:
"select() may update the timeout argument to indicate how much time was left."
So "const" is not ok.
|
| | |
|
| |
|
|
| |
This patch fixes descriptor leak which could lead to DoS once Max open files is reached
|
| |
|
|
| |
in php-fpm.conf
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
This makes it possible to leave the envoronment as is on startup and
pass all the variables to the workers.
The default value of clear_env is "yes", preserving previous behaviour.
Patch by Paul Annesley.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
encoding)
|
| |
|
|
| |
Fixes bug #65633 (built-in server treat some http headers as case-sensitive).
|
| |
|
|
| |
uninitialized' warnings.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When CLI was not built but only CGI binary, then a sequence of
$ ./buildconf
$ ./configure --prefix=/usr/local/phpcgi --disable-cli
$ make -j8
$ sudo rm -rf /usr/local/phpcgi
$ sudo make install
results in the following error:
/bin/bash /srv/smb/php-src.test/libtool --silent --preserve-dup-deps --mode=install cp ext/opcache/opcache.la /srv/smb/php-src.test/modules
Installing shared extensions: /usr/local/phpcgi/lib/php/extensions/no-debug-non-zts-20121212/
Installing PHP CGI binary: /usr/local/phpcgi/bin/
cp: cannot create regular file `/usr/local/phpcgi/bin/#INST@28245#': No such file or directory
make: *** [install-cgi] Fehler 1
The solution is to create the binary directory before copying the
CGI binary as e.g. CLI does.
Signed-off-by: Oliver Metz <oliver.metz@gmx.de>
[extensive commit message]
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
cli usage
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
Currently php-cgi man page is a simple redirect to
php (CLI) man page.
Could be splited / improved in the future.
|
| |
|
|
| |
chibisuke at web dot de
|
| |
|
|
|
| |
Specifically: php_cli_server_http_reponse_status_code_pair →
php_cli_server_http_response_status_code_pair.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This previously used a buggy implementation of binary search that would loop
infinitely for unknown codes when searching in reason arrays of particular
sizes (such as the one we have at the moment). Since C provides bsearch(),
we'll just use that instead, since libc authors hopefully get this right.
There was also an additional bug that was masked by the first one: the design
was that an unknown code would result in get_status_string() returning NULL,
which would then result in a segfault in append_http_status_line(), since it
assumed that it would always receive a valid string pointer that could be
handed off to smart_str_appends_ex(). We'll now return a placeholder in that
case.
Fixes bug #65066 (Cli server not responsive when responding with 422 http
status code).
|
| | |
|
| |
|
|
|
| |
* pull-request/341: (23 commits)
typofixes
|
| | |
|
| | |
|
| |
|
|
|
| |
Use configured error_log file when stderr is not a tty.
So only use tty during interactive debug run.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
systemd_interval option to configure this. The service can now use
Type=notify in the systemd unit file.
Systemd status line will looks like:
Status: "Processes active: 0, idle: 5, Requests: 90, slow: 0, Traffic: 10req/sec"
Watchdog mode is also supported. In this case watchdog interval,
configured in the unit file, override the systemd_interval option.
When not used (default), no change from previous version.
|
| |\
| |
| |
| |
| | |
* PHP-5.3:
From code coverity scan, syscall return value must be check.
|
| | |
| |
| |
| |
| |
| |
| |
| | |
To not alter current behaviour, we simply log the problem,
so, if it occurs, the message will give explanation.
This are only warning as they don't block the server,
but such fail can explain strange (not expected) behaviour later.
|
| |\ \
| |/
| |
| |
| | |
* PHP-5.3:
fix more resource leaks
|
| | | |
|
| |\ \
| |/
| |
| |
| | |
* PHP-5.3:
From code coverity scan - fix some memory leak - fix some resources leak (fd) - create fpm_worker_pool_free (shared use) - possible null dref (wp->user and wp->home can be null)
|
| | |
| |
| |
| |
| |
| |
| | |
- fix some memory leak
- fix some resources leak (fd)
- create fpm_worker_pool_free (shared use)
- possible null dref (wp->user and wp->home can be null)
|
| |\ \
| |/
| |
| |
| | |
* PHP-5.3:
fixed size array cannot be null
|
| | | |
|