aboutsummaryrefslogtreecommitdiff
path: root/Doc/Manual
diff options
context:
space:
mode:
authorOlly Betts <olly@survex.com>2013-12-12 16:06:00 +1300
committerOlly Betts <olly@survex.com>2013-12-12 16:06:00 +1300
commitbef3cfe594d292576d53b39b385fa4e32b6bb14d (patch)
treeaaccf49389f88d9396af09cc201010a7176a9d98 /Doc/Manual
parent227192f80a79db7edfb25342cd13626be49e567f (diff)
downloadswig-bef3cfe594d292576d53b39b385fa4e32b6bb14d.tar.gz
Add CHANGES.current entry and minimal doc update for previous change
Diffstat (limited to 'Doc/Manual')
-rw-r--r--Doc/Manual/Php.html11
1 files changed, 6 insertions, 5 deletions
diff --git a/Doc/Manual/Php.html b/Doc/Manual/Php.html
index 78ee6ea7f..185883235 100644
--- a/Doc/Manual/Php.html
+++ b/Doc/Manual/Php.html
@@ -503,13 +503,14 @@ echo "The sum $in1 + $in2 = $result\n";
Because PHP has a native concept of reference, it may seem more natural
to the PHP developer to use references to pass pointers. To enable
this, one needs to include <b>phppointers.i</b> which defines the
-named typemap REFERENCE.
+named typemap REF.
</p>
<p>
-However, this relies on call-time pass-by-reference, which has been
-deprecated in PHP for some time, and was finally <b>removed in PHP 5.4</b>.
-So you should avoid creating new wrappers which rely on this approach.
+Prior to SWIG 3.0, the REF typemaps relied on PHP's call-time
+pass-by-reference, which was deprecated in PHP 5.3 and removed in PHP 5.4.
+So if you use these REF typemaps, you should ensure that SWIG&ge;3.0 is
+used to generate wrappers from your interface file.
</p>
<div class="code"><pre>
@@ -532,7 +533,7 @@ include("example.php");
$in1 = 3;
$in2 = 5;
$result = 0;
-add(&amp;$in1,&amp;$in2,&amp;$result);
+add($in1,$in2,$result);
echo "The sum $in1 + $in2 = $result\n";
?&gt;