php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #47634 finfo doesn't have close method as said in docs
Submitted: 2009-03-12 12:46 UTC Modified: 2009-03-20 01:57 UTC
From: thiago@php.net Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2009-03-12 12:46 UTC] thiago@php.net
Description:
------------
User "chris AT cmbuckley DOT co DOT uk" reported the following bug in finfo docs.

URL: http://www.php.net/manual/en/function.finfo-open.php


Slight mistake in Example #1: the finfo class doesn't have a close method; the close is handled by the destructor. The following line will work:

<?php
/* close connection */
unset($finfo);
?>


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-03-20 01:57 UTC] felipe@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.

Thanks!
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Oct 06 18:00:01 2026 UTC