<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 6: Uncaught exception 'ReflectionException' with message 'Canno</title><link>https://sourceforge.net/p/phpcallgraph/bugs/6/</link><description>Recent changes to 6: Uncaught exception 'ReflectionException' with message 'Canno</description><atom:link href="https://sourceforge.net/p/phpcallgraph/bugs/6/feed.rss" rel="self"/><language>en</language><lastBuildDate>Sun, 28 Feb 2010 03:55:30 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/phpcallgraph/bugs/6/feed.rss" rel="self" type="application/rss+xml"/><item><title>Uncaught exception 'ReflectionException' with message 'Canno</title><link>https://sourceforge.net/p/phpcallgraph/bugs/6/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, i tested phpcallgraph and i think it is a great tool.&lt;/p&gt;
&lt;p&gt;I got this error when i run phpcallgraph to analyse one of my messy files : &lt;br /&gt;
PHP Fatal error:  Uncaught exception 'ReflectionException' with message&lt;br /&gt;
'Cannot determine default value for internal functions'&lt;/p&gt;
&lt;p&gt;here is my patch&lt;/p&gt;
&lt;p&gt;===================================================================&lt;br /&gt;
--- instantsvc/components/CodeAnalyzer/src/code_analyzer.php  (revision 1296)&lt;br /&gt;
+++ instantsvc/components/CodeAnalyzer/src/code_analyzer.php   (working copy)&lt;br /&gt;
@@ -1063,8 +1063,8 @@&lt;br /&gt;
$result[$param-&amp;gt;getName()]['isOptional'] = $param-&amp;gt;isOptional();&lt;br /&gt;
$result[$param-&amp;gt;getName()]['byReference'] = $param-&amp;gt;isPassedByReference();&lt;br /&gt;
if ($param-&amp;gt;isOptional()) {&lt;br /&gt;
-                $result[$param-&amp;gt;getName()]['hasDefault'] = $param-&amp;gt;isDefaultValueAvailable();&lt;br /&gt;
-                $result[$param-&amp;gt;getName()]['defaultValue'] = $param-&amp;gt;getDefaultValue();&lt;br /&gt;
+                $result[$param-&amp;gt;getName()]['hasDefault'] = $hasDefault = $param-&amp;gt;isDefaultValueAvailable();&lt;br /&gt;
+                $result[$param-&amp;gt;getName()]['defaultValue'] = $hasDefault ? $param-&amp;gt;getDefaultValue() : null ;&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
return $result;&lt;/p&gt;
&lt;p&gt;Thanks again for the great tool&lt;br /&gt;
rahal&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Sun, 28 Feb 2010 03:55:30 -0000</pubDate><guid>https://sourceforge.net9b96d31ce6d50171e55a307af9a3021ab9b43607</guid></item></channel></rss>