<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 6: Uncaught exception 'ReflectionException' with message 'Canno</title><link href="https://sourceforge.net/p/phpcallgraph/bugs/6/" rel="alternate"/><link href="https://sourceforge.net/p/phpcallgraph/bugs/6/feed.atom" rel="self"/><id>https://sourceforge.net/p/phpcallgraph/bugs/6/</id><updated>2010-02-28T03:55:30Z</updated><subtitle>Recent changes to 6: Uncaught exception 'ReflectionException' with message 'Canno</subtitle><entry><title>Uncaught exception 'ReflectionException' with message 'Canno</title><link href="https://sourceforge.net/p/phpcallgraph/bugs/6/" rel="alternate"/><published>2010-02-28T03:55:30Z</published><updated>2010-02-28T03:55:30Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net9b96d31ce6d50171e55a307af9a3021ab9b43607</id><summary type="html">&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;</summary></entry></feed>