Correction : php5-fpm & MySQL : is not a valid MySQL-Link resource.
authorJulien Moutinho <julm+heureux-cyclage@autogeree.net>
Tue, 24 Sep 2013 11:06:04 +0000 (13:06 +0200)
committerroot <root@ateliers.heureux-cyclage.org>
Tue, 24 Sep 2013 11:33:06 +0000 (13:33 +0200)
commit4e0412adb2eafeb71122b2f41c12b4bf2d138ed7
tree9c7b1e7f5f495eace45a65046f095f253b022db6
parent3c8a5d1eb8a8b6fa82989fbe32fbd5412d845e0b
Correction : php5-fpm & MySQL : is not a valid MySQL-Link resource.

NOTE: fix things like this :
Warning:  mysql_select_db(): 2 is not a valid MySQL-Link resource in test.php
which is likely due to php5-fpm not correctly destroying all PHP variables ;
uses auto_prepend_file in php.ini :
- works when script ends or exit() is called;
- works when mysql.so is loaded or not;
- not sure if this works with multiple MySQL connexions.
etc/php5/fpm/auto_prepend_file.php [new file with mode: 0644]
etc/php5/fpm/php.ini
etc/php5/fpm/pool.d/lhc_wiklou/php-fpm.conf
etc/php5/fpm/pool.d/lhc_www/php-fpm.conf
etc/php5/fpm/pool.d/ptitvelo_www/php-fpm.conf
etc/sv/php5-fpm/local.sh