Number: 1201
Title: PHP Language Bindings Broken: Method overloading doesn't work
Submitter: Marcus Cobden
Date: Sat Sep 29 09:04:05 2007
Subsys: Other
Version: 2.1
System: *-Unix-
Severity: major
Problem:
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.
Input:

<?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";
Comments: probably affects more functions than those I've tried.
Owner: ellson
Status: *