remove last vestiges of php4 and encourage use of -php rather than -php5
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10969 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
a5fcddceca
commit
06b2eca75e
14 changed files with 42 additions and 35 deletions
|
|
@ -3114,7 +3114,7 @@ entirely upcased.
|
|||
|
||||
<p>
|
||||
At the end of the new section is the place to put the aforementioned
|
||||
nickname kludges (should they be needed). See Perl5 and Php4 for
|
||||
nickname kludges (should they be needed). See Perl5 for
|
||||
examples of what to do. [If this is still unclear after you've read
|
||||
the code, ping me and I'll expand on this further. --ttn]
|
||||
</p>
|
||||
|
|
|
|||
|
|
@ -413,7 +413,7 @@ Overloaded Functions and Methods</a>.
|
|||
|
||||
<!-- This isn't correct for 1.3.30 and needs rewriting to reflect reality
|
||||
<p>
|
||||
Because PHP4 is a dynamically typed language, simple values can be
|
||||
Because PHP is a dynamically typed language, simple values can be
|
||||
silently converted from one type to another. For example, integers,
|
||||
doubles and strings silently convert to each other depending on
|
||||
context. This situation make overloading slightly problematic because
|
||||
|
|
@ -433,7 +433,7 @@ PHP. The string <tt>"2"</tt> simultaneously represents the integer
|
|||
|
||||
<p>
|
||||
In order to provide the most natural experience to PHP programmers,
|
||||
the default <tt>%typecheck</tt> implemented in <tt>php4.swg</tt>
|
||||
the default <tt>%typecheck</tt> implemented in <tt>php.swg</tt>
|
||||
allows any simple type (integer, double, string) in PHP to be used for
|
||||
any simple C type (int, double, char *). The function selected then
|
||||
depends only on the argument type precedence defined by SWIG.
|
||||
|
|
@ -783,7 +783,7 @@ Ko::threats();
|
|||
|
||||
<p>
|
||||
Note: Currently pragmas for PHP need to be specified using
|
||||
<tt>%pragma(php4)</tt> but also apply for PHP5! This is just a historical
|
||||
<tt>%pragma(php)</tt> but also apply for PHP5! This is just a historical
|
||||
oddity because SWIG's PHP support predates PHP5.
|
||||
</p>
|
||||
|
||||
|
|
@ -795,7 +795,7 @@ object.
|
|||
|
||||
<div class="code"><pre>
|
||||
%module example
|
||||
%pragma(php4) code="
|
||||
%pragma(php) code="
|
||||
# This code is inserted into example.php
|
||||
echo \"example.php execution\\n\";
|
||||
"
|
||||
|
|
@ -817,7 +817,7 @@ the example.php file.
|
|||
|
||||
<div class="code"><pre>
|
||||
%module example
|
||||
%pragma(php4) code="
|
||||
%pragma(php) code="
|
||||
include \"include.php\";
|
||||
"
|
||||
%pragma(php) include="include.php" // equivalent.
|
||||
|
|
@ -831,7 +831,7 @@ phpinfo() function.
|
|||
|
||||
<div class="code"><pre>
|
||||
%module example;
|
||||
%pragma(php4) phpinfo="
|
||||
%pragma(php) phpinfo="
|
||||
zend_printf("An example of PHP support through SWIG\n");
|
||||
php_info_print_table_start();
|
||||
php_info_print_table_header(2, \"Directive\", \"Value\");
|
||||
|
|
|
|||
|
|
@ -118,7 +118,6 @@ SWIGOCAML Defined when using Ocaml
|
|||
SWIGPERL Defined when using Perl
|
||||
SWIGPERL5 Defined when using Perl5
|
||||
SWIGPHP Defined when using PHP
|
||||
SWIGPHP4 Defined when using PHP4
|
||||
SWIGPHP5 Defined when using PHP5
|
||||
SWIGPIKE Defined when using Pike
|
||||
SWIGPYTHON Defined when using Python
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@ can be obtained by typing <tt>swig -help</tt> or <tt>swig
|
|||
-mzscheme Generate Mzscheme wrappers
|
||||
-ocaml Generate Ocaml wrappers
|
||||
-perl Generate Perl wrappers
|
||||
-php5 Generate PHP5 wrappers
|
||||
-php Generate PHP wrappers
|
||||
-pike Generate Pike wrappers
|
||||
-python Generate Python wrappers
|
||||
-r Generate R (aka GNU S) wrappers
|
||||
|
|
|
|||
|
|
@ -558,7 +558,7 @@ example.i(4): Syntax error in input.
|
|||
</ul>
|
||||
|
||||
<ul>
|
||||
<li>870. Warning for <em>classname</em>: Base <em>baseclass</em> ignored. Multiple inheritance is not supported in Php4. (Php).
|
||||
<li>870. Warning for <em>classname</em>: Base <em>baseclass</em> ignored. Multiple inheritance is not supported in PHP.
|
||||
<li>871. Unrecognized pragma <em>pragma</em>. (Php).
|
||||
</ul>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue