projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ebb595
)
Don't start a session on CLI.
author
Jan Schneider
<jan@horde.org>
Thu, 19 Nov 2009 23:28:45 +0000
(
00:28
+0100)
committer
Jan Schneider
<jan@horde.org>
Thu, 19 Nov 2009 23:35:03 +0000
(
00:35
+0100)
framework/Core/lib/Horde/Registry.php
patch
|
blob
|
history
diff --git
a/framework/Core/lib/Horde/Registry.php
b/framework/Core/lib/Horde/Registry.php
index
007105f
..
c762a78
100644
(file)
--- a/
framework/Core/lib/Horde/Registry.php
+++ b/
framework/Core/lib/Horde/Registry.php
@@
-139,7
+139,10
@@
class Horde_Registry
}
/* Start a session. */
- if ($session_flags & self::SESSION_NONE) {
+ if ($session_flags & self::SESSION_NONE ||
+ (PHP_SAPI == 'cli') ||
+ (((PHP_SAPI == 'cgi') || (PHP_SAPI == 'cgi-fcgi')) &&
+ empty($_SERVER['SERVER_NAME']))) {
/* Never start a session if the session flags include
SESSION_NONE. */
$_SESSION = array();