|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-01-15 08:54 UTC] jani@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 04:00:02 2025 UTC |
Description: ------------ Setting memcache handler by ini_set doesn't work with enabled safe_mode. It works with disabled safe_mode. It also works if handler and save_path are set in php.ini. Reproduce code: --------------- <?php ini_set('session.save_handler', 'memcache'); ini_set('session.save_path', 'tcp://localhost:11211'); session_start(); Expected result: ---------------- No fatal error Actual result: -------------- Warning: ini_set(): Unable to access tcp://localhost:11211 in C:\Program Files\Apache2\htdocs\bug.php on line 4 Fatal error: session_start(): Failed to initialize storage module: memcache (path: C:/Program Files/Apache2/temp) in C:\Program Files\Apache2\htdocs\bug.php on line 6