summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlly Betts <olly@survex.com>2015-09-04 12:14:21 +1200
committerOlly Betts <olly@survex.com>2015-09-04 12:14:21 +1200
commit9e69a2c198ff684b757ce26ca95a3b2112dbc530 (patch)
tree0142520fcd52cb5627e5f4995587cdaff9cf8082
parentefcaa8fdaca0e25013d50d9b2c4239988d90eaf4 (diff)
downloadswig-9e69a2c198ff684b757ce26ca95a3b2112dbc530.tar.gz
Use name of PHP resource not wrapped C++ type
Since callback::foo_T<int> isn't a PHP resource, that error message doesn't really make sense as it was. As discussed in #467.
-rw-r--r--Examples/test-suite/php/callback_runme.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Examples/test-suite/php/callback_runme.php b/Examples/test-suite/php/callback_runme.php
index 392d5e598..fefa32502 100644
--- a/Examples/test-suite/php/callback_runme.php
+++ b/Examples/test-suite/php/callback_runme.php
@@ -3,7 +3,7 @@
require "tests.php";
require "callback.php";
// In 2.0.6 and earlier, the constant was misnamed.
-if (gettype(callback::FOO_I_Cb_Ptr) !== 'resource') die("callback::foo_T<int> not a resource\n");
+if (gettype(callback::FOO_I_Cb_Ptr) !== 'resource') die("callback::FOO_I_Cb_Ptr not a resource\n");
check::done();
?>