Re: Extension Installer Catch 22
| From: | Stefan Esser | Date: | Sat, 10 Jun 2006 17:18:56 +0000 |
| Subject: | Re: Extension Installer Catch 22 | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-24081@lists.php.net to get a copy of this message | ||
Hello Michael,
> I'm writing an extension installer. I want to write the installer in
> PHP. This presents a problem if the extension was previously installed and
> is automatically being loaded because it can segfault after overwriting
> the .so module file.
>
IIRC, the correct way to replace .so files is to unlink() them first and
then write the new file into place.
Greetings,
Stefan