Ticket #1 (closed defect: fixed)

Opened 4 years ago

Last modified 4 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

Changed 4 years ago 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)

Author


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


Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.