ericmckean / minify

Automatically exported from code.google.com/p/minify
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

set_include_path() returns false with certain PHP configurations #118

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In some servers (especially in production server configs) where the include
path(s) are set using php_admin_value, the set_include_path() function
returns false, thus resulting in Minify.js not being included.  This throws
an error and the script stops executing immediately.

Some additional information on this can be found here:
http://www.pabloviquez.com/2009/06/php-set_include_path-function-returns-false/

A simple solution to this would be to stop using set_include_path() and
get_include_path(), and simply use the $min_libPath variable from the
config file.  This would make Minify more versatile, as it would be
compatible with more PHP configurations.

Original issue reported on code.google.com by clavi...@gmail.com on 22 Jun 2009 at 12:43

GoogleCodeExporter commented 9 years ago
I'm planning a move to autoloading (see Issue 59). In the meantime, adjusting 
the 
include_path will have to be done manually in these restrictive configs, sorry 
to 
say. I suspect autoload will work in these environments, but I don't know for 
sure.

Original comment by mrclay....@gmail.com on 22 Jun 2009 at 2:56

GoogleCodeExporter commented 9 years ago
That's an even better solution.  In the meantime, for those who get stuck with 
the
set_include_path() problem, adjust your Apache config by replacing 
php_admin_value
with php_value and restart the server.

Original comment by clavi...@gmail.com on 22 Jun 2009 at 4:44