php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50751 Setting memcache handler by ini_set doesn't work with enabled safe_mode
Submitted: 2010-01-14 14:29 UTC Modified: 2010-01-15 08:54 UTC
From: kukulich at kukulich dot cz Assigned:
Status: Not a bug Package: Session related
PHP Version: 5.3.1 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: kukulich at kukulich dot cz
New email:
PHP Version: OS:

 

 [2010-01-14 14:29 UTC] kukulich at kukulich dot cz
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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-01-15 08:54 UTC] jani@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 05:01:27 2024 UTC