Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15380714
D9821.id23579.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D9821.id23579.diff
View Options
diff --git a/.gitignore b/.gitignore
--- a/.gitignore
+++ b/.gitignore
@@ -34,4 +34,5 @@
/resources/ssl/custom.pem
# User extensions
+/externals/includes/*
/src/extensions/*
diff --git a/externals/includes/README b/externals/includes/README
new file mode 100644
--- /dev/null
+++ b/externals/includes/README
@@ -0,0 +1,3 @@
+This directory is added to the PHP include path. You can symlink things here
+if you have control over directory setup but not over PHP configuration (for
+instance, in Homebrew).
\ No newline at end of file
diff --git a/scripts/__init_script__.php b/scripts/__init_script__.php
--- a/scripts/__init_script__.php
+++ b/scripts/__init_script__.php
@@ -24,7 +24,7 @@
// script context we always want to show errors.
'display_errors' => true,
- // Send script error messages to the server's error_log setting.
+ // Send script error messages to the server's `error_log` setting.
'log_errors' => true,
// Set the error log to the default, so errors go to stderr. Without this
@@ -63,6 +63,12 @@
date_default_timezone_set('UTC');
}
+ // Adjust `include_path`.
+ ini_set('include_path', implode(PATH_SEPARATOR, array(
+ dirname(dirname(__FILE__)).'/externals/includes',
+ ini_get('include_path'),
+ )));
+
// Disable the insanely dangerous XML entity loader by default.
if (function_exists('libxml_disable_entity_loader')) {
libxml_disable_entity_loader(true);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 15, 4:12 AM (1 w, 6 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7238119
Default Alt Text
D9821.id23579.diff (1 KB)
Attached To
Mode
D9821: Add an `externals/includes` directory
Attached
Detach File
Event Timeline
Log In to Comment