-
Notifications
You must be signed in to change notification settings - Fork 341

Description
Hi,
i'm using Apache and PHP and I noticed that when I use:
Php::out << content << flush();
and do multiple page requests the process will be terminated with this error: "AH00428: Parent: child process 2512 exited with status 255 -- Restarting."
My current solution for this problem is a std::mutex around it but then i do requests more or less sequentially and not simultaneously :(
Basically what I want to do is to generate the page with header depending on the current request and return it to the client:
// Set the headers
const size_t headerSize = headers.size();
for (size_t i = 0; i < headerSize; ++i)
Php::call("header", headers[i]); // btw: is there any better way to set the header ?
// Set the content
Php::out << content;
Php::out.flush();
My Setting:
Windows 7(x64), Apache 2.4.9(x86), Php 5.5.12ts(x86) and Visual Studio 2013.