Bug Report #1243
improved swift classloader
| Status: | Closed | Start date: | ||
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | Core | |||
| Target version: | 2.3.3 | |||
| Resolution: | wontfix | Points: |
Description
Hi,
Whenever I have done email::connect() and Swift is loaded, subsequent autoloading fails because swift's loading happens before my autload.
Here is a proposed patch for Kohana_v2.3.2/system/vendor/swift/Swift/ClassLoader.php:
@@ -31,8 +31,9 @@
{
if (in_array($name, self::$located) || class_exists($name, false) || interface_exists($name, false))
return;
-
- require_once SWIFT_ABS_PATH . "/" . str_replace("_", "/", $name) . ".php";
+ $level = error_reporting(0);
+ include_once SWIFT_ABS_PATH . "/" . str_replace("_", "/", $name) . ".php";
self::$located[] = $name;
+ error_reporting($level);
}
}
History
Updated by Jeremy Bush over 2 years ago
- Status changed from New to Closed
- Resolution set to wontfix
We aren't going to modify a vendor library. You can do this on your own.