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
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 — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
30 - 7 = ?
Subscribe to this entry?

 
 [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: Sun Apr 28 23:01:32 2024 UTC