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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
2 + 47 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 06:01:30 2024 UTC