Bug#331729: [php-maint] Bug#331729: php4-curl: Requires an Apache restart on postinst

2005-10-04 Thread Adam Conrad
Kai Hendry wrote:
> 
> I apt-get install php4-curl and expected it to work straight away.

It would work straight away if you dlopen() the module.  However, if you
expect PHP to do it for you on startup from php.ini, you kinda have
to... Restart it.  Not required for CGI/CLI (as they "startup" on each
invocation), but is required for apache1.3/apache2.

I've had several requests for "restart my webserver after I install
modules", and to be honest, I'm not sure what to do about them.  While
it may be helpful in the cases where people don't know what's wrong, it
seems quite a disruptive thing to do for the majority of cases.

... Adam


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#331729: [php-maint] Bug#331729: php4-curl: Requires an Apache restart on postinst

2005-10-05 Thread Kai Hendry
On 2005-10-05T14:25+1000 Adam Conrad wrote:
> it may be helpful in the cases where people don't know what's wrong, it
> seems quite a disruptive thing to do for the majority of cases.

Well I wish it just automagically worked. 

I have no idea about what dlopen() means.

If we compare this to the Windows world where then entire machine
requires a reboot about 20 million times, then I have no qualms about
restarting Apache after this module is installed. In my experience I find
Apache restarts quite a smooth process.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#331729: [php-maint] Bug#331729: php4-curl: Requires an Apache restart on postinst

2005-10-05 Thread Adam Conrad
Kai Hendry wrote:
> 
> Well I wish it just automagically worked. 

You're not alone.  I'm pretty sure this bug has been reported before. :)

> I have no idea about what dlopen() means.

Sorry, that's the C function, I meant dl() -- http://www.php.net/dl

> If we compare this to the Windows world where then entire machine
> requires a reboot about 20 million times, then I have no qualms about
> restarting Apache after this module is installed. In my experience I find
> Apache restarts quite a smooth process.

Except when it's not (ie: when a user has broken their config).  But,
I'll consider special-casing a "if the user has the extension enabled in
php.ini for a webserver, restart that server" thing in postinst.

... Adam


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]