Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14006067
D14523.id35244.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
777 B
Referenced Files
None
Subscribers
None
D14523.id35244.diff
View Options
diff --git a/src/__phutil_library_init__.php b/src/__phutil_library_init__.php
--- a/src/__phutil_library_init__.php
+++ b/src/__phutil_library_init__.php
@@ -32,6 +32,21 @@
'phutil'));
}
} catch (PhutilMissingSymbolException $ex) {
+ $should_throw = true;
+
+ foreach (debug_backtrace() as $backtrace) {
+ switch ($backtrace['function']) {
+ case 'class_exists':
+ case 'interface_exists':
+ $should_throw = false;
+ break;
+ }
+ }
+
+ if (!$should_throw) {
+ return false;
+ }
+
// If there are other SPL autoloaders installed, we need to give them a
// chance to load the class. Throw the exception if we're the last
// autoloader; if not, swallow it and let them take a shot.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Oct 29, 12:32 AM (1 w, 4 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6753319
Default Alt Text
D14523.id35244.diff (777 B)
Attached To
Mode
D14523: Don't throw `PhutilMissingSymbolException` from `class_exists` or `interface_exists`
Attached
Detach File
Event Timeline
Log In to Comment