php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #49841 Wrong variable name used
Submitted: 2009-10-12 04:59 UTC Modified: 2009-10-13 11:47 UTC
From: niko at tovrleaf dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2009-10-12 04:59 UTC] niko at tovrleaf dot com
Description:
------------
Variable declared as
$file = 'output_log.txt';
but used later as
chown($path, 'ross');
while $path doesn't exists.

Reproduce code:
---------------
---
From manual page: function.clearstatcache#Examples
---


Expected result:
----------------
chown($file, 'ross');


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-10-13 11:46 UTC] svn@php.net
Automatic comment from SVN on behalf of rquadling
Revision: http://svn.php.net/viewvc/?view=revision&revision=289616
Log: Fix example : Fix#49841
 [2009-10-13 11:47 UTC] rquadling@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: Tue Oct 06 10:00:01 2026 UTC