summaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorOlly Betts <olly@survex.com>2011-12-06 00:39:19 +0000
committerOlly Betts <olly@survex.com>2011-12-06 00:39:19 +0000
commit5cf5f252d30d83758eaa1058ef617b5bac288533 (patch)
tree33edcc2920741fe6c7f88142848454f02a8e3ca4 /Doc
parent07c97f8742ad85d4a7d33c406c464753fa818af6 (diff)
downloadswig-5cf5f252d30d83758eaa1058ef617b5bac288533.tar.gz
Improvements to PHP documentation
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12863 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Manual/Php.html29
1 files changed, 18 insertions, 11 deletions
diff --git a/Doc/Manual/Php.html b/Doc/Manual/Php.html
index ccc0f039c..38a24bf2c 100644
--- a/Doc/Manual/Php.html
+++ b/Doc/Manual/Php.html
@@ -49,19 +49,23 @@
<p>
-SWIG supports generating wrappers for PHP5. Support for PHP4 has been removed
-as of SWIG 1.3.37. The PHP developers are no longer making new PHP4 releases,
+SWIG supports generating wrappers for PHP5. Support for PHP4 was removed
+in SWIG 1.3.37. The PHP developers are no longer making new PHP4 releases,
and won't even be patching critical security issues after 2008-08-08, so it
-doesn't make much sense for SWIG to continue to support PHP4 at this point.
-If you need to continue to use PHP4, stick with SWIG 1.3.36.
+doesn't make much sense for SWIG to continue to support PHP4 now. If you
+really need to continue to use PHP4, just stick with SWIG 1.3.36.
+</p>
+
+<p>
+Currently any PHP5 release should work, but we don't regularly test with
+PHP &lt; 5.3.
</p>
<p>
In this chapter, we discuss SWIG's support of PHP. The PHP module
was extensively rewritten in release 1.3.26, and support for generating
-OO wrappers for PHP5 was added in 1.3.30. The PHP module works fairly
-well, but currently does not implement all the
-features available in some of the other languages.
+OO wrappers for PHP5 was added in 1.3.30. The PHP module now supports most
+of the features available in some of the other languages.
</p>
<p>
@@ -175,7 +179,8 @@ attempts to do the <tt>dl()</tt> call for you:
It is important to understand that PHP uses a single global namespace
into which all symbols from extension modules are loaded. It is quite
possible for names of symbols in one extension module to clash with
-other symbols unless care is taken to <tt>%rename</tt> them.
+other symbols unless care is taken to <tt>%rename</tt> them. At present
+SWIG doesn't have support for the namespace feature added in PHP 5.3.
</p>
<H3><a name="Php_nn2_1"></a>31.2.1 Constants</H3>
@@ -549,9 +554,11 @@ variable, or assigning <tt>NULL</tt> to a variable.
<p>
-SWIG defaults to wrapping C++ structs and classes with PHP classes
-unless "-noproxy" is specified. For PHP5, a PHP wrapper
-class is generated which calls a set of flat functions wrapping the C++ class.
+SWIG defaults to wrapping C++ structs and classes with PHP classes - this
+is done by generating a PHP wrapper script which defines proxy classes
+which calls a set of flat functions which actually wrap the C++ class.
+You can disable this wrapper layer by passing the command-line option
+"-noproxy" in which case you'll just get the flat functions.
</p>
<p>