PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTTP » HTTP_Upload » Bug #5536

No explanation of properties

Details

Doc Bug #5536No explanation of properties
Submitted2005-09-27 08:20 UTC
Frominfo at darrencampbell dot com dot au
Assignedcellog
StatusClosed
PackageHTTP_Upload
PHP VersionIrrelevant
OSAll
Roadmaps(Not assigned)

Comments

[2005-09-27 08:20 UTC] info at darrencampbell dot com dot au

Description:
------------
This is a documentation bug. I am reporting it because one has to inspect the source code to understand which values to use in the getProp() method in order to retrieve the property that one is looking for.

The point of using packages is to hide implementation details from the end-user in order to reduce coding effort. Following this line of thought, adequate documentation should be provided to enable easy use of the package without having to examine the intricacies of the package source.

Test script:
---------------
I looked through the end-user documentation for a list of the properties available through the getProp() method.

Expected result:
----------------
I expect to see a list of all the properties that I can retrieve using the getProp() method as well as an explanation of what each property is.

Actual result:
--------------
Unfortunately, I could not find a list in the end-user documentation.

So the actual result is that there is no explanation of what properties are available or what keys to use in the getProp() method to know how to select each property.

[2005-09-27 08:26 UTC] info at darrencampbell dot com dot au

I think these are the values.

'real' => $name,
'name' => $name,
'form_name' => $formname,
'ext' => $ext,
'tmp_name' => $tmp,
'size' => $size,
'type' => $type,
'error' => $error

Please explain them in the end-user documentation and I think that would resolve this bug.