ID:               30100
 Updated by:       [EMAIL PROTECTED]
 Reported By:      php-answer at karolyi dot hu
 Status:           Bogus
 Bug Type:         Dynamic loading
 Operating System: Linux
 PHP Version:      5.0.1
 New Comment:

it's not a senseless feature to want, it's just that per-vhost loading
of shared libraries is a senseless implementation.  When you load a
shared library it cannot in any way be restricted to a single vhost. 
You could load and unload on every request, but that would destroy any
sort of advantage you get from using the module version of PHP and you
might as well use the CGI version and simply have different ini files
on a per-vhost basis to get that functionality.


Previous Comments:
------------------------------------------------------------------------

[2004-09-16 10:13:04] php-answer at karolyi dot hu

I want to restrict access to functions, without putting it in
disable_functions.

In other view, this would cause lesser memory usage. Loading modules
which the user won't use has no meaning.

Is it still a senseless question?

--
Regards,
Laszlo KAROLYI

------------------------------------------------------------------------

[2004-09-16 05:48:18] [EMAIL PROTECTED]

Why do you think it would be more efficient?  When you load in an
extension it gets loaded into the Apache process which serves requests
for all your virtual hosts anyway.  There would be no difference
between doing it per-vhost at startup vs. just doing it from your
php.ini.

------------------------------------------------------------------------

[2004-09-16 02:16:22] php-answer at karolyi dot hu

Description:
------------
I wonder if there is an option to load external php modules like gd,
mysql and imap into php below a <VirtualHost> section with
php_admin_value directives.

I think it could be possible, like dl()-ing from php scripts.

But as i've tried with "php_admin_value extension gd.so", it doesn't
works at this moment.

Please report back if this is a solvable problem, because
virtualhosting would be much more efficient if this option would work.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=30100&edit=1

Reply via email to