php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #54627 stream_get_meta_data return values
Submitted: 2011-04-28 18:55 UTC Modified: 2011-04-30 14:02 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: coderjoe69 at yahoo dot com Assigned: salathe (profile)
Status: Wont fix Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2011-04-28 18:55 UTC] coderjoe69 at yahoo dot com
Description:
------------
The documentation for stream_get_meta_data does not specify what is returned if the parameter is not a stream handle. Experimentation with 5.3.6 suggests that the return value is false, and that a warning is emitted.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-04-30 14:02 UTC] salathe@php.net
-Status: Open +Status: Wont fix -Assigned To: +Assigned To: salathe
 [2011-04-30 14:02 UTC] salathe@php.net
Built-in functions generally return NULL and emit an E_WARNING if they receive 
invalid parameters, due to the common parameter type checking handlers. This 
information is not usually part of the "Return Values" section for each individual 
function. 

See also the "note" on http://php.net/manual/en/functions.internal.php
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 10 07:01:31 2024 UTC