Re: fopen/fread/et al...
| From: | Philip Olson | Date: | Sat, 11 Jan 2003 07:26:40 +0000 |
| Subject: | Re: fopen/fread/et al... | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969350816@lists.php.net to get a copy of this message | ||
On Fri, 10 Jan 2003, Sara Golemon wrote:
> I notice that the current manual pages for the filesystem function refer
> to file pointer resources as ints. Am I the only one who thinks this
> could be confusing to end-users? Wouldn't "resource" be a better type to
> present? or "stream"?
Some functions are still labeled as int because they used
to return int. For example in PHP3 there was no such
thing as type "resource" so that's the reason. So go
ahead and change it and if a change from int->resource
happened fairly recently then make a <note> of it. Be
sure it correctly notes what it returns on failure too.
Regards,
Philip