-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Class \TheSeer\Tools\DirectoryScanner does not exist #24
Comments
Thank you for taking time to report this issue. You're doing nothing wrong. It's a PHP BUG fixed in 5.3.3 in regards to handling multiple autoloader registered via SPL and namespaces. Please upgrade your PHP installation to PHP 5.3.3 and your problem should vanish. |
I just found and tried phpdox but with similar result: phpdox 0.2.0 - Copyright (C) 2010 - 2011 by Arne Blankerts
[02.11.2011 - 12:41:53] Loading additional bootstrap file '/usr/share/php/TheSeer/phpDox/bootstrap/graph.php'
[02.11.2011 - 12:41:53] Loading additional bootstrap file '/usr/share/php/TheSeer/phpDox/bootstrap/html.php'
[02.11.2011 - 12:41:53] Loading additional bootstrap file '/usr/share/php/TheSeer/phpDox/bootstrap/todo.php'
Oups... phpDox encountered a problem and has terminated!
It most likely means you've found a bug, so please file a report for this and paste the stacktrace (if given) along!
Exception: ReflectionException
Location: /usr/share/php/TheSeer/phpDox/Factory.php (Line 91)
Class \TheSeer\Tools\DirectoryScanner does not exist
#0 /usr/share/php/TheSeer/phpDox/Factory.php(79): TheSeer\phpDox\Factory->getGenericInstance()
#1 /usr/share/php/TheSeer/phpDox/Factory.php(136): TheSeer\phpDox\Factory->getInstanceFor()
#2 getScanner(0): Array->()
#3 /usr/share/php/TheSeer/phpDox/Factory.php(85): Arraycall_user_func_array()
#4 /usr/share/php/TheSeer/phpDox/CLI.php(153): TheSeer\phpDox\Factory->getInstanceFor()
#5 /usr/share/php/TheSeer/phpDox/CLI.php(111): TheSeer\phpDox\CLI->getScanner()
#6 /usr/bin/phpdox(58): TheSeer\phpDox\CLI->run()
-
php -v
PHP 5.3.3-1ubuntu9.6 with Suhosin-Patch (cli) (built: Oct 14 2011 22:31:25)
neither on
PHP 5.3.8 (cli) (built: Sep 30 2011 20:23:54) |
This is due to a version mismatch of DirectoryScanner 1.1.0 and phpDox 0.2.0. I presume you installed phpDox via pear which probably did install DirectoryScanner 1.1.0 as a dependency instead of the needed version 1.0.x. An easy fix until phpDox 0.3.0 is released - which should be in a few days - would be to manually downgrade DirectoryScanner to 1.0.x or replacing TheSeer\Tools\DirectoryScanner with TheSeer\DirectoryScanner\DirectoryScanner within the phpDox's code. Sorry for the inconvenience, this will get straightend out as soon as possible. I might even release phpDox 0.2.1 to fix this issue. |
Make hhvm 3.2.0 happy
root@cadmium:/var/www/phpdox/phpdox# pear install theseer/DirectoryScanner
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/imap.ini on line 1 in Unknown on line 0
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0
theseer/DirectoryScanner is already installed and is the same as the released version 1.0.2
install failed
chrisd@cadmium:/var/www/phpdox/phpdox$ ./phpdox.php -x /var/www/phpdox/joomladocs/ -c /var/www/phpdox/joomladocs/ -d /var/www/joomla16/Joomla\ 1.6.1/libraries/joomla/ -g html
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/imap.ini on line 1 in Unknown on line 0
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0
phpdox %version% - Copyright (C) 2010 - 2011 by Arne Blankerts
[15.06.2011 - 20:42:36] Loading additional bootstrap file '/var/www/phpdox/phpdox/src/bootstrap/html.php'
Unexpected error while processing request:
Stack trace:
#0 /var/www/phpdox/phpdox/src/factory.php(89): ReflectionClass->__construct('\TheSeer\Tools...')
Use submodules for Git-hosted dependencies #1 /var/www/phpdox/phpdox/src/factory.php(77): TheSeer\phpDox\Factory->getGenericInstance('\TheSeer\Tools...', Array)
global constant vs. class constant #2 /var/www/phpdox/phpdox/src/factory.php(134): TheSeer\phpDox\Factory->getInstanceFor('DirectoryScanne...')
1st draft of xslt to expose a class and its methods, and members #3 [internal function]: TheSeer\phpDox\Factory->getScanner('.php', false)
added css style infromation and a 1st draft of a xslt for class detail page #4 /var/www/phpdox/phpdox/src/factory.php(83): call_user_func_array(Array, Array)
gist suppor for @example tag #5 /var/www/phpdox/phpdox/src/cli.php(158): TheSeer\phpDox\Factory->getInstanceFor('Scanner', '.php', false)
@todo as list #6 /var/www/phpdox/phpdox/src/cli.php(106): TheSeer\phpDox\CLI->getScanner('/var/www/phpdox...', Object(ezcConsoleInput))
touch() missing permission cause warning #7 /var/www/phpdox/phpdox/phpdox.php(58): TheSeer\phpDox\CLI->run()
ReadMe + Help activated #8 {main}
Please file a bugreport for this!
chrisd@cadmium:/var/www/phpdox$ php --version
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/imap.ini on line 1 in Unknown on line 0
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0
PHP 5.3.2-1ubuntu4.9 with Suhosin-Patch (cli) (built: May 3 2011 00:43:34)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with Xdebug v2.0.5, Copyright (c) 2002-2008, by Derick Rethans
Any ideas on what I might be doing wrong?
Chris.
The text was updated successfully, but these errors were encountered: