midgardproject / midgard-php5

PHP5 API for Midgard persistent storage framework
http://www.midgard-project.org/api-docs/midgard/php/ratatoskr/
GNU Lesser General Public License v2.1
9 stars 2 forks source link

Log a warning if user tries to change ShareDir in runtime #65

Open bergie opened 13 years ago

bergie commented 13 years ago

Until #8 and #9 are fixed, the Midgard2 extension only loads MgdSchemas from ShareDir at start-up time. This means that either:

Now, if user later tries to open a Midgard connection with open(filename) or open_config(object) that has a different ShareDir set than what Midgard is already using (see the list above), we should log a warning about this. Otherwise users easily think their setting is working an may get into trouble.

bergie commented 13 years ago

The warning could be something like _Tried to change Midgard ShareDir from /original/path to /new/path in runtime. This has no effect. Use the MIDGARD_ENV_GLOBAL_SHAREDIR environment variable for this_.