Project

General

Profile

Actions

Bug #2171

closed

PHP fast-cgi and exit behaviour

Added by Ermal Luçi over 13 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Web Interface
Target version:
-
Start date:
02/08/2012
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
All
Affected Architecture:

Description

All present php scripts in pfSense call exit after sending a redir or finding an error or wanting to just finish processing.

This is not a desirable behaviour in FCGI case since calling exit shutdowns the php process and lighty is forced to re-spawn another php-fcgi process/instance.

This usually means lighty is doing a lot of work to keep php-working and also sometimes this is the issue with not being able to execute more than one request at a time.

The solution would be to s/exit/return/ but than the return value from require/include[_once] is needed to be checked.

This will help in performance and issues described above and probably the cause of some weird bugs fixed by hacks in the way.

Actions

Also available in: Atom PDF