Warning about missing $_SERVER['REQUEST_URI'], while working from PHP CLI

Components

Labels

Description

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)

Context Information

None

Additional information (do not use)

None

Attachments

1
  • 27 Dec 2010, 02:13 PM

Confluence content

mentioned on

Phabricator

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

Alex

Reporter

Developer

Change Log Message

Patch Instructions

Patches must be submitted through Phabricator.

External issue ID

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

Flag notifications