php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #60325 misleading wording in example
Submitted: 2011-11-18 04:25 UTC Modified: 2011-12-06 00:53 UTC
From: lucas at threeamdesign dot com Assigned: frozenfire (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2011-11-18 04:25 UTC] lucas at threeamdesign dot com
Description:
------------
---
From manual page: http://www.php.net/function.pathinfo#refsect1-function.pathinfo-examples
---

In the example #2, the nullextension gives is the empty string, whereas the noextension, although undefined, is an actual null value.

It would be better as
'/path/emptyextension.'
and
'/path/noextensiondefined'
or something.



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-12-06 00:53 UTC] frozenfire@php.net
Automatic comment from SVN on behalf of frozenfire
Revision: http://svn.php.net/viewvc/?view=revision&revision=320471
Log: Clarified empty/no extension example. Closes bug #60325.
 [2011-12-06 00:53 UTC] frozenfire@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.


 [2011-12-06 00:53 UTC] frozenfire@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: frozenfire
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 16:00:01 2026 UTC