summaryrefslogtreecommitdiff
path: root/documentation/constructors-and-destructors.html
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-06 16:08:35 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-06 16:08:35 +0100
commitdfd505867630f0d8e7c45f52415f8aba3b3c2dba (patch)
treeb3e95d8d5db5e2f0a56ac33593ef427fdbda9813 /documentation/constructors-and-destructors.html
parent6d65d1591786896163e7cbe4dffb889483c148e6 (diff)
changes to documentation
Diffstat (limited to 'documentation/constructors-and-destructors.html')
-rw-r--r--documentation/constructors-and-destructors.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/documentation/constructors-and-destructors.html b/documentation/constructors-and-destructors.html
index 0453e5f..292aa60 100644
--- a/documentation/constructors-and-destructors.html
+++ b/documentation/constructors-and-destructors.html
@@ -1,6 +1,6 @@
<h1>Constructors and destructors</h1>
<p>
- There is a small but very important difference between constructor and
+ There is a small but very important difference between constructors and
destructors in C++, and the __construct() and __destruct() methods in PHP.
</p>
<p>
@@ -314,16 +314,16 @@ extern "C" {
In the code above we made the __construct() function of the Counter class
private. This makes it impossible to create instances of this class - both
from PHP user scripts, and via calls to Php::Object("Counter") - because
- constructing objects in this way will eventually also result in a __construct()
- call.
+ constructing objects in these ways will eventually result in a forbidden
+ __construct() call.
</p>
<p>
The Php::Object does have an alternative syntax that takes a pointer
- to a C++ class (allocated on the heap, with operator new!), and that turns
+ to a C++ class (allocated on the heap, with operator new!) and that turns
this pointer into a PHP variable without calling the
__construct() method. Notice that you must also specify the classname,
because C++ classes do not have any information about themselves (like their
- name), while in a PHP such information is required to handle reflection and
+ name), while in PHP such information is required to handle reflection and
functions like get_class().
</p>
<h2>Other magic methods</h2>