Modify

Ticket #1 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

IntrospectionHelper shouldn't cause __autoload() to be called

Reported by: knut Owned by: 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

comment:1 Changed 5 years ago by knut

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

Commited fix to branches/2.2.

View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


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

 
Note: See TracTickets for help on using tickets.