Change one argument to string to show silent conversion to doubles and
prove no accidental data loss. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7454 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
1ea3104707
commit
e40a114246
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ require "example.php";
|
||||||
|
|
||||||
# Call our gcd() function
|
# Call our gcd() function
|
||||||
|
|
||||||
$x = 42;
|
$x = "42 aaa";
|
||||||
$y = 105;
|
$y = 105;
|
||||||
$g = gcd($x,$y);
|
$g = gcd($x,$y);
|
||||||
print "The gcd of $x and $y is $g\n";
|
print "The gcd of $x and $y is $g\n";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue