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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 21:01:27 2025 UTC