<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/phpcallgraph/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/phpcallgraph/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/phpcallgraph/bugs/</id><updated>2014-06-28T07:31:01.527000Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>#10 Error ReflectionException</title><link href="https://sourceforge.net/p/phpcallgraph/bugs/10/?limit=25#4dc6" rel="alternate"/><published>2014-06-28T07:31:01.527000Z</published><updated>2014-06-28T07:31:01.527000Z</updated><author><name>webtiger</name><uri>https://sourceforge.net/u/webtigerdrm/</uri></author><id>https://sourceforge.netf9963c7a5e9abd3a181dc37b62f3d4f6cdd90ed5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;php reverted back to 5.2.6, solved the problem for me.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#9 Errors on PHP 5.3+</title><link href="https://sourceforge.net/p/phpcallgraph/bugs/9/?limit=25#d1a8" rel="alternate"/><published>2014-02-07T01:36:36.247000Z</published><updated>2014-02-07T01:36:36.247000Z</updated><author><name>Dave</name><uri>https://sourceforge.net/u/aspnetlive/</uri></author><id>https://sourceforge.neta50891023c3a67d1cbfa5de8c13d6165334fad5b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Same error on ubuntu 12.04.3 (php 5.3.10).&lt;/p&gt;
&lt;p&gt;Easy fix for Pear errors: $sudo apt-get install php-pear&lt;br /&gt;
Same fix as 1) above for split() -&amp;gt; preg_split()&lt;/p&gt;
&lt;p&gt;Surprisingly not getting pointer error. Have to investigate further.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#10 Error ReflectionException</title><link href="https://sourceforge.net/p/phpcallgraph/bugs/10/?limit=25#845e" rel="alternate"/><published>2013-08-08T06:42:52.818000Z</published><updated>2013-08-08T06:42:52.818000Z</updated><author><name>Mark Safronov</name><uri>https://sourceforge.net/u/hijarian/</uri></author><id>https://sourceforge.netbaff9a1832c3c9da42325ee4c99325b299251f46</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I confirm this bug, too. I tried to hack the solution by changing ezcReflectionClass::$class to "public" but it did not work. I don't know why PHP treats this property as read-only.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Error ReflectionException</title><link href="https://sourceforge.net/p/phpcallgraph/bugs/10/" rel="alternate"/><published>2013-04-23T08:44:15Z</published><updated>2013-04-23T08:44:15Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.netf6a35a9b0d990231609c2b1784804e98ef178546</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi everyone ! &lt;/p&gt;
&lt;p&gt;I tried to use phpcallgraph but when i analyzed i got an error with the following command : &lt;/p&gt;
&lt;p&gt;phpcallgraph -f txt -r -p -v -g -o testPhpCallGraph.txt c:/wamp/www/graphs c:/wamp/www/myproject&lt;/p&gt;
&lt;p&gt;The error  :&lt;/p&gt;
&lt;p&gt;string(73) "c:/wamp/www/icloco-master/web-app/jtable/themes/metro/pink/jtable.min.css"&lt;br /&gt;
[119] =&amp;gt;&lt;br /&gt;
string(70) "c:/wamp/www/icloco-master/web-app/jtable/themes/metro/pink/loading.gif"&lt;br /&gt;
[120] =&amp;gt;&lt;br /&gt;
string(71) "c:/wamp/www/icloco-master/web-app/jtable/themes/metro/purple/jtable.css"&lt;br /&gt;
[121] =&amp;gt;&lt;br /&gt;
string(72) "c:/wamp/www/icloco-master/web-app/jtable/themes/metro/purple/jtable.less"&lt;br /&gt;
[122] =&amp;gt;&lt;br /&gt;
string(75) "c:/wamp/www/icloco-master/web-app/jtable/themes/metro/purple/jtable.min.css"&lt;br /&gt;
[123] =&amp;gt;&lt;br /&gt;
string(72) "c:/wamp/www/icloco-master/web-app/jtable/themes/metro/purple/loading.gif"&lt;br /&gt;
[124] =&amp;gt;&lt;br /&gt;
string(68) "c:/wamp/www/icloco-master/web-app/jtable/themes/metro/red/jtable.css"&lt;br /&gt;
[125] =&amp;gt;&lt;br /&gt;
string(69) "c:/wamp/www/icloco-master/web-app/jtable/themes/metro/red/jtable.less"&lt;br /&gt;
[126] =&amp;gt;&lt;br /&gt;
string(72) "c:/wamp/www/icloco-master/web-app/jtable/themes/metro/red/jtable.min.css"&lt;br /&gt;
[127] =&amp;gt;&lt;br /&gt;
string(69) "c:/wamp/www/icloco-master/web-app/jtable/themes/metro/red/loading.gif"&lt;/p&gt;
&lt;p&gt;(more elements)...&lt;br /&gt;
}&lt;br /&gt;
CodeAnalyzer: inspecting c:/wamp/www/icloco-master/web-app/Result-Tests-Jenkins.php&lt;br /&gt;
PHP Fatal error:  Uncaught exception 'ReflectionException' with message 'Cannot set read-only property ezcReflectionClass::$class' in C:\Users\lrossignol\Desktop\phpcallgraph-0.8.0\p&lt;br /&gt;
hpcallgraph-0.8.0\lib\ezcomponents\Reflection\src\class.php:47&lt;br /&gt;
Stack trace:&lt;br /&gt;
#0 C:\Users\lrossignol\Desktop\phpcallgraph-0.8.0\phpcallgraph-0.8.0\lib\ezcomponents\Reflection\src\class.php(47): ezcReflectionClass::__construct()&lt;br /&gt;
#1 C:\Users\lrossignol\Desktop\phpcallgraph-0.8.0\phpcallgraph-0.8.0\lib\instantsvc\components\CodeAnalyzer\src\code_analyzer.php(407): ezcReflectionClass-&amp;gt;__construct('ezcReflection&lt;br /&gt;
Cl...')&lt;br /&gt;
#2 C:\Users\lrossignol\Desktop\phpcallgraph-0.8.0\phpcallgraph-0.8.0\lib\instantsvc\components\CodeAnalyzer\src\code_analyzer.php(222): iscCodeAnalyzer::summarizeInSandbox('c:/wamp/w&lt;br /&gt;
ww/icl...', '', true)&lt;br /&gt;
#3 C:\Users\lrossignol\Desktop\phpcallgraph-0.8.0\phpcallgraph-0.8.0\src\PHPCallGraph.php(226): iscCodeAnalyzer-&amp;gt;inspectFiles(Array)&lt;br /&gt;
#4 C:\Users\lrossignol\Desktop\phpcallgraph-0.8.0\phpcallgraph-0.8.0\src\PHPCallGraphCli.php(226): PHPCallG in C:\Users\lrossignol\Desktop\phpcallgraph-0.8.0\phpcallgraph-0.8.0\lib\e&lt;br /&gt;
zcomponents\Reflection\src\class.php on line 47&lt;/p&gt;
&lt;p&gt;Fatal error: Uncaught exception 'ReflectionException' with message 'Cannot set read-only property ezcReflectionClass::$class' in C:\Users\lrossignol\Desktop\phpcallgraph-0.8.0\phpcal&lt;br /&gt;
lgraph-0.8.0\lib\ezcomponents\Reflection\src\class.php on line 47&lt;/p&gt;
&lt;p&gt;ReflectionException: Cannot set read-only property ezcReflectionClass::$class in C:\Users\lrossignol\Desktop\phpcallgraph-0.8.0\phpcallgraph-0.8.0\lib\ezcomponents\Reflection\src\cla&lt;br /&gt;
ss.php on line 47&lt;/p&gt;
&lt;p&gt;Call Stack:&lt;br /&gt;
0.0010     128504   1. {main}() C:\Users\lrossignol\Desktop\phpcallgraph-0.8.0\phpcallgraph-0.8.0\bin\phpcallgraph:0&lt;br /&gt;
0.0092     327000   2. PHPCallGraphCli-&amp;gt;run() C:\Users\lrossignol\Desktop\phpcallgraph-0.8.0\phpcallgraph-0.8.0\bin\phpcallgraph:51&lt;br /&gt;
0.0211     953792   3. PHPCallGraph-&amp;gt;parse() C:\Users\lrossignol\Desktop\phpcallgraph-0.8.0\phpcallgraph-0.8.0\src\PHPCallGraphCli.php:226&lt;br /&gt;
0.1497    1153104   4. iscCodeAnalyzer-&amp;gt;inspectFiles() C:\Users\lrossignol\Desktop\phpcallgraph-0.8.0\phpcallgraph-0.8.0\src\PHPCallGraph.php:226&lt;br /&gt;
0.1497    1161840   5. iscCodeAnalyzer::summarizeInSandbox() C:\Users\lrossignol\Desktop\phpcallgraph-0.8.0\phpcallgraph-0.8.0\lib\instantsvc\components\CodeAnalyzer\src\code_ana&lt;br /&gt;
lyzer.php:222&lt;br /&gt;
0.1747    1524688   6. ezcReflectionClass-&amp;gt;__construct() C:\Users\lrossignol\Desktop\phpcallgraph-0.8.0\phpcallgraph-0.8.0\lib\instantsvc\components\CodeAnalyzer\src\code_analyze&lt;br /&gt;
r.php:407&lt;/p&gt;
&lt;p&gt;The complete description of this error is in the file attachement.&lt;/p&gt;
&lt;p&gt;Thank you to those who help me !&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Errors on PHP 5.3+</title><link href="https://sourceforge.net/p/phpcallgraph/bugs/9/" rel="alternate"/><published>2013-03-29T18:29:35Z</published><updated>2013-03-29T18:29:35Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net542038ee5f7ab3f4ded69cf5e1474ac5ef563dcf</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I've got this problems installing phpCallGraph on Windows XP / PHP 5.3, but they must happen on any system, so here's the patch.&lt;/p&gt;
&lt;p&gt;1) phpcallgraph-0.8.0\lib\instantsvc\components\CodeAnalyzer\src\code_analyzer.php&lt;br /&gt;
524: split got deprecated in PHP 5.3&lt;br /&gt;
-$arr = split('#-#-#-#-#', $result);&lt;br /&gt;
+$arr = preg_split('!#-#-#-#-#!', $result);&lt;/p&gt;
&lt;p&gt;2) phpcallgraph-0.8.0\phpcallgraph-0.8.0\lib\pear\PEAR.php&lt;br /&gt;
569: pointers to new got deprecated&lt;br /&gt;
-$a = &amp;amp;new $ec($code, $mode, $options, $userinfo);&lt;br /&gt;
+$a = new $ec($code, $mode, $options, $userinfo);&lt;br /&gt;
572: pointers to new got deprecated&lt;br /&gt;
-$a = &amp;amp;new $ec($message, $code, $mode, $options, $userinfo);&lt;br /&gt;
+$a = new $ec($message, $code, $mode, $options, $userinfo);&lt;/p&gt;
&lt;p&gt;3) phpcallgraph-0.8.0\phpcallgraph-0.8.0\lib\pear\System.php&lt;br /&gt;
27: there's no 'Console/Getopt.php';&lt;br /&gt;
You should add sources from this package too.&lt;br /&gt;
Link supplied for someone who would like to fix their distributions: &lt;a href="http://pear.php.net/package/Console_Getopt/download/" rel="nofollow"&gt;http://pear.php.net/package/Console_Getopt/download/&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>patch for running in PHP 5.3 strict mode</title><link href="https://sourceforge.net/p/phpcallgraph/bugs/8/" rel="alternate"/><published>2010-12-21T12:05:17Z</published><updated>2010-12-21T12:05:17Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net2acdc801d7ff3ab0b294835faa651e8ed555c76d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Played a little with phpcallgraph under PHP 5.3.2 (strict mode) and found some issues.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>phpcallgraph analyse the wrong file in case of inheritance</title><link href="https://sourceforge.net/p/phpcallgraph/bugs/7/" rel="alternate"/><published>2010-03-21T19:35:38Z</published><updated>2010-03-21T19:35:38Z</updated><author><name>Rahal Aboulfeth</name><uri>https://sourceforge.net/u/aboulfeth/</uri></author><id>https://sourceforge.net5b03e5f3fda509bf5c4e301655fcecea114de97e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br /&gt;
Here is a litte example : &lt;/p&gt;
&lt;p&gt;dad.php&lt;br /&gt;
class Dad { &lt;br /&gt;
function notOverriden() { }&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;child.php&lt;br /&gt;
class Child extends Dad() { &lt;br /&gt;
function childMethod() { }&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;Well, in phpcallgraph 0.8   , the notOverriden method is analysed in child.php (  using lineStart and lineEnd form dad.php )  (  which leads to incorrect graphs  )&lt;/p&gt;
&lt;p&gt;Here is my fix : &lt;/p&gt;
&lt;p&gt;In  ( summarizeClassMethods()  )  lib/instantsvc/components/CodeAnalyzer/src/code_analyser.php &lt;/p&gt;
&lt;p&gt;i added  ( before $result[$method-&amp;gt;getName()]['startLine'] = $method-&amp;gt;getStartLine(); ) : &lt;br /&gt;
// because of inheritance , filename may not be the same as the analysed class&lt;br /&gt;
$result[$method-&amp;gt;getName()]['file'] = $method-&amp;gt;getFilename();&lt;/p&gt;
&lt;p&gt;In (   analyseCodeSummary() , src/PHPCallGraph.php ) ,   replaced $class['file']  by  $method['file']&lt;/p&gt;
&lt;p&gt;My graphs seems correct now.&lt;/p&gt;
&lt;p&gt;Thanks again for the great tool.&lt;/p&gt;
&lt;p&gt;Rahal&lt;/p&gt;&lt;/div&gt;</summary></entry><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><entry><title>filelocked($file)</title><link href="https://sourceforge.net/p/phpcallgraph/bugs/5/" rel="alternate"/><published>2009-06-10T08:39:13Z</published><updated>2009-06-10T08:39:13Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net429c028cdc6ee1bf32a7a22ebb4bb5603dc36485</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Instead of generating a call graph, it just outputs "filelocked($file)" and returns 0.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>reports &lt;internal:mysql&gt; functions undefined?</title><link href="https://sourceforge.net/p/phpcallgraph/bugs/4/" rel="alternate"/><published>2009-02-09T15:02:57Z</published><updated>2009-02-09T15:02:57Z</updated><author><name>whiskey83</name><uri>https://sourceforge.net/u/whiskey83/</uri></author><id>https://sourceforge.net80edf9005bc72dc1fe37a9685b0c1575dc3cf610</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;When I run "phpcallgraph -g" on a script with a call to a mysql function it reports "Call to undefined function".&lt;/p&gt;
&lt;p&gt;I'm running this on Ubuntu server Linux 8.04, and php &lt;/p&gt;
&lt;p&gt;"PHP 5.2.4-2ubuntu5.4 with Suhosin-Patch 0.9.6.2 (cli) (built: Nov 25 2008 22:10:31)&lt;br /&gt;
Copyright (c) 1997-2007 The PHP Group&lt;br /&gt;
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies"&lt;/p&gt;
&lt;p&gt;appears to work perfectly in all the scenarios on this box.&lt;/p&gt;
&lt;p&gt;Is this a limitation? Is my configuration causing the problem?&lt;/p&gt;
&lt;p&gt;"php -re mysql" reports the functions as "&amp;lt;internal:mysql&amp;gt;"&lt;/p&gt;
&lt;p&gt;"php -l" reports "No syntax errors detected"&lt;/p&gt;
&lt;p&gt;Look forward to getting to the bottom of this.&lt;/p&gt;
&lt;p&gt;Mark.&lt;/p&gt;
&lt;p&gt;P.S. AWESOME project! (it works on my self-contained scripts)&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>