Comment out use of call-time pass by reference, which has been deprecated for

ages, and is no longer supported by PHP 5.4.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13095 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Olly Betts 2012-05-18 02:42:23 +00:00
commit b32c70e244

View file

@ -23,15 +23,16 @@ check::equal(5,intp_value($tr),"5==$tr");
# Check the voidhandle call, first with null
unset($handle);
voidhandle($handle);
check::resource($handle,"_p_void",'$handle is not _p_void');
$handledata=handle($handle);
check::equal($handledata,"Here it is","\$handledata != \"Here it is\"");
# FIXME: Call-time pass-by-reference has been deprecated for ages, and was
# removed in PHP 5.4. We need to rework
#voidhandle(&$handle);
#check::resource($handle,"_p_void",'$handle is not _p_void');
#$handledata=handle($handle);
#check::equal($handledata,"Here it is","\$handledata != \"Here it is\"");
unset($handle);
// without reference, should fatal error so can't test here
//voidhandle($handle);
//check::isnull($handle,'$handle not null');
voidhandle($handle);
check::isnull($handle,'$handle not null');
check::done();
?>