aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/php5/director_pass_by_value_runme.php
diff options
context:
space:
mode:
authorHaibo Huang <hhb@google.com>2019-10-08 15:48:26 -0700
committerHaibo Huang <hhb@google.com>2019-11-14 22:14:23 +0000
commit80b4251e302efb18c145a4786249d695397ed42a (patch)
tree12b9dec2513f7caa92e7835bc17ab16ae5635df6 /Examples/test-suite/php5/director_pass_by_value_runme.php
parent189852d8cdfd5863c52ec7aa73affd926c5a3f43 (diff)
parent1e36f51346d95f8b9848e682c2eb986e9cb9b4f4 (diff)
downloadswig-80b4251e302efb18c145a4786249d695397ed42a.tar.gz
Upgrade swig to 'rel-4.0.1'llvm-r383902b
Also run autogen.sh to generate configure files. Exempt-From-Owner-Approval: add myself to owners Change-Id: I391aa20428836ae74dab8c8427627ca4dbc8ecf4
Diffstat (limited to 'Examples/test-suite/php5/director_pass_by_value_runme.php')
-rw-r--r--Examples/test-suite/php5/director_pass_by_value_runme.php24
1 files changed, 0 insertions, 24 deletions
diff --git a/Examples/test-suite/php5/director_pass_by_value_runme.php b/Examples/test-suite/php5/director_pass_by_value_runme.php
deleted file mode 100644
index 8a8b84d67..000000000
--- a/Examples/test-suite/php5/director_pass_by_value_runme.php
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-
-require "tests.php";
-require "director_pass_by_value.php";
-
-$passByVal = null;
-
-class director_pass_by_value_Derived extends DirectorPassByValueAbstractBase {
- function virtualMethod($b) {
- global $passByVal;
- $passByVal = $b;
- }
-}
-
-# bug was the passByVal global object was destroyed after the call to virtualMethod had finished.
-$caller = new Caller();
-$caller->call_virtualMethod(new director_pass_by_value_Derived());
-$ret = $passByVal->getVal();
-if ($ret != 0x12345678) {
- check::fail("Bad return value, got " . dechex($ret));
-}
-
-check::done();
-?>