Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22502 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94023 invoked by uid 1010); 17 Mar 2006 11:34:12 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 94008 invoked from network); 17 Mar 2006 11:34:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Mar 2006 11:34:12 -0000 X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from ([80.74.107.235:29459] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 31/DD-55982-3BE9A144 for ; Fri, 17 Mar 2006 06:34:12 -0500 Received: (qmail 18967 invoked from network); 17 Mar 2006 11:34:06 -0000 Received: from internal.zend.office (HELO thinkpad) (10.1.1.1) by internal.zend.office with SMTP; 17 Mar 2006 11:34:06 -0000 To: "Wez Furlong" Cc: Date: Fri, 17 Mar 2006 14:32:50 +0300 Message-ID: <000001c649b6$8668abc0$6e02a8c0@thinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 Subject: Problem with ext/libxml RINIT/RSHUTDOWN From: dmitry@zend.com ("Dmitry Stogov") Hi Wez, I found a bad code in ext/libxml. On each request startup/shutdown it changing some libxml callbacks. At first this slowdown each request, at second multi-threaded PHP may = fail, because different threads may set/clean the same callbacks in the same = time. May be it is possible to setup these callbacks forever in = MINIT/MSHUTDOWN, set some flag (somthing like LIBXML(in_request)) in RINIT/RSHUTDOWN, and check it in callbacks. Thanks. Dmitry.