George Peter Banyard
cdaea04215
Remove mention of PHP 5 in Language Reference section
...
This does not cover the OOP nor Error sections, but everything else should be covered
Closes GH-156
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351112 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-31 19:13:58 +00:00
Nikita Popov
901fc6375e
Fix generator xrange() example
...
Patch by KodyWiremane.
Closes php/doc-en#4 .
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347735 c90b9560-bf6c-de11-be94-00142212c4b1
2019-07-13 10:42:35 +00:00
Christoph Michael Becker
df6198b7a2
Improve example wrt. subgenerator name
...
This integrates user note 123631.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346863 c90b9560-bf6c-de11-be94-00142212c4b1
2019-02-21 07:54:04 +00:00
Christoph Michael Becker
3faf6fd5c8
Fix #77489 : Yield inside IF instruction
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346612 c90b9560-bf6c-de11-be94-00142212c4b1
2019-01-21 10:50:38 +00:00
Christoph Michael Becker
27b04f9647
Fix example
...
Patch provided by anonymous user.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345545 c90b9560-bf6c-de11-be94-00142212c4b1
2018-08-22 12:40:49 +00:00
Christoph Michael Becker
482bc1d69c
Clarify behavior of generator (functions)
...
Patch provided by an anonymous user.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345249 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-30 11:56:50 +00:00
Christoph Michael Becker
9fadd7d16a
Fix #76104 : Generator::next() causes yield to return null
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344528 c90b9560-bf6c-de11-be94-00142212c4b1
2018-03-16 17:33:42 +00:00
Jean-Sebastien Hedde
3f74beaf6b
I did a mispell in my previous patch for this section. This intends to fix it.
...
--
Provided by anonymous 83640 (jdomenechbborges@gmail.com )
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342576 c90b9560-bf6c-de11-be94-00142212c4b1
2017-06-09 12:01:52 +00:00
Jean-Sebastien Hedde
c4910a6ef8
There was a note that has not been updated according implementation of https://wiki.php.net/rfc/generator-return-expressions in PHP 7.0.
...
--
Provided by anonymous 83640 (jdomenechbborges@gmail.com )
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342557 c90b9560-bf6c-de11-be94-00142212c4b1
2017-06-07 12:10:06 +00:00
Bob Weinand
8c3557271d
Add caution/note regarding yield from and iterator_to_array
...
It's been a common source of mistake, see also https://bugs.php.net/72518
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339531 c90b9560-bf6c-de11-be94-00142212c4b1
2016-06-30 00:24:35 +00:00
Nikita Popov
19059652f1
Fix bug #67011
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339142 c90b9560-bf6c-de11-be94-00142212c4b1
2016-05-06 13:55:27 +00:00
Adam Harvey
e7c3d74e33
Reinstate the generator object documentation earlier in the section.
...
This was meant to be in the previous commit, but oh well.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337865 c90b9560-bf6c-de11-be94-00142212c4b1
2015-09-21 12:16:43 +00:00
Adam Harvey
02d3c3abb7
Move most generator delegration doco to the generators section.
...
I've also simplified the example in the migration guide somewhat: the combined
"return yield from" construct is now documented only in the generators
documentation.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337864 c90b9560-bf6c-de11-be94-00142212c4b1
2015-09-21 12:16:39 +00:00
Adam Harvey
2f13a5d452
Note yield changes in PHP 7.
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337360 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-09 01:16:32 +00:00
Daniel Convissor
c09f0b428b
CS for examples (pardon my pedantry).
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330587 c90b9560-bf6c-de11-be94-00142212c4b1
2013-06-21 01:53:00 +00:00
Jakub Vrana
8f10aa0448
Standardize Generator documentation
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330333 c90b9560-bf6c-de11-be94-00142212c4b1
2013-05-21 18:44:54 +00:00
Jakub Vrana
c13539985c
Generator::throw()
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330217 c90b9560-bf6c-de11-be94-00142212c4b1
2013-05-14 20:44:26 +00:00
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
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
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