Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F726840
D308.id.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
Mon, Jan 6, 1:39 AM
Size
633 B
Mime Type
text/x-diff
Expires
Tue, Jan 7, 1:39 AM (2 d, 12 h ago)
Engine
blob
Format
Raw Data
Handle
536930
Attached To
D308: INP-1705 - Make "Session::NeedQueryString" method always return "false" when in CLI
D308.id.diff
View Options
Index: branches/5.2.x/core/kernel/session/session.php
===================================================================
--- branches/5.2.x/core/kernel/session/session.php
+++ branches/5.2.x/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;
}
Event Timeline
Log In to Comment