#1565: Searchable - class_exists autoload not set to false.
-------------------------------------------------------+--------------------
Reporter: cimac | Owner: jwage
Type: defect | Status: new
Priority: minor | Milestone: Unknown
Component: Searchable | Version: 1.0.3
Keywords: class_exists "File not found" php warning | Has_test: 0
Mystatus: Pending Core Response | Has_patch: 0
-------------------------------------------------------+--------------------
We are using phing to build ZF1.6/Doctrine1 for MySQL.
In setting up Searchable ActAs, Zend autoloader throws an exception for
file not found.
Further investigations show that at line 262 Doctrine_Search is using
class_exists() for the searchable index class but that function call does
not supply 'false' to switch off the autoload feature. Zend grabs the
autoload trigger and fails with file not found.
Adding second argument to class_exists patches the issue.
if (class_exists($className, false)) {
return false;
}
--
Ticket URL: <http://trac.doctrine-project.org/ticket/1565>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"doctrine-svn" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---