Add FIXME comment
This looks to be the reason why testcases overload_null and overload_polymorphic are failing.
This commit is contained in:
parent
0da436aa83
commit
d87b3fb745
1 changed files with 1 additions and 0 deletions
|
|
@ -222,6 +222,7 @@ SWIG_ConvertPtr(zval *z, void **ptr, swig_type_info *ty, int flags) {
|
||||||
zval * _cPtr = zend_hash_str_find(ht, "_cPtr", sizeof("_cPtr") - 1);
|
zval * _cPtr = zend_hash_str_find(ht, "_cPtr", sizeof("_cPtr") - 1);
|
||||||
if (_cPtr) {
|
if (_cPtr) {
|
||||||
if (zend_hash_str_exists(ht, "SWIG_classWrapper", sizeof("SWIG_classWrapper") - 1)) {
|
if (zend_hash_str_exists(ht, "SWIG_classWrapper", sizeof("SWIG_classWrapper") - 1)) {
|
||||||
|
/* FIXME - we need to check the type is compatible here! */
|
||||||
*ptr = SWIG_Z_FETCH_OBJ_P(z)->ptr;
|
*ptr = SWIG_Z_FETCH_OBJ_P(z)->ptr;
|
||||||
return (*ptr == NULL ? -1 : 0);
|
return (*ptr == NULL ? -1 : 0);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue