Commit graph

1639 commits

Author SHA1 Message Date
Sherif Ramadan
08ef640318 Fixed line wrap from revision 328358
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328359 c90b9560-bf6c-de11-be94-00142212c4b1
2012-11-14 17:41:40 +00:00
Sherif Ramadan
bf9085b2b1 Added note for accessing array elements with curly braces - fixes bug #55324
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328358 c90b9560-bf6c-de11-be94-00142212c4b1
2012-11-14 17:08:15 +00:00
Adam Harvey
13995e9311 Warn users about the perils of multi-byte strings and direct character access.
Or, as xkcd put it today, if it starts pointing toward space you are having a
bad problem and you will not go to space today.

Fixes doc bug #63079 (String access by character is not multibyte-safe).


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328351 c90b9560-bf6c-de11-be94-00142212c4b1
2012-11-14 02:10:57 +00:00
Peter Cowburn
8b2059d649 escaping for the database was done wrong in the past in PHP but this part of the manual still is in the past and does not reflect that change
--
Provided by anonymous #19624 (hanskrentel@yahoo.de)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328330 c90b9560-bf6c-de11-be94-00142212c4b1
2012-11-12 22:33:39 +00:00
Adam Harvey
3c107e7192 Fix doc bug #55140 (Ambiguous statement describes FQ namespace) with the
anonymous commenter's suggestion.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328318 c90b9560-bf6c-de11-be94-00142212c4b1
2012-11-12 09:14:26 +00:00
Kalle Sommer Nielsen
f49c307f13 Minor markup fixes to r328306, including WS in ssh2_auth_agent() (should probably have used svn:prop, but hey!)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328308 c90b9560-bf6c-de11-be94-00142212c4b1
2012-11-11 19:22:21 +00:00
Casper Langemeijer
bc57a23c73 Document changes in ssh2 extension 0.12 release.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328306 c90b9560-bf6c-de11-be94-00142212c4b1
2012-11-11 15:14:15 +00:00
Adam Harvey
5273dab5d8 Fix doc bug #63469 ("Then" should be "than").
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328289 c90b9560-bf6c-de11-be94-00142212c4b1
2012-11-09 02:03:29 +00:00
Adam Harvey
dd0c63c042 Add a changelog for ErrorException::__construct() noting the addition of the
$previous parameter.

Fixes doc bug #63443 (ErrorException __construct API changed between 5.2 and
5.3).


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328246 c90b9560-bf6c-de11-be94-00142212c4b1
2012-11-06 01:58:41 +00:00
Sherif Ramadan
ccb5544ee6 Reverting commit from revision 308160. Callable is a type hint, not a primitive data type.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328219 c90b9560-bf6c-de11-be94-00142212c4b1
2012-11-01 21:54:27 +00:00
Gordon Oheim
0b37eb99ef Added the names of the respective tokens to access properties (thank hakre for the suggestion)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328167 c90b9560-bf6c-de11-be94-00142212c4b1
2012-10-28 17:39:42 +00:00
Gordon Oheim
af5f871724 Removed the reference to constants and methods.
After a question on StackOverflow (http://stackoverflow.com/questions/13110446/accessing-constants-inside-php-object) I have removed the reference to constants and methods from the paragraph. IMO, it does not belong to a chapter about properties and the phrasing was somewhat to comprehend as well. The edit should make it easier to understand and cause less confusion.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328166 c90b9560-bf6c-de11-be94-00142212c4b1
2012-10-28 17:29:06 +00:00
Yannick Torres
3a8dc25d68 Typo found by online editor user
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328095 c90b9560-bf6c-de11-be94-00142212c4b1
2012-10-22 11:49:37 +00:00
Yannick Torres
00649f549f Typo found by online editor user
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328079 c90b9560-bf6c-de11-be94-00142212c4b1
2012-10-19 09:28:27 +00:00
Sherif Ramadan
ac5ed968ff Updated abstract method signature information and added an example to clarify on optional arguments.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@327966 c90b9560-bf6c-de11-be94-00142212c4b1
2012-10-09 13:24:53 +00:00
Peter Cowburn
c4e11d3254 fix build (invalid element name)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@327738 c90b9560-bf6c-de11-be94-00142212c4b1
2012-09-21 16:21:21 +00:00
Karoly Negyesi
5180de5d11 Make note of how to properly implement a Traversable interface.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@327726 c90b9560-bf6c-de11-be94-00142212c4b1
2012-09-21 08:14:03 +00:00
Karoly Negyesi
50c959fc2e Clarifying what happens when instanceof tests non-objects.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@327594 c90b9560-bf6c-de11-be94-00142212c4b1
2012-09-10 11:54:51 +00:00
Peter Cowburn
c5849e0c38 Fix capitalisation for null type and use entity for null value.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@327443 c90b9560-bf6c-de11-be94-00142212c4b1
2012-09-03 10:36:09 +00:00
Nikita Popov
d7b608d1cb Move string offset peculiarities between PHP versions off into the string offset docs
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@327267 c90b9560-bf6c-de11-be94-00142212c4b1
2012-08-25 14:37:42 +00:00
Philip Olson
5b5ab43c78 Fixed typo. Patch by Google user Josh Clark via OE.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@327202 c90b9560-bf6c-de11-be94-00142212c4b1
2012-08-21 07:10:13 +00:00
Philip Olson
a2a141160a Mentioned this was removed in 5.4.0 so it's a fatal error. This is from a patch via the OE but I forget from who as their name disappeared but thank you whoever you are.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@327197 c90b9560-bf6c-de11-be94-00142212c4b1
2012-08-21 06:53:37 +00:00
Philip Olson
d22ce6b9c9 This looks okay, and adds an is_callable() see also link. Not sure who the author is... (I thought the OE tracked that...)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@327189 c90b9560-bf6c-de11-be94-00142212c4b1
2012-08-20 18:46:59 +00:00
Peter Cowburn
666b6aa9a5 link to variable property names description from oop5 properties
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@327106 c90b9560-bf6c-de11-be94-00142212c4b1
2012-08-13 19:56:09 +00:00
Peter Cowburn
f292681131 curly braces for variable properties
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@327105 c90b9560-bf6c-de11-be94-00142212c4b1
2012-08-13 19:50:28 +00:00
Karoly Negyesi
cf4a06bf38 Tinkering include docs a bit more.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@327096 c90b9560-bf6c-de11-be94-00142212c4b1
2012-08-13 07:26:30 +00:00
Karoly Negyesi
2177c63915 Make include returns a lot more clear.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@327094 c90b9560-bf6c-de11-be94-00142212c4b1
2012-08-13 07:15:46 +00:00
Nikita Popov
2c3698ad6f Fix CS and typos in for documentation
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@326845 c90b9560-bf6c-de11-be94-00142212c4b1
2012-07-28 09:08:02 +00:00
Adam Harvey
4d6ac2f940 Fix doc bug #62334 (New valid uses of static keyword not included in static
keyword doc page) by adding a tip to the oop5.static page linking to the other
uses of static.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@326724 c90b9560-bf6c-de11-be94-00142212c4b1
2012-07-20 08:15:14 +00:00
Adam Harvey
2726a42e43 Fix doc bug #62506 (follow_location should be bool instead of int) and also add
a missing full stop on the same page.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@326722 c90b9560-bf6c-de11-be94-00142212c4b1
2012-07-20 05:53:22 +00:00
Sherif Ramadan
cc4f599a5f Changed example for ErrorException, which demonstrated wrong argument order in the construct.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@326694 c90b9560-bf6c-de11-be94-00142212c4b1
2012-07-19 00:38:06 +00:00
Anthony Ferrara
4b4ae3e993 Fix issues with incorrect precedence documentation.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@326667 c90b9560-bf6c-de11-be94-00142212c4b1
2012-07-17 16:06:18 +00:00
Karoly Negyesi
38d18b3046 Clarified a little php://filter chains
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@326646 c90b9560-bf6c-de11-be94-00142212c4b1
2012-07-15 17:46:53 +00:00
Pieter Hordijk
887bcfd33f Improved for() docs
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@326628 c90b9560-bf6c-de11-be94-00142212c4b1
2012-07-13 18:49:23 +00:00
Peter Cowburn
011bc82c67 minor spelling/grammar improvement (doc #62389)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@326293 c90b9560-bf6c-de11-be94-00142212c4b1
2012-06-22 08:19:50 +00:00
Peter Cowburn
ec2f544a4c typo in example (doc #62306)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@326144 c90b9560-bf6c-de11-be94-00142212c4b1
2012-06-13 08:09:05 +00:00
Peter Cowburn
203cd3e98e minor grammar improvements
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@325975 c90b9560-bf6c-de11-be94-00142212c4b1
2012-06-04 21:24:50 +00:00
Nikita Popov
55713d3fa0 Fix doc bug #62222: Continue 0; is invalid
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@325967 c90b9560-bf6c-de11-be94-00142212c4b1
2012-06-04 13:22:33 +00:00
Peter Cowburn
437ca6963d version info for closure methods
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@325959 c90b9560-bf6c-de11-be94-00142212c4b1
2012-06-04 08:36:45 +00:00
Jakub Vrana
b5dd8862bd Delete Patterns chapter
I have a very strong feeling that this chapter doesn't belong to the PHP Manual.
It doesn't document the language but only some usage of it.
It is vastly incomplete and the longest part is warning about using Singleton.
I have no problem with including the examples somewhere else (probably to chapter about static methods).
But it causes more harm than benefit as it is.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@325666 c90b9560-bf6c-de11-be94-00142212c4b1
2012-05-13 02:29:51 +00:00
Maciek Sokolewicz
d8cb34e3cd reworded some text to follow proper english grammar
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@325238 c90b9560-bf6c-de11-be94-00142212c4b1
2012-04-16 17:09:48 +00:00
Jakub Vrana
84b8fca68f Use <function> for language constructs (now supported by PhD)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@325214 c90b9560-bf6c-de11-be94-00142212c4b1
2012-04-15 21:45:34 +00:00
Yannick Torres
a1daee7a1a Revert last change
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@325207 c90b9560-bf6c-de11-be94-00142212c4b1
2012-04-15 13:18:17 +00:00
Yannick Torres
319b01713c Typo found by online editor user
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@325203 c90b9560-bf6c-de11-be94-00142212c4b1
2012-04-15 11:25:17 +00:00
Adam Harvey
2fea17adb9 Fix doc bug #61723 (<?php issues a parse error).
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@325166 c90b9560-bf6c-de11-be94-00142212c4b1
2012-04-14 07:04:12 +00:00
TAKAGI Masahiro
9c814482b6 tweak example.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@324720 c90b9560-bf6c-de11-be94-00142212c4b1
2012-04-02 20:52:07 +00:00
Daniel P. Brown
33940bbe8c Typo found and reported via webmaster mailing list by 'Вася Пупкин'.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@324719 c90b9560-bf6c-de11-be94-00142212c4b1
2012-04-02 16:20:06 +00:00
TAKAGI Masahiro
abe03dab3f fix build.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@324676 c90b9560-bf6c-de11-be94-00142212c4b1
2012-04-01 11:28:58 +00:00
Yasuo Ohgaki
3e98008af4 Improve array doc for string offset access.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@324661 c90b9560-bf6c-de11-be94-00142212c4b1
2012-03-31 09:22:45 +00:00
Yasuo Ohgaki
19fe5f0cb0 fix incorrect description
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@324628 c90b9560-bf6c-de11-be94-00142212c4b1
2012-03-30 10:26:14 +00:00