php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #44123 imap_bodystruct and imap_fetchbody parameter name mismatch
Submitted: 2008-02-14 22:18 UTC Modified: 2008-11-07 12:17 UTC
From: mpb dot mail at gmail dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
 [2008-02-14 22:18 UTC] mpb dot mail at gmail dot com
Description:
------------
In the following two functions:

object imap_bodystruct  ( resource $imap_stream  , int $msg_number  , string $section  )

string imap_fetchbody  ( resource $imap_stream  , int $msg_number  , string $part_number  [, int $options  ] )

I believe $section and $part_number are equivalent parameters.  The documentation would be less confusing if they both had the same name, instead of two different names.  (Perhaps the names need to be changed in the C code before they can be changed in the documentation?)

Thanks!


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-11-07 12:17 UTC] vrana@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

Renamed to section.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 23:00:01 2026 UTC