note 99244 added to inclued.examples-implementation
| From: | admin at eexit dot net | Date: | Thu, 05 Aug 2010 15:14:34 +0000 |
| Subject: | note 99244 added to inclued.examples-implementation | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-171405@lists.php.net to get a copy of this message | ||
The new gengraph.php has « -t » parameter set to « includes » by default. Don't
forget to specify it to « classes » for most of all projects.
Since PHP 5.3, namespace operators are stripped by Graphiz when the graph is generated. Add the
following tips to escape namespace operators:
<?php
// Around line 254
else /* classes */
{
$filemap = array();
foreach($data["classes"] as $k => $v) {
$class = $v;
// Here is the tip to remove namespaces
$class['name'] = str_replace('\\', '\\\\',
$class['name']);
$class['mangled_name'] = str_replace('\\', '\\\\',
$class['mangled_name']);
// ...
?>
By the way, if you are looking for an easy way to use inclued, take a look at my library: http://www.eexit.net/projects/inclued.html
----
Server IP: 89.31.146.176
Probable Submitter: 82.235.44.38
----
Manual Page -- http://www.php.net/manual/en/inclued.examples-implementation.php
Edit -- https://master.php.net/note/edit/99244
Del: integrated -- https://master.php.net/note/delete/99244/integrated
Del: useless -- https://master.php.net/note/delete/99244/useless
Del: bad code -- https://master.php.net/note/delete/99244/bad+code
Del: spam -- https://master.php.net/note/delete/99244/spam
Del: non-english -- https://master.php.net/note/delete/99244/non-english
Del: in docs -- https://master.php.net/note/delete/99244/in+docs
Del: other reasons-- https://master.php.net/note/delete/99244
Reject -- https://master.php.net/note/reject/99244
Search -- https://master.php.net/manage/user-notes.php