diff options
author | Olly Betts <olly@survex.com> | 2021-05-04 14:14:56 +1200 |
---|---|---|
committer | Olly Betts <olly@survex.com> | 2021-05-04 14:14:56 +1200 |
commit | 32283991c5d831840e4625007a9e15399d1ff1de (patch) | |
tree | 996a398bf3a2b4e3b05c7f41c52a881654218b77 /Examples/php | |
parent | 6e6d720d8866e4f5d4b3b0f9ea12777f440be453 (diff) | |
download | swig-32283991c5d831840e4625007a9e15399d1ff1de.tar.gz |
Don't generate a .php wrapper file by default
It's now only generated if something to put in it is specified via:
%pragma(php) include=...
or
%pragma(php) code=...
Diffstat (limited to 'Examples/php')
-rw-r--r-- | Examples/php/callback/runme.php | 2 | ||||
-rw-r--r-- | Examples/php/class/runme.php | 2 | ||||
-rw-r--r-- | Examples/php/constants/runme.php | 2 | ||||
-rw-r--r-- | Examples/php/cpointer/runme.php | 2 | ||||
-rw-r--r-- | Examples/php/disown/runme.php | 2 | ||||
-rw-r--r-- | Examples/php/enum/runme.php | 2 | ||||
-rw-r--r-- | Examples/php/extend/runme.php | 2 | ||||
-rw-r--r-- | Examples/php/funcptr/runme.php | 2 | ||||
-rw-r--r-- | Examples/php/overloading/runme.php | 2 | ||||
-rw-r--r-- | Examples/php/pointer/runme.php | 2 | ||||
-rw-r--r-- | Examples/php/proxy/runme.php | 2 | ||||
-rw-r--r-- | Examples/php/reference/runme.php | 2 | ||||
-rw-r--r-- | Examples/php/simple/runme.php | 2 | ||||
-rw-r--r-- | Examples/php/sync/runme.php | 2 | ||||
-rw-r--r-- | Examples/php/value/runme.php | 3 | ||||
-rw-r--r-- | Examples/php/variables/runme.php | 1 |
16 files changed, 0 insertions, 32 deletions
diff --git a/Examples/php/callback/runme.php b/Examples/php/callback/runme.php index fe4cd8b95..e7093209c 100644 --- a/Examples/php/callback/runme.php +++ b/Examples/php/callback/runme.php @@ -2,8 +2,6 @@ # This file illustrates the cross language polymorphism using directors. -require("example.php"); - # Class, which overwrites Callback::run(). class PhpCallback extends Callback { diff --git a/Examples/php/class/runme.php b/Examples/php/class/runme.php index 88b4cfc79..0f667695b 100644 --- a/Examples/php/class/runme.php +++ b/Examples/php/class/runme.php @@ -2,8 +2,6 @@ # This example illustrates how member variables are wrapped. -require("example.php"); - # ----- Object creation ----- print "Creating some objects:\n"; diff --git a/Examples/php/constants/runme.php b/Examples/php/constants/runme.php index ef923829d..e561626d8 100644 --- a/Examples/php/constants/runme.php +++ b/Examples/php/constants/runme.php @@ -1,7 +1,5 @@ <?php -require "example.php"; - print "ICONST = " . ICONST . " (should be 42)\n"; print "FCONST = " . FCONST . " (should be 2.1828)\n"; print "CCONST = " . CCONST . " (should be 'x')\n"; diff --git a/Examples/php/cpointer/runme.php b/Examples/php/cpointer/runme.php index 3a0f19ec2..f552ed78a 100644 --- a/Examples/php/cpointer/runme.php +++ b/Examples/php/cpointer/runme.php @@ -1,7 +1,5 @@ <?php - require "example.php"; - # First create some objects using the pointer library. print "Testing the pointer library\n"; diff --git a/Examples/php/disown/runme.php b/Examples/php/disown/runme.php index 9bdaecb3f..e847dc71d 100644 --- a/Examples/php/disown/runme.php +++ b/Examples/php/disown/runme.php @@ -4,8 +4,6 @@ # created by SWIG. In this case, all of our C++ classes # get converted into function calls. -require("example.php"); - # ----- Object creation ----- print "Creating some objects:\n"; diff --git a/Examples/php/enum/runme.php b/Examples/php/enum/runme.php index 23d4fbc10..bf5ba881f 100644 --- a/Examples/php/enum/runme.php +++ b/Examples/php/enum/runme.php @@ -1,7 +1,5 @@ <?php -require "example.php"; - # ----- Object creation ----- # Print out the value of some enums diff --git a/Examples/php/extend/runme.php b/Examples/php/extend/runme.php index 94a59e69e..93eedee99 100644 --- a/Examples/php/extend/runme.php +++ b/Examples/php/extend/runme.php @@ -2,8 +2,6 @@ # This file illustrates the cross language polymorphism using directors. -require("example.php"); - # CEO class, which overrides Employee::getPosition(). class CEO extends Manager { diff --git a/Examples/php/funcptr/runme.php b/Examples/php/funcptr/runme.php index 4590a5cbb..d76a19bc7 100644 --- a/Examples/php/funcptr/runme.php +++ b/Examples/php/funcptr/runme.php @@ -1,7 +1,5 @@ <?php -require "example.php"; - $a = 37; $b = 42; diff --git a/Examples/php/overloading/runme.php b/Examples/php/overloading/runme.php index ffa7e1167..d4df899f0 100644 --- a/Examples/php/overloading/runme.php +++ b/Examples/php/overloading/runme.php @@ -4,8 +4,6 @@ # created by SWIG. In this case, all of our C++ classes # get converted into function calls. -include("example.php"); - # ----- Object creation ----- print "Creating some objects:\n"; diff --git a/Examples/php/pointer/runme.php b/Examples/php/pointer/runme.php index e0ed35b02..8dc3ab887 100644 --- a/Examples/php/pointer/runme.php +++ b/Examples/php/pointer/runme.php @@ -1,7 +1,5 @@ <?php - require "example.php"; - # First create some objects using the pointer library. print "Testing the pointer library\n"; diff --git a/Examples/php/proxy/runme.php b/Examples/php/proxy/runme.php index 8a2926517..0f156b6ad 100644 --- a/Examples/php/proxy/runme.php +++ b/Examples/php/proxy/runme.php @@ -4,8 +4,6 @@ # created by SWIG. In this case, all of our C++ classes # get converted into function calls. -include("example.php"); - # ----- Object creation ----- print "Creating some objects:\n"; diff --git a/Examples/php/reference/runme.php b/Examples/php/reference/runme.php index 722acdb60..5c7fc9a88 100644 --- a/Examples/php/reference/runme.php +++ b/Examples/php/reference/runme.php @@ -2,8 +2,6 @@ # This file illustrates the manipulation of C++ references in PHP. -require "example.php"; - # ----- Object creation ----- print "Creating some objects:\n"; diff --git a/Examples/php/simple/runme.php b/Examples/php/simple/runme.php index 7cb84dc0b..2795f32a0 100644 --- a/Examples/php/simple/runme.php +++ b/Examples/php/simple/runme.php @@ -1,7 +1,5 @@ <?php -require "example.php"; - # Call our gcd() function $x = "42 aaa"; diff --git a/Examples/php/sync/runme.php b/Examples/php/sync/runme.php index 597b2fc88..f01a9b3f6 100644 --- a/Examples/php/sync/runme.php +++ b/Examples/php/sync/runme.php @@ -1,7 +1,5 @@ <? -include("example.php"); - echo "PHP reading globals: string is '", s_get(), "' and value is ", x_get(), "\n"; $o = new Sync(); diff --git a/Examples/php/value/runme.php b/Examples/php/value/runme.php index 977b99cc8..112fbc874 100644 --- a/Examples/php/value/runme.php +++ b/Examples/php/value/runme.php @@ -1,8 +1,5 @@ <?php - require "example.php"; - - $v = new Vector(); $v->x = 1.0; $v->y = 2.0; diff --git a/Examples/php/variables/runme.php b/Examples/php/variables/runme.php index 126b54216..a14fede72 100644 --- a/Examples/php/variables/runme.php +++ b/Examples/php/variables/runme.php @@ -1,6 +1,5 @@ <?php - require "example.php"; echo "\nVariables (values printed from C)\n"; print_vars(); |