Commit graph

20 commits

Author SHA1 Message Date
Christoph M. Becker
88c1f8d6c9 Fix/clarify dirname/basename docs wrt. locales
For basename(), we declare the behavior regarding invalid characters in
the path as being undefined, since that depends on the availability of
mblen, and also on the position of the invalid characters prior to PHP
8.0.0[1].

dirname() is actually not local-aware, but relies on an ASCII
compatible character encoding regarding the directory separator.  On
Windows, it is however, dependent on the currently set codepage
(although a fallback is still in place to use the Windows ANSI codepage
of the operating system[2], if the string is not valid for the current
codepage).

Again, we declared failure to comply to these assumptions as resulting
in undefined behavior.  Users should make sure to pass valid strings.

[1] <http://git.php.net/?p=php-src.git;a=commitdiff;h=90705d44e3da1d0aa7b8b4fd921ec597391eccb2>
[2] <5e01542526/win32/codepage.h (L95-L106)>
2021-02-19 15:12:33 +01:00
Christoph Michael Becker
0c9c2dd669 Generate some standard methodsynopses based on stubs
Cf. <https://github.com/php/doc-en/pull/289>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352191 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-26 19:26:31 +00:00
Christoph Michael Becker
7e4167f3f2 Fix #62119: basename broken with non-ASCII-chars
We move the important notes up into the description section, and elevate
the note regarding the locale awareness to a caution.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@340481 c90b9560-bf6c-de11-be94-00142212c4b1
2016-10-14 17:28:12 +00:00
Peter Cowburn
631ffcb398 basename example with and without suffix argument
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336901 c90b9560-bf6c-de11-be94-00142212c4b1
2015-06-09 20:58:47 +00:00
Maciej Sobaczewski
8b5940cade Remove changelogs for PHP 4 - 2nd round
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@334605 c90b9560-bf6c-de11-be94-00142212c4b1
2014-08-26 14:28:17 +00:00
Kalle Sommer Nielsen
c5168db28a Fixed bug #53262 (basename() cannot handle argument with special characters like french "ééé")
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@305448 c90b9560-bf6c-de11-be94-00142212c4b1
2010-11-17 08:47:14 +00:00
Justin Martin
2ccada702e Clarified behaviour of dirname and basename, as per bug #51830.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@305142 c90b9560-bf6c-de11-be94-00142212c4b1
2010-11-07 03:55:45 +00:00
Daniel Egeberg
96c9d88bad Converted to utf-8
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@297028 c90b9560-bf6c-de11-be94-00142212c4b1
2010-03-28 22:10:10 +00:00
Torben Wilson
af4410a7e1 Normalized the sgml-default-dtd-file local-variable line for those
still using this, after discussion on the phpdoc list.
From now on, manual.ced will need to be found at ~/.phpdoc/manual.ced.



git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@288721 c90b9560-bf6c-de11-be94-00142212c4b1
2009-09-25 07:04:39 +00:00
Nilgün Belma Bugüner
32c02d8b9f fixed properties
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@283810 c90b9560-bf6c-de11-be94-00142212c4b1
2009-07-11 07:05:15 +00:00
Jakub Vrana
ac24a7622a See also
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@254744 c90b9560-bf6c-de11-be94-00142212c4b1
2008-03-10 09:26:23 +00:00
Mehdi Achour
38db28310e More new doc style
# Also fixed fputcsv() where the fields parameters is required


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@238982 c90b9560-bf6c-de11-be94-00142212c4b1
2007-07-01 21:31:16 +00:00
Hannes Magnusson
c030e2adf7 Upgrade to DocBook5:
- All id attributes are now xml:id
 - Add docbook namespace to all root elements
 - Replace <ulink /> with <link xlink:href />
 - Minor markup fixes here and there


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@238160 c90b9560-bf6c-de11-be94-00142212c4b1
2007-06-20 22:25:43 +00:00
Philip Olson
a142babd0f WS, preparing for the new doc style
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@228836 c90b9560-bf6c-de11-be94-00142212c4b1
2007-02-03 08:13:44 +00:00
Damien Seguy
f72f51e389 fixing a point in stat, adding some tags, and comestics
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@158848 c90b9560-bf6c-de11-be94-00142212c4b1
2004-05-18 14:23:19 +00:00
Nuno Lopes
e17f3034bb fix #28283: path separator->directory separator
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@158029 c90b9560-bf6c-de11-be94-00142212c4b1
2004-05-05 16:29:13 +00:00
Mehdi Achour
27960e632c Merry XHTML and CS compliant christmas all \!
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@146503 c90b9560-bf6c-de11-be94-00142212c4b1
2003-12-15 16:55:22 +00:00
Philip Olson
d9fc90e266 Added php tags (<?php ?>) to examples.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@129494 c90b9560-bf6c-de11-be94-00142212c4b1
2003-05-30 20:43:26 +00:00
Hartmut Holzgraefe
5b9fc29465 revision tags added
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@78496 c90b9560-bf6c-de11-be94-00142212c4b1
2002-04-17 06:45:35 +00:00
Hartmut Holzgraefe
a4b6d72ad3 banana-split
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@78202 c90b9560-bf6c-de11-be94-00142212c4b1
2002-04-15 00:12:54 +00:00