cvs: pecl /inclued gengraph.php
| From: | Gopal Vijayaraghavan | Date: | Tue, 06 May 2008 12:06:34 +0000 |
| Subject: | cvs: pecl /inclued gengraph.php | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-10703@lists.php.net to get a copy of this message | ||
gopalv Tue May 6 12:06:34 2008 UTC
Modified files:
/pecl/inclued gengraph.php
Log:
fix bug #13688 - handle classes without mangled names
http://cvs.php.net/viewvc.cgi/pecl/inclued/gengraph.php?r1=1.1&r2=1.2&diff_format=u
Index: pecl/inclued/gengraph.php
diff -u pecl/inclued/gengraph.php:1.1 pecl/inclued/gengraph.php:1.2
--- pecl/inclued/gengraph.php:1.1 Wed Jan 23 20:05:28 2008
+++ pecl/inclued/gengraph.php Tue May 6 12:06:34 2008
@@ -89,6 +89,10 @@
foreach($v as $kk => $vv)
{
$class = $vv;
+ if(!isset($class['mangled_name']))
+ {
+ $class['mangled_name'] = strtolower($class['name']);
+ }
$content = <<<EOF
"{$class['mangled_name']}" [label="{$class['name']}"];
EOF;
@@ -108,6 +112,12 @@
$class = $vv;
$derieved = isset($class['parent']);
$internal = false;
+
+ if(!isset($class['mangled_name']))
+ {
+ $class['mangled_name'] = strtolower($class['name']);
+ }
+
if($derieved)
{
$parent_name = strtolower($class['parent']['name']);
@@ -188,5 +198,5 @@
echo "Written $ofile...\nTo generate images: dot -Tpng -o inclued.png $ofile\n";
-/* $Id: gengraph.php,v 1.1 2008/01/23 20:05:28 gopalv Exp $ */
+/* $Id: gengraph.php,v 1.2 2008/05/06 12:06:34 gopalv Exp $ */
?>