Re: [solved]about dl() in php6
| From: | hack988 hack988 | Date: | Sun, 17 Jan 2010 13:17:35 +0000 |
| Subject: | Re: [solved]about dl() in php6 | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-46769@lists.php.net to get a copy of this message | ||
Thanks Alexey Zakhlestin ,I'm kown very well all answer in your replies.
2010/1/17 Alexey Zakhlestin <indeyets@gmail.com>:
>
> On 17.01.2010, at 15:10, hack988 hack988 wrote:
>
>> thanks,but document say's dl() is not supported in multithreaded Web servers
>> form php5.3.0 php not relase isapi in binary pack.It's means that php
>> never support isapi module? If answer is yes,i have another question.
>
> yes. you can't use dl() in server-modules.
> the reasoning for this is quite simple. server-processes are persistent and if you load
> something via dl() it stays in server-process even after request is finished.
> which can lead to security problems, as other users of the server will have this user-loaded
> extension too.
>
> to load extensions in such environments you need to use php.ini
>
>> Can I use dl() in Web servers with CGI module ?
>
> yes, you can. these are restarted after each request, so it is safe
>
>> I'm sorry for my bad english and puerilely question about dl().
>> I'm coded with php for several years,but never use dl before:(.
>
> no problem.
> remember to use "reply to all" when writing to mailing-lists in future, or lists
> won't get your replies.
>
>
>> 2010/1/17 Alexey Zakhlestin <indeyets@gmail.com>:
>>>
>>> On 17.01.2010, at 14:46, hack988 hack988 wrote:
>>>
>>>> In Online document about dl function
>>>> http://www.php.net/manual/en/function.dl.php
>>>> This function has been DEPRECATED as of PHP 5.3.0 and REMOVED as of
>>>> PHP 6.0.0. Relying on this feature is highly discouraged.
>>>>
>>>>
>>>> It's mean we can't Loads a PHP extension at runtime sine version 5.3.0
>>>> and higher version or it has another way to load extension at runtime?
>>>
>>> it is disabled in mod_php and similar SAPIs. It is still available in CLI and CGI
>>> see
>>> http://www.php.net/manual/en/function.dl.php#function.dl.notes
>
>