Note that technique relying on call-time pass by reference won't work with

PHP 5.4.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13094 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Olly Betts 2012-05-18 02:19:46 +00:00
commit 95821b7a04

View file

@ -506,6 +506,12 @@ this, one needs to include <b>phppointers.i</b> which defines the
named typemap REFERENCE.
</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.
</p>
<div class="code"><pre>
%module example
%include "phppointers.i"