Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46769 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22886 invoked from network); 17 Jan 2010 13:17:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Jan 2010 13:17:45 -0000 Authentication-Results: pb1.pair.com smtp.mail=hack988@dev.htwap.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=hack988@dev.htwap.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain dev.htwap.com from 209.85.223.186 cause and error) X-PHP-List-Original-Sender: hack988@dev.htwap.com X-Host-Fingerprint: 209.85.223.186 mail-iw0-f186.google.com Received: from [209.85.223.186] ([209.85.223.186:33974] helo=mail-iw0-f186.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 21/1E-27028-6FD035B4 for ; Sun, 17 Jan 2010 08:17:44 -0500 Received: by iwn16 with SMTP id 16so310443iwn.26 for ; Sun, 17 Jan 2010 05:17:40 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.59.5 with SMTP id j5mr1144001ibh.6.1263734255752; Sun, 17 Jan 2010 05:17:35 -0800 (PST) X-Originating-IP: [119.98.79.182] In-Reply-To: References: <4d03254c1001170346v46a4d421md2ed8ab283ebea32@mail.gmail.com> <4d03254c1001170410o686cf770l8882ffa7d054abcf@mail.gmail.com> Date: Sun, 17 Jan 2010 21:17:35 +0800 Message-ID: <4d03254c1001170517l4ab7202arb532a8d83ece0db4@mail.gmail.com> To: Alexey Zakhlestin Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] [solved]about dl() in php6 From: hack988@dev.htwap.com (hack988 hack988) Thanks Alexey Zakhlestin ,I'm kown very well all answer in your replies. 2010/1/17 Alexey Zakhlestin : > > 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 : >>> >>> 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 > >