Modify

Ticket #451 (reopened defect)

Opened 2 years ago

Last modified 7 months ago

[exec] Fatal error: Internal error: Failed to retrieve the reflection object

Reported by: mkoppanen@… Owned by: mrook
Priority: major Milestone: 2.4.1
Component: phing-core Version: 2.4.0
Keywords: Cc:

Description

Hello,

I get the following error with the attached test project using PHP 5.3.2RC2. This error does not seem to happen with PHP 5.2.x

[coverage-setup] Setting up coverage database for 1 files
PHP Fatal error:  Internal error: Failed to retrieve the reflection object in /usr/share/pear/phing/IntrospectionHelper.php on line 321
PHP Stack trace:
PHP   1. {main}() /usr/share/pear/phing.php:0
PHP   2. Phing::fire() /usr/share/pear/phing.php:37
PHP   3. Phing::start() /usr/share/pear/phing/Phing.php:270
PHP   4. Phing->runBuild() /usr/share/pear/phing/Phing.php:170
PHP   5. Project->executeTargets() /usr/share/pear/phing/Phing.php:543
PHP   6. Project->executeTarget() /usr/share/pear/phing/Project.php:689
PHP   7. Target->performTasks() /usr/share/pear/phing/Project.php:716
PHP   8. Target->main() /usr/share/pear/phing/Target.php:263
PHP   9. Task->perform() /usr/share/pear/phing/Target.php:240
PHP  10. Task->maybeConfigure() /usr/share/pear/phing/Task.php:252
PHP  11. RuntimeConfigurable->maybeConfigure() /usr/share/pear/phing/Task.php:241
PHP  12. ProjectConfigurator::configure() /usr/share/pear/phing/RuntimeConfigurable.php:92
PHP  13. IntrospectionHelper->setAttribute() /usr/share/pear/phing/parser/ProjectConfigurator.php:248
PHP  14. ReflectionFunctionAbstract->getParameters() /usr/share/pear/phing/IntrospectionHelper.php:321

Fatal error: Internal error: Failed to retrieve the reflection object in /usr/share/pear/phing/IntrospectionHelper.php on line 321

Call Stack:
    0.0005     325976   1. {main}() /usr/share/pear/phing.php:0
    0.0480    4143044   2. Phing::fire() /usr/share/pear/phing.php:37
    0.0480    4143072   3. Phing::start() /usr/share/pear/phing/Phing.php:270
    0.0499    4213276   4. Phing->runBuild() /usr/share/pear/phing/Phing.php:170
    0.3726   12467976   5. Project->executeTargets() /usr/share/pear/phing/Phing.php:543
    0.3726   12468136   6. Project->executeTarget() /usr/share/pear/phing/Project.php:689
    0.3759   12472488   7. Target->performTasks() /usr/share/pear/phing/Project.php:716
    0.3759   12472488   8. Target->main() /usr/share/pear/phing/Target.php:263
    0.7567   12842596   9. Task->perform() /usr/share/pear/phing/Target.php:240
    0.7567   12842596  10. Task->maybeConfigure() /usr/share/pear/phing/Task.php:252
    0.7568   12842596  11. RuntimeConfigurable->maybeConfigure() /usr/share/pear/phing/Task.php:241
    0.7568   12842624  12. ProjectConfigurator::configure() /usr/share/pear/phing/RuntimeConfigurable.php:92
    0.7569   12834556  13. IntrospectionHelper->setAttribute() /usr/share/pear/phing/parser/ProjectConfigurator.php:248
    0.7570   12834632  14. ReflectionFunctionAbstract->getParameters() /usr/share/pear/phing/IntrospectionHelper.php:321

Attachments

refl.tgz Download (899 bytes) - added by mkoppanen@… 2 years ago.
Causes the error when ran with 'phing coverage'

Change History

Changed 2 years ago by mkoppanen@…

Causes the error when ran with 'phing coverage'

comment:1 Changed 2 years ago by mrook

Does this still happen with PHP 5.3.2RC3? I can't reproduce it with 5.3.1.

comment:2 Changed 2 years ago by mrook

  • Status changed from new to closed
  • Resolution set to worksforme

comment:3 Changed 7 months ago by richard.bradley@…

  • Status changed from closed to reopened
  • Resolution worksforme deleted

This same thing happens for me when running "coverage" on my phing/PHP project using PHP 5.3.2 (cli) (built: Jun 15 2011 18:56:43)

I don't get this error if I just run "test", only with "coverage".

comment:4 Changed 7 months ago by richard.bradley@…

The "caution" box on the "reflection.extending.php" page in the PHP manual looks relevant (sorry, I can't link to it from here -- it gets marked as spam)

View

Add a comment

Modify Ticket

Action
as reopened
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.