[Other] PHP Language Bindings Broken: Method overloading doesn't work
Ported Issue from Mantis Original ID: 1172 Reported By: Marcus Cobden
SEVERITY: MAJOR Submitted: 2007-09-29 14:04:05
OS: *-UNIX-
VERSION: 2.1
DESCRIPTION
Using the language bindings in php does not work with any method which is overloaded with the same amount of parameters.
eg nameof( or firstattr( or nextattr( only work for graph objects.
STEPS TO REPRODUCE
<?php
require_once '../apps/lib/graphviz/php/gv.php';
$f = get_extension_funcs("gv");
echo "Functions:\n";
foreach ($f as $name) {
echo $name, "\n";
}
$g = graph("my graph");
echo "\nType of graph:\n";
var_dump($g);
$n = node($g, "my node");
echo "Type of node:\n";
var_dump($n);
layout($g, "dot");
render($g);
$attr = firstattr($n);
echo "Type of attr:\n";
var_dump($attr);
echo "Name of attr: ", nameof($attr), "\n";
ADDITIONAL INFORMATION
probably affects more functions than those I've tried.