I noticed that you changed the default session.save_path to
/var/lib/php5/sessions, which I think is a great idea (I have no idea
what the modules/ dir is for).

In order to align the HHVM packaging with the Debian PHP packaging I
have some questions:

1. Will PHP 5.6 be the default in Ubuntu 14.10?
2. Will these updated be present in 14.04.x?
3. Will these changes be present in PHP 5.5.x?
4. Are you going to be the Debian-side maintainer for the Debian-repo HHVM 
package?

The note to "see /usr/lib/php5/maxlifetime" is no longer needed as it doesn't 
exist
http://anonscm.debian.org/cgit/pkg-php/php.git/tree/debian/php5-common.php5.cron.d?h=master-5.6

I was able to get php-cgi working, and it uses the binary named php5
(assuming the user follows the example in "/etc/apache2/conf-available
/serve-cgi-bin.conf").  Since the name php5 is ambiguous with
/usr/bin/php5, we can pass the full path to the executable, "/usr/lib
/cgi-bin/php5", to pidof.

This latest script builds on the last one, but is over 2x faster by
avoiding multiple calls to PHP per SAPI.  Instead, it uses
foreach(ini_get_all("session")) to get all the session config options,
then uses simple commands to parse config options out.  It seems like
this is a little overkill, but I think it makes the code a bit more
readable, and it's a lot less expensive since PHP doesn't need to start
up with all of its modules 3 times for each SAPI.

** Attachment added: "sessionclean"
   
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1356113/+attachment/4181227/+files/sessionclean

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1356113

Title:
  PHP5 session clean cron job causes OOM

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1356113/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to