php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #55762 Online docs state incorrect modifier for properties on HttpRequest class.
Submitted: 2011-09-22 15:09 UTC Modified: 2011-09-22 15:25 UTC
From: shabazzk at gmail dot com Assigned: ircmaxell (profile)
Status: Closed Package: HTTP related
PHP Version: Irrelevant OS: GNU/Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: shabazzk at gmail dot com
New email:
PHP Version: OS:

 

 [2011-09-22 15:09 UTC] shabazzk at gmail dot com
Description:
------------
Looking at the online document reference for the HttpRequest class; the 
properties/fields indicate the wrong modifier. The stated modifier is "protected" 
when in fact it is "private".

The online documentation in question can be found here: 
http://www.php.net/manual/en/class.httprequest.php

Test script:
---------------
php --rc httprequest

-- output:
...
  - Properties [16] {
    Property [ <default> private $options ]
    Property [ <default> private $postFields ]
    Property [ <default> private $postFiles ]
    Property [ <default> private $responseInfo ]
    Property [ <default> private $responseMessage ]
    Property [ <default> private $responseCode ]
    Property [ <default> private $responseStatus ]
    Property [ <default> private $method ]
    Property [ <default> private $url ]
    Property [ <default> private $contentType ]
    Property [ <default> private $requestBody ]
    Property [ <default> private $queryData ]
    Property [ <default> private $putFile ]
    Property [ <default> private $putData ]
    Property [ <default> private $history ]
    Property [ <default> public $recordHistory ]
  }
...


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-09-22 15:13 UTC] salathe@php.net
-Assigned To: +Assigned To: ircmaxell
 [2011-09-22 15:24 UTC] nikic@php.net
Automatic comment from SVN on behalf of nikic
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=317154
Log: Fix Doc Bug #55762: Online docs state incorrect modifier for properties on HttpRequest class.
 [2011-09-22 15:25 UTC] nikic@php.net
-Status: Assigned +Status: Closed
 [2011-09-22 15:25 UTC] nikic@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Tue Oct 15 23:01:26 2019 UTC