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=...
This commit is contained in:
Olly Betts 2021-05-04 14:14:56 +12:00
commit 32283991c5
101 changed files with 46 additions and 176 deletions

View file

@ -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 {

View file

@ -2,8 +2,6 @@
# This example illustrates how member variables are wrapped.
require("example.php");
# ----- Object creation -----
print "Creating some objects:\n";

View file

@ -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";

View file

@ -1,7 +1,5 @@
<?php
require "example.php";
# First create some objects using the pointer library.
print "Testing the pointer library\n";

View file

@ -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";

View file

@ -1,7 +1,5 @@
<?php
require "example.php";
# ----- Object creation -----
# Print out the value of some enums

View file

@ -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 {

View file

@ -1,7 +1,5 @@
<?php
require "example.php";
$a = 37;
$b = 42;

View file

@ -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";

View file

@ -1,7 +1,5 @@
<?php
require "example.php";
# First create some objects using the pointer library.
print "Testing the pointer library\n";

View file

@ -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";

View file

@ -2,8 +2,6 @@
# This file illustrates the manipulation of C++ references in PHP.
require "example.php";
# ----- Object creation -----
print "Creating some objects:\n";

View file

@ -1,7 +1,5 @@
<?php
require "example.php";
# Call our gcd() function
$x = "42 aaa";

View file

@ -1,7 +1,5 @@
<?
include("example.php");
echo "PHP reading globals: string is '", s_get(), "' and value is ", x_get(), "\n";
$o = new Sync();

View file

@ -1,8 +1,5 @@
<?php
require "example.php";
$v = new Vector();
$v->x = 1.0;
$v->y = 2.0;

View file

@ -1,6 +1,5 @@
<?php
require "example.php";
echo "\nVariables (values printed from C)\n";
print_vars();