Commit graph

424 commits

Author SHA1 Message Date
Bob Weinand
f11cc3162c As noted below, constants can be result of a mathematical expression with PHP 5.6.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337777 c90b9560-bf6c-de11-be94-00142212c4b1
2015-09-07 22:15:37 +00:00
Christoph Michael Becker
727d059758 clarified behavior of property access vs. method call (fixes #49515)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337758 c90b9560-bf6c-de11-be94-00142212c4b1
2015-09-06 15:06:02 +00:00
Adam Harvey
664dfca34e Note deprecation of old style constructors in PHP 7.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337754 c90b9560-bf6c-de11-be94-00142212c4b1
2015-09-04 20:56:08 +00:00
Christoph Michael Becker
810d547926 reverted erroneous fix for bug #66926
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337740 c90b9560-bf6c-de11-be94-00142212c4b1
2015-09-03 22:15:18 +00:00
Christoph Michael Becker
eec101b31f Protected members cannot be accessed by parent classes
-- 
Provided by anonymous 62572 (tunght13488@gmail.com)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337719 c90b9560-bf6c-de11-be94-00142212c4b1
2015-09-02 21:58:23 +00:00
Christoph Michael Becker
586c9b218c capitalized class name to match definition (fixes #70412)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337714 c90b9560-bf6c-de11-be94-00142212c4b1
2015-09-02 21:19:05 +00:00
Christoph Michael Becker
5098c06cdd if __construct() and old-style constructor are present, PHP chooses whichever
comes first (fixes #66926)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337534 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-18 13:41:19 +00:00
Christoph Michael Becker
78291d1681 updated manual wrt. Heredoc support for initializing consts and static members (fixes #70227)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337388 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-10 12:50:32 +00:00
Adam Harvey
6b4b39cc49 Move the (excellent!) anonymous class documentation to the language reference.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337370 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-09 01:17:17 +00:00
Adam Harvey
5729dfe1f1 Unified type declaration documentation and removed the changelog.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337365 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-09 01:16:55 +00:00
Christoph Michael Becker
bcf30e909d typo fix by Srihari Thalla
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337316 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-06 23:49:19 +00:00
Christoph Michael Becker
b9a867f215 typo fix by Julia Haucap
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337312 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-06 23:31:22 +00:00
Peter Cowburn
d03b5f4c3f fix indenting
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336770 c90b9560-bf6c-de11-be94-00142212c4b1
2015-05-14 08:47:12 +00:00
Peter Cowburn
f97342d0d2 Updated the class constants documentation to add an example and paragraph about using constant expressions, the feature added in 5.6.0
-- 
Provided by Ryan Pallas (derokorian@gmail.com)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336769 c90b9560-bf6c-de11-be94-00142212c4b1
2015-05-14 08:27:16 +00:00
Pasindu De Silva
a44a1e0b79 Minor typo, grammar and example Fixes (By Christoph Becker cmb@php.net)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336715 c90b9560-bf6c-de11-be94-00142212c4b1
2015-05-04 19:48:31 +00:00
Jean-Sebastien Hedde
41060e691d Anonymous contributions
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@335484 c90b9560-bf6c-de11-be94-00142212c4b1
2014-12-30 12:29:17 +00:00
Chris Wright
be8c27a5f3 Casing consistency fix in OOP docs
-- 
Provided by anonymous 47943

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@334699 c90b9560-bf6c-de11-be94-00142212c4b1
2014-09-01 16:13:03 +00:00
Chris Wright
eddfd34bc9 Grammar fix in OOP docs
-- 
Provided by anonymous 47813

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@334698 c90b9560-bf6c-de11-be94-00142212c4b1
2014-09-01 16:10:02 +00:00
Adam Harvey
4307b3bcdf Document __debugInfo().
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@334638 c90b9560-bf6c-de11-be94-00142212c4b1
2014-08-28 05:28:06 +00:00
Jean-Sebastien Hedde
8654370154 Anonymous contributions
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@333618 c90b9560-bf6c-de11-be94-00142212c4b1
2014-05-25 12:56:31 +00:00
Jason Gerfen
61146174fd Fixes for 'missinginitializer' errors (I am new so I am uncertain about a standard other than var types, please advise.)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@333259 c90b9560-bf6c-de11-be94-00142212c4b1
2014-04-04 12:50:54 +00:00
Peter Cowburn
4b2619b58a grammar
Based on a patch by Nathaniel Cailo

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@333213 c90b9560-bf6c-de11-be94-00142212c4b1
2014-03-29 21:56:25 +00:00
Peter Cowburn
41c0426e94 typo
Patch by Kyle Wiering

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@333207 c90b9560-bf6c-de11-be94-00142212c4b1
2014-03-29 21:56:01 +00:00
Peter Cowburn
3d6f4f815e typo
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@333195 c90b9560-bf6c-de11-be94-00142212c4b1
2014-03-29 21:55:09 +00:00
Joe Watkins
53182cbc3a fix #66663 cleanup description
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@332880 c90b9560-bf6c-de11-be94-00142212c4b1
2014-02-23 08:22:12 +00:00
Simion Onea
b7031192a2 Reverted to an earlier revision.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@332727 c90b9560-bf6c-de11-be94-00142212c4b1
2014-01-24 06:17:07 +00:00
Simion Onea
18e48e7ff4 Changed Mrs to Ms. Mrs means "mister or missis".
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@332718 c90b9560-bf6c-de11-be94-00142212c4b1
2014-01-23 12:33:48 +00:00
Hannes Magnusson
7850a1abc6 Changelog for __get() updated.
-- 
Provided by anonymous 28438 (hanskrentel@yahoo.de)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@332595 c90b9560-bf6c-de11-be94-00142212c4b1
2014-01-11 22:56:36 +00:00
Matthew Fonda
c5c812a815 Fix bug #66214 - example #1 on OOP magic has two opening <?php
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@332232 c90b9560-bf6c-de11-be94-00142212c4b1
2013-12-01 17:59:59 +00:00
Pieter Hordijk
45497f188a Replaced deprecated mysql_* functions
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@332224 c90b9560-bf6c-de11-be94-00142212c4b1
2013-11-28 09:52:38 +00:00
Kalle Sommer Nielsen
c7c4f245b0 Fixed bug #66073 (Traits are not included in OOP changelog)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@332133 c90b9560-bf6c-de11-be94-00142212c4b1
2013-11-16 23:16:17 +00:00
Chris Wright
fc85461184 Updated class name regex to include start/end anchors.
-- 
Provided by anonymous 35003 (robin@kingsquare.nl)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@332018 c90b9560-bf6c-de11-be94-00142212c4b1
2013-10-30 18:22:34 +00:00
Joe Watkins
60316598b1 #64847 correction
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@331806 c90b9560-bf6c-de11-be94-00142212c4b1
2013-10-13 17:40:06 +00:00
Joe Watkins
a9f96e8c83 #61340 adjust example for consistency
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@331736 c90b9560-bf6c-de11-be94-00142212c4b1
2013-10-09 06:05:41 +00:00
Adam Harvey
cccb74c8dd Actually remove the patterns page to avoid confusion, since it hasn't been
built for over a year.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@331457 c90b9560-bf6c-de11-be94-00142212c4b1
2013-09-20 21:32:59 +00:00
Adam Harvey
e49e32a1d3 Drop the note about __isset() not being triggered on empty() — it contradicts
the earlier description and, more importantly, is plain wrong.

Fixes doc bug #65625 (Ambiguous text).


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@331299 c90b9560-bf6c-de11-be94-00142212c4b1
2013-09-05 21:54:14 +00:00
Chris Wright
6a1165067f Adding information that resource is not a valid type hint. It isn't mentioned at all.
-- 
Provided by Steve Tauber (steve@onzra.com)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@331202 c90b9560-bf6c-de11-be94-00142212c4b1
2013-08-25 19:07:52 +00:00
Yannick Torres
33040b3b1b Typo found by online editor user
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@331135 c90b9560-bf6c-de11-be94-00142212c4b1
2013-08-16 09:25:19 +00:00
Jakub Vrana
1fe740ab50 Clarify that internal classes can override only ==, not ===
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@331094 c90b9560-bf6c-de11-be94-00142212c4b1
2013-08-08 02:18:54 +00:00
Adam Harvey
56023920cb Document the change in inheritance behaviour in PHP 5.3.9 when conflicting
method names share a signature.

Fixes doc bug #65246 (Discrepancy between documentation and actual workings).


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330996 c90b9560-bf6c-de11-be94-00142212c4b1
2013-07-21 14:38:05 +00:00
Pieter Hordijk
57af376c5f Made class constants uppercase in examples
Fixed return type of mysqli::$client_version

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330913 c90b9560-bf6c-de11-be94-00142212c4b1
2013-07-14 17:20:52 +00:00
Adam Harvey
c2f8c648c8 Promote ::class documentation to its own subsection for direct linking.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330569 c90b9560-bf6c-de11-be94-00142212c4b1
2013-06-20 22:08:17 +00:00
Adam Harvey
1fc0b05670 Integrate note 112050 by adding a paragraph noting that __sleep() and
__wakeup() provide further options in terms of object serialisation.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330347 c90b9560-bf6c-de11-be94-00142212c4b1
2013-05-24 17:10:40 +00:00
Jakub Vrana
0bae036804 ClassName::class
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330216 c90b9560-bf6c-de11-be94-00142212c4b1
2013-05-14 20:44:08 +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
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
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
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