Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:30149 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78429 invoked by uid 1010); 13 Jun 2007 08:04:05 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 78414 invoked from network); 13 Jun 2007 08:04:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Jun 2007 08:04:05 -0000 Authentication-Results: pb1.pair.com header.from=indeyets@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=indeyets@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.132.249 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: indeyets@gmail.com X-Host-Fingerprint: 209.85.132.249 an-out-0708.google.com Received: from [209.85.132.249] ([209.85.132.249:4937] helo=an-out-0708.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FC/58-04698-1F4AF664 for ; Wed, 13 Jun 2007 04:04:04 -0400 Received: by an-out-0708.google.com with SMTP id c18so25044anc for ; Wed, 13 Jun 2007 01:03:59 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=EJMLzX4n1vYx70Ay4uPf5F17fS/WkwwzBQSstUkw4WQ3R1AGEuAe1X2A2jRPyz7lwtD+WT5XYQrTmMTm5bkjvFD6/KId/BMZhi0QkX7lIi96bkdB6CdCkJzrebhKJYVYMK0q63ZbzD/d3OecDkxTCvtw7EorwNLet4jEUKNNXQQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=s/ANy59eCFfTC4MV4+zeedH714w34JVfSn6kQbjVPyTn5s2Y9g7tOeqqeI+xrHDe+qykfoAqMyQMh1NZ4Hew5Ltom7Yv2DzH2zKjsXx5ys+3nY90bSkse45riXVQ2TFcOjnfW1t0U1QB0YABFv60bpGLd/y/SKkP/nteKHVPsi8= Received: by 10.100.227.5 with SMTP id z5mr182695ang.1181721838301; Wed, 13 Jun 2007 01:03:58 -0700 (PDT) Received: by 10.100.110.15 with HTTP; Wed, 13 Jun 2007 01:03:58 -0700 (PDT) Message-ID: Date: Wed, 13 Jun 2007 12:03:58 +0400 To: "Markus Fischer" Cc: internals@lists.php.net In-Reply-To: <466F9623.3050102@fischer.name> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <466F9623.3050102@fischer.name> Subject: Re: [PHP-DEV] [PHP4] Logging native PHP function calls From: indeyets@gmail.com ("Alexey Zakhlestin") http://xdebug.org/ On 6/13/07, Markus Fischer wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi, > > I've this very very special problems and would ask for some hints, any > helpful response is very appreciated :) > > The usual story: old system, big, clunky, legacy, PHP4, can't upgrade. > > We're having serious problems with MySQL and too many connections and so > on, but we can't find out where the problematic cases are. We've gone > already through lengthy auditing and logging sessions without real success. > > So my next idea: I go into the PHP source, in my case specifically into > ext/mysql/php_mysql.c, reactive my old C skills and inject the logging > of connects and queries directly into the source. Because, as ironic as > it sounds, with the HUGE amount of code we have we still were not able > to identify all places where mysql_(p)connect/mysql_query is used, > because of using variable variables and other nice [tm] tricks. > > I understand my attempt is brute force and I'm pretty alone out there. > > So, actually I would start hacking away this very moment. But, if anyone > has other suggestion how to go for this, it would be very very much > appreciated. > > thanks for reading, > - - Markus > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.7 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFGb5Yj1nS0RcInK9ARAq75AJ95JT3BqFblyfd+FUG2EsKbN8TAdgCfQ0c/ > YNTYC8qTPHgzIQPxiJsGJW0= > =4wNf > -----END PGP SIGNATURE----- > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Alexey Zakhlestin http://blog.milkfarmsoft.com/