Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1175907
D308.id745.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Oct 5, 5:59 AM
Size
666 B
Mime Type
text/x-diff
Expires
Mon, Oct 6, 5:59 AM (18 h, 18 m)
Engine
blob
Format
Raw Data
Handle
762747
Attached To
D308: INP-1705 - Make "Session::NeedQueryString" method always return "false" when in CLI
D308.id745.diff
View Options
Index: core/kernel/session/session.php
===================================================================
--- core/kernel/session/session.php
+++ core/kernel/session/session.php
@@ -709,7 +709,7 @@
$result = false;
switch ($this->Mode) {
case self::smAUTO:
- if (!$this->CookiesEnabled) {
+ if ( !$this->CookiesEnabled && PHP_SAPI !== 'cli' ) {
$result = true;
}
break;
@@ -719,7 +719,9 @@
case self::smGET_ONLY:
case self::smCOOKIES_AND_GET:
- $result = true;
+ if ( PHP_SAPI !== 'cli' ) {
+ $result = true;
+ }
break;
}
@@ -1127,4 +1129,4 @@
return $ret;
}
-}
\ No newline at end of file
+}
Event Timeline
Log In to Comment