php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #64787 Bug at comment of example of get_resource_type($fp)
Submitted: 2013-05-07 23:30 UTC Modified: 2013-10-13 17:34 UTC
From: iliavlad at mail dot ru Assigned: krakjoe (profile)
Status: Closed Package: Documentation problem
PHP Version: 5.4.14 OS: All
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: iliavlad at mail dot ru
New email:
PHP Version: OS:

 

 [2013-05-07 23:30 UTC] iliavlad at mail dot ru
Description:
------------
---
From manual page: http://www.php.net/function.get-resource-type#refsect1-function.get-resource-type-examples
---
This example should be changed.

https://bugs.php.net/bug.php?id=29959

Test script:
---------------
<?php

// prints: file   --- it should be changed to "stream"
$fp = fopen("foo", "w");
echo get_resource_type($fp) . "\n";

Expected result:
----------------
stream

Actual result:
--------------
stream

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-10-13 17:34 UTC] krakjoe@php.net
Automatic comment from SVN on behalf of krakjoe
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=331805
Log: #64787 incorrect example output
 [2013-10-13 17:34 UTC] krakjoe@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: krakjoe
 [2013-10-13 17:34 UTC] krakjoe@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.


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