Skip to content
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

Closed
chrisdavenport opened this issue Jun 15, 2011 · 3 comments
Closed

Class \TheSeer\Tools\DirectoryScanner does not exist #24

chrisdavenport opened this issue Jun 15, 2011 · 3 comments

Comments

@chrisdavenport
Copy link

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:

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.

@theseer
Copy link
Owner

theseer commented Jun 15, 2011

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.

http://bugs.php.net/50731

Please upgrade your PHP installation to PHP 5.3.3 and your problem should vanish.
The next pear release of phpdx will require this version to make sure people are using the fixed version of PHP.

@theseer theseer closed this as completed Jun 15, 2011
@zapik
Copy link

zapik commented Nov 2, 2011

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) 

@theseer
Copy link
Owner

theseer commented Nov 2, 2011

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.

dereckson pushed a commit to nasqueron/phpdox that referenced this issue Mar 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants