Commit graph

1652 commits

Author SHA1 Message Date
Jakub Vrana
19cac543b8 Explain return inside generator (fixes bug #64102)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@329570 c90b9560-bf6c-de11-be94-00142212c4b1
2013-02-24 09:29:27 +00:00
Jakub Vrana
e499a4379d Rename Generator ID to allow http://php.net/generator
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@329542 c90b9560-bf6c-de11-be94-00142212c4b1
2013-02-22 13:36:56 +00:00
Jakub Vrana
1865487b42 Rename yield ID to allow http://php.net/yield
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@329540 c90b9560-bf6c-de11-be94-00142212c4b1
2013-02-22 13:14:13 +00:00
Philip Olson
04b11e621f Fixed spelling
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@329325 c90b9560-bf6c-de11-be94-00142212c4b1
2013-01-29 01:47:09 +00:00
Jakub Vrana
eb71702c7d Add ?> to example
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@329285 c90b9560-bf6c-de11-be94-00142212c4b1
2013-01-24 01:13:24 +00:00
Philip Olson
ea5ef87879 Linked the floating point warning to http://floating-point-gui.de/
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@329281 c90b9560-bf6c-de11-be94-00142212c4b1
2013-01-23 17:47:58 +00:00
Sherif Ramadan
73e27eb2d9 Fxies bug #63832
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@329168 c90b9560-bf6c-de11-be94-00142212c4b1
2013-01-16 19:18:10 +00:00
Sherif Ramadan
95f54b87fd Clarifying operator precedence docs on meaning of non-associativity and how this affects operator parsing.
Fixes bug #63783


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@329164 c90b9560-bf6c-de11-be94-00142212c4b1
2013-01-16 15:56:24 +00:00
Richard Quadling
04beb00111 W/S Tabs to spaces.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@329060 c90b9560-bf6c-de11-be94-00142212c4b1
2013-01-10 17:34:40 +00:00
Adam Harvey
847cba5fd0 Fix infinite recursion in namespaces FAQ example #8, per note 111006.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@329007 c90b9560-bf6c-de11-be94-00142212c4b1
2013-01-08 02:55:57 +00:00
Adam Harvey
0dec5d1aea Add a warning about the fatal error generated when you throw from __toString().
Prompted by bug #50699, although it doesn't really fix it as such.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328669 c90b9560-bf6c-de11-be94-00142212c4b1
2012-12-05 01:19:20 +00:00
TAKAGI Masahiro
d096079ebb Set svn:keyword, svn:eol-style
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328433 c90b9560-bf6c-de11-be94-00142212c4b1
2012-11-20 16:16:46 +00:00
Adam Harvey
8ad0d94e1c Add initial migration guide for PHP 5.5.
What's done: the migration guide itself, updates to existing functions and
functionality, and new language features.

What's not done: stub pages for new functions and methods. (I'd rather get this
in now, though, than have it languish on my hard drive any longer so that other
people can contribute.)

What could use help: the generator chapter is pretty rough and ready. Better
examples would be awesome. I certainly won't argue if somebody wants to add the
function stubs, either.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328430 c90b9560-bf6c-de11-be94-00142212c4b1
2012-11-20 15:17:23 +00:00
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