[mapserver-users] MapScript with PHP --enable-debug?

Caffeinate The World mochaexpress@yahoo.com
Mon, 25 Nov 2002 14:04:54 -0800 (PST)


--0-1031040588-1038261894=:46638
Content-Type: text/plain; charset=us-ascii


I encountered this same problem when I tried to put PHP into debug mode.
 Dylan Keon <keon@nacse.org> wrote:I recompiled PHP 4.2.3 with --enable-debug, then compiled MS 3.7 against 
it, but can't run the MapScript module:

Warning: MapScript: Unable to initialize module Module compiled
with module API=20020429, debug=0, thread-safety=0 PHP compiled
with module API=20020429, debug=1, thread-safety=0 These options
need to match in /www/gis/phpinfo_mapscript.php on line 12

The MapScript module should indicate debug=1 since it was compiled 
against PHP where debug was enabled, right? Compiling MapServer itself 
with or without --enable-debug makes no difference. I need 
--enable-debug compiled into PHP so that I can use gdb to generate a 
backtrace, unless someone knows another way to do this. I'm following 
the instructions at http://bugs.php.net/bugs-generating-backtrace.php.

Thanks.



---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
--0-1031040588-1038261894=:46638
Content-Type: text/html; charset=us-ascii

<P>I encountered this same problem when I tried to put PHP into debug mode.
<P>&nbsp;<B><I>Dylan Keon &lt;keon@nacse.org&gt;</I></B> wrote:
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">I recompiled PHP 4.2.3 with --enable-debug, then compiled MS 3.7 against <BR>it, but can't run the MapScript module:<BR><BR>Warning: MapScript: Unable to initialize module Module compiled<BR>with module API=20020429, debug=0, thread-safety=0 PHP compiled<BR>with module API=20020429, debug=1, thread-safety=0 These options<BR>need to match in /www/gis/phpinfo_mapscript.php on line 12<BR><BR>The MapScript module should indicate debug=1 since it was compiled <BR>against PHP where debug was enabled, right? Compiling MapServer itself <BR>with or without --enable-debug makes no difference. I need <BR>--enable-debug compiled into PHP so that I can use gdb to generate a <BR>backtrace, unless someone knows another way to do this. I'm following <BR>the instructions at http://bugs.php.net/bugs-generating-backtrace.php.<BR><BR>Thanks.<BR></BLOCKQUOTE><p><br><hr size=1>Do you Yahoo!?<br>
<a href="http://rd.yahoo.com/mail/mailsig/*http://mailplus.yahoo.com">Yahoo! Mail Plus</a> - Powerful. Affordable. <a href="http://rd.yahoo.com/mail/mailsig/*http://mailplus.yahoo.com">Sign up now</a>
--0-1031040588-1038261894=:46638--