Re: How to enable debug for my extension?
| From: | Mikko Koppanen | Date: | Wed, 03 Sep 2008 08:56:09 +0000 |
| Subject: | Re: How to enable debug for my extension? | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-40235@lists.php.net to get a copy of this message | ||
On Wed, Sep 3, 2008 at 6:36 AM, Hartmut Holzgraefe
<hartmut.holzgraefe@sun.com> 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