Ticket #1 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

IntrospectionHelper shouldn't cause __autoload() to be called

Reported by: knut Assigned to: knut
Priority: critical Milestone: 2.2.0
Component: Version: 2.1.1
Keywords: Cc:

Description

The IntrospectionHelper is checking return values in phpdoc comments for possible class names and does a check with class_exists(). This will cause __autoload() to be called if defined. Since this code has no reason to call __autoload() it shouldn't since it would most likely break. Typically @return void etc.

The fix is to set the second parameter to class_exists to false to ensure that __autoload() is never called.

This issue was discovered running code coverage of PRADO trunk.

Attachments

Change History

02/21/06 06:29:47 changed by knut

  • status changed from new to closed.
  • resolution set to fixed.

Commited fix to branches/2.2.


Add/Change #1 (IntrospectionHelper shouldn't cause __autoload() to be called)




Action