php: Wrap classes using only swig_object_wrapper
We no longer use PHP resources to wrap classes, and the proxy classes no longer has a _cPtr property.
This commit is contained in:
parent
0267ee374b
commit
40da8bcbb6
6 changed files with 83 additions and 203 deletions
|
|
@ -21,9 +21,7 @@ $b = new Bar();
|
|||
$b->set($a);
|
||||
$c = $b->get();
|
||||
|
||||
// FIXME: This doesn't work for checking that they wrap the same C++ object
|
||||
// because the two objects have different PHP resources, and we can't easily
|
||||
// look inside those resources to see which C++ objects they refer to.
|
||||
//check::equal($a->_cPtr, $c->_cPtr, "_cPtr check failed");
|
||||
// FIXME: The python version checks that a.this == c.this, but we don't seem
|
||||
// to have a way to check this with the PHP bindings we generate.
|
||||
|
||||
check::done();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue