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:
parent
95821b7a04
commit
b32c70e244
1 changed files with 8 additions and 7 deletions
|
|
@ -23,15 +23,16 @@ check::equal(5,intp_value($tr),"5==$tr");
|
||||||
|
|
||||||
# Check the voidhandle call, first with null
|
# Check the voidhandle call, first with null
|
||||||
unset($handle);
|
unset($handle);
|
||||||
voidhandle($handle);
|
# FIXME: Call-time pass-by-reference has been deprecated for ages, and was
|
||||||
check::resource($handle,"_p_void",'$handle is not _p_void');
|
# removed in PHP 5.4. We need to rework
|
||||||
$handledata=handle($handle);
|
#voidhandle(&$handle);
|
||||||
check::equal($handledata,"Here it is","\$handledata != \"Here it is\"");
|
#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);
|
unset($handle);
|
||||||
// without reference, should fatal error so can't test here
|
voidhandle($handle);
|
||||||
//voidhandle($handle);
|
check::isnull($handle,'$handle not null');
|
||||||
//check::isnull($handle,'$handle not null');
|
|
||||||
|
|
||||||
check::done();
|
check::done();
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue