Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40235 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20509 invoked from network); 3 Sep 2008 08:56:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Sep 2008 08:56:13 -0000 Authentication-Results: pb1.pair.com smtp.mail=mikko.koppanen@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=mikko.koppanen@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.44.29 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: mikko.koppanen@gmail.com X-Host-Fingerprint: 74.125.44.29 yx-out-2324.google.com Received: from [74.125.44.29] ([74.125.44.29:64526] helo=yx-out-2324.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A7/6E-33714-B215EB84 for ; Wed, 03 Sep 2008 04:56:13 -0400 Received: by yx-out-2324.google.com with SMTP id 3so1356141yxj.83 for ; Wed, 03 Sep 2008 01:56:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=VcXyfJM2J3UkZ8C7g+NZ1e0YlcTKnFpRjNijetQLDxQ=; b=QVJ0o7W3NGkcKzM/dxJWLiO73Ws+uteqPAqT3gdd1Eq+dXSchBjYtrKJ1UOSD3TwRn 4DeZxQpXUQ56Q9qJ5FTltnQM3ZXkyIW4XAtREP3Z+ga2xUn9T5kQBbMGOVrtxsVnpH2u if6tN2GJyD5bN+clwsIaXCifx1oyB9vrhvuBs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=WUABZYqzXhVhgiBM0asFLRvFaWCISmDvmE/vdZ8wlOeydGEtgYbIl7WmzvTdEjS5T5 giuvhN61RaZx6U3/x1tlfc/P8AGdZx3nOlNv4mt0GuzYSlGxWr/05c827d0vfxP8DrHw 1sQVu0j9T6cFC+Gt28BAoott9t9aCzDHwq2y8= Received: by 10.151.156.1 with SMTP id i1mr12023747ybo.117.1220432169346; Wed, 03 Sep 2008 01:56:09 -0700 (PDT) Received: by 10.150.98.4 with HTTP; Wed, 3 Sep 2008 01:56:09 -0700 (PDT) Message-ID: <8cf711460809030156i380b75e4i12597d9f7842848d@mail.gmail.com> Date: Wed, 3 Sep 2008 09:56:09 +0100 Sender: mikko.koppanen@gmail.com To: "Hartmut Holzgraefe" Cc: "Mangol Smith" , "PHP Internals" In-Reply-To: <48BE225F.2000804@sun.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2e78f9300809022130j7ec84e90xf0ed778371c756d4@mail.gmail.com> <48BE225F.2000804@sun.com> X-Google-Sender-Auth: 3ad33d506e9b55f9 Subject: Re: [PHP-DEV] How to enable debug for my extension? From: mkoppanen@php.net ("Mikko Koppanen") On Wed, Sep 3, 2008 at 6:36 AM, Hartmut Holzgraefe wrote: > Mangol Smith wrote: >> >> I'm trying to debug my extension.It says that PHP is built with debug >> flag, >> but my not my extenison. I used --enable-debug for PHP build. But, in the >> extension I wrote I can't find any configure option associated with debug >> in >> ./configure --help. I tried using the options --enable-debug and >> --with-debug options, but no result. PHP is giving a startup error while >> loading my extension. > > the information whether to build a debug extension or not > is fetched from the PHP installation you're building > against, specifically from the ZEND_DEBUG definition in > Hello, You should also note that before this change http://cvs.php.net/viewvc.cgi/php-src/scripts/phpize.m4?r1=1.17.2.3.2.5.2.3&r2=1.17.2.3.2.5.2.4 the shared extension is built with optimizations even if PHP is configured with --enable-debug. -- Mikko Koppanen