Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8572639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T19:04:00+00:00 2026-06-11T19:04:00+00:00

As per title, running phpunit -v on a fresh PHPUnit PEAR installation gives me

  • 0

As per title, running phpunit -v on a fresh PHPUnit PEAR installation gives me a require_once failed error. Here is some additional information, i hope that anyone can help me with this.

Warning: require_once(File/Iterator/Autoload.php): failed to open stream: No such file or directory in C:\WAMP\PEAR\pear\PHPUnit\Autoload.php on line 45

Call Stack:
    0.0005     326744   1. {main}() C:\WAMP\PEAR\phpunit:0
    0.0011     369184   2. require('C:\WAMP\PEAR\pear\PHPUnit\Autoload.php') C:\WAMP\PEAR\phpunit:43


Fatal error: require_once(): Failed opening required 'File/Iterator/Autoload.php' (include_path='.;C:\WAMP\PEAR;C:\WAMP\PEAR\pear\PHPUnit') in C:\WAMP\PEAR\pear\PHPUnit\Autoload.php on line 45

Call Stack:
    0.0005     326744   1. {main}() C:\WAMP\PEAR\phpunit:0
    0.0011     369184   2. require('C:\WAMP\PEAR\pear\PHPUnit\Autoload.php') C:\WAMP\PEAR\phpunit:43



    php -v

PHP 5.3.14 (cli) (built: Jun 13 2012 18:51:28) 
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
    with Xdebug v2.2.0, Copyright (c) 2002-2012, by Derick Rethans

`pear version`:

PEAR Version: 1.9.4
PHP Version: 5.3.14
Zend Engine Version: 2.3.0
Running on: Windows NT MARCO-PC 6.1 build 7601 (Windows 7 Home Premium Edition Service Pack 1) i586

    pear config-get php_dir

C:\WAMP\PEAR\pear

    echo %path% (only relevant paths)
C:\WAMP\PHP;C:\WAMP\PEAR;

    echo %PHP_PEAR_BIN_DIR%
C:\WAMP\PEAR

    echo %PHP_PEAR_DATA_DIR%
C:\WAMP\PEAR\data

    echo %PHP_PEAR_DOC_DIR%
C:\WAMP\PEAR\docs

    echo %PHP_PEAR_INSTALL_DIR%

C:\WAMP\PEAR\pear

    echo %PHP_PEAR_PHP_BIN%

C:\WAMP\PHP\php.exe

    echo %PHP_PEAR_SYSCONF_DIR%

C:\WAMP\PEAR

    echo %PHP_PEAR_TEST_DIR%

C:\WAMP\PEAR\tests

    pear list -c pear.phpunit.de

    INSTALLED PACKAGES, CHANNEL PEAR.PHPUNIT.DE:
    ============================================
    PACKAGE            VERSION STATE
    File_Iterator      1.3.1   stable
    PHPUnit            3.6.12  stable
    PHPUnit_MockObject 1.1.1   stable
    PHP_CodeCoverage   1.1.3   stable
    PHP_Invoker        1.1.0   stable
    PHP_Timer          1.0.2   stable
    PHP_TokenStream    1.1.3   stable
    Text_Template      1.1.1   stable
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T19:04:01+00:00Added an answer on June 11, 2026 at 7:04 pm

    Check Dependencies

    If you recently upgraded to PHPUnit 3.6, there’s a possibility you still have an older version of File_Iterator installed and that’s the problem (Based on a vague memory of the same error).

    You can check the versions of installed packages with:

    pear list -c pear.phpunit.de
    

    If anything looks not-right, or just to be sure upgrade PHPUnit to ensure it’s at the latest version and so are all dependencies:

    $ pear update-channels
    $ pear upgrade phpunit/PHPUnit
    Did not download optional dependencies: phpunit/PHP_Invoker, use --alldeps to download automatically
    phpunit/PHPUnit can optionally use package "phpunit/PHP_Invoker" (version >= 1.1.0)
    phpunit/PHPUnit_MockObject can optionally use PHP extension "soap"
    downloading PHPUnit-3.6.12.tgz ...
    Starting to download PHPUnit-3.6.12.tgz (119,220 bytes)
    ..........................done: 119,220 bytes
    downloading File_Iterator-1.3.1.tgz ...
    Starting to download File_Iterator-1.3.1.tgz (5,157 bytes)
    ...done: 5,157 bytes
    downloading PHP_CodeCoverage-1.1.3.tgz ...
    Starting to download PHP_CodeCoverage-1.1.3.tgz (132,726 bytes)
    ...done: 132,726 bytes
    downloading PHPUnit_MockObject-1.1.1.tgz ...
    Starting to download PHPUnit_MockObject-1.1.1.tgz (19,897 bytes)
    ...done: 19,897 bytes
    downloading PHP_TokenStream-1.1.3.tgz ...
    Starting to download PHP_TokenStream-1.1.3.tgz (9,860 bytes)
    ...done: 9,860 bytes
    upgrade ok: channel://pear.phpunit.de/File_Iterator-1.3.1
    upgrade ok: channel://pear.phpunit.de/PHPUnit_MockObject-1.1.1
    upgrade ok: channel://pear.phpunit.de/PHP_TokenStream-1.1.3
    upgrade ok: channel://pear.phpunit.de/PHP_CodeCoverage-1.1.3
    upgrade ok: channel://pear.phpunit.de/PHPUnit-3.6.12
    $ phpunit -v
    PHPUnit 3.6.12 by Sebastian Bergmann.
    

    Check include path

    if you have the appropriate version of File_Iterator (and other dependencies) installed and File/Iterator/Autoload.php is missing – it’s not installed anywhere that php is looking for it. Use pear list-files phpunit/File_Iterator to see exactly where pear thinks the file is – and verify that the file exists.

    If it does then the pear root is not in your path, add it and you’re good to go.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

As per title. I want to be able to save some data in a
as per title, here are my data eg. <style1> Name 1 <style2>Name 2 <style1>
As per title. I have a piece of jQuery that looks like the following
As per title, can an ActorContext extracted from within an actor be safely used
As per title, what practise for string comparisons do you use and why?
As per the title, is there PHP equivalent of __name__ == __main__ ? Is
As per the title, plus what are the limitations and gotchas. For example, on
As per the title I have three parts to this question... Is db4o object
As per the title, is this possible? By tri-state, I mean the parent node
As per the title, is there any way to programatically change the selected item

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.