Warning about missing $_SERVER['REQUEST_URI'], while working from PHP CLI
Components
Labels
None
Description
Context Information
None
Additional information (do not use)
None
Attachments
1
- 27 Dec 2010, 02:13 PM
Activity
Show:
Alex September 19, 2011 at 9:08 PM
Closing, since 5.1.3 release has been released.
Alex May 20, 2011 at 8:16 AM
Fix committed to [b]5.1.x branch/b. Commit Message:
Fixes #0000954: Warning about missing $_SERVER['REQUEST_URI'], while working from PHP CLI
Dmitry Andrejev December 27, 2010 at 3:24 PM
Tested good, please commit when it's time.
Fixed
Priority
Assignee
Reporter
Alex
AlexDeveloper
Alex
AlexChange Log Message
Fixed warning about missing $_SERVER['REQUEST_URI'] variable
Patch Instructions
Patches must be submitted through Phabricator.
To submit patch via Command Line use Patches Workflow (via Arcanist) tutorial.
To submit patch via Web Interface use Patches Workflow (via Web Interface) tutorial.
External issue ID
954
External issue URL
Fix versions
Affects versions
Created December 27, 2010 at 2:13 PM
Updated December 29, 2024 at 9:14 PM
Resolved September 19, 2011 at 9:08 PM
I'm getting warning about missing $_SERVER['REQUEST_URI'] variable, when In-Portal is executed from PHP CLI, since there are no $_SERVER at all in PHP CLI.
Warning isn't visible on the screen, since error reporting is turned off in In-Portal in this case. However this causes problems, when this $_SERVER['REQUEST_URI'] is written into database in NOT NULL column resulting
ERROR 1048 (23000): Column 'PageUrl' cannot be null error (this is in CurlLog table, see task: #000950)