Make WordPress Core

Opened 15 years ago

Closed 14 years ago

Last modified 13 years ago

#1494 closed defect (bug) (fixed)

Spurious notices about $HTTP_RAW_POST_DATA

Reported by: mgeisler Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: XML-RPC Keywords: has-patch
Focuses: Cc:


I'm seeing spurious notices from PHP about $HTTP_RAW_POST_DATA not being defined:

PHP Notice: Undefined variable: HTTP_RAW_POST_DATA in /home/mgeisler/mgeisler.net/html/xmlrpc.php on line 4

I guess one could wrap the line in a if(isset($HTTP_RAW_POST_DATA)) and at the same time move the call to logIO("I", $HTTP_RAW_POST_DATA) up in the same wrapping.

Or maybe it would be better to post-pone this processing to class-IXR.php since xmlrpc.php doesn't really use $HTTP_RAW_POST_DATA.

Attachments (1)

1494.diff (343 bytes) - added by Nazgul 14 years ago.

Download all attachments as: .zip

Change History (6)

14 years ago

#1 @Nazgul
14 years ago

  • Keywords has-patch added
  • Milestone set to 2.1

The first reference to HTTP_RAW_POST_DATA is already guarded by an isset in trunk.

Patch attached which does the same for the second reference to HTTP_RAW_POST_DATA.

#2 @Nazgul
14 years ago

  • Milestone changed from 2.1 to 2.0.5

2.0.5 Candidate

#3 @markjaquith
14 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [4305]) avoid $HTTP_RAW_POST_DATA notices. props mgeisler and Nazgul. fixes #1494

#4 @markjaquith
14 years ago

(In [4306]) avoid $HTTP_RAW_POST_DATA notices. props mgeisler and Nazgul. fixes #1494

#5 @(none)
13 years ago

  • Milestone 2.0.5 deleted

Milestone 2.0.5 deleted

Note: See TracTickets for help on using tickets.