<div dir="ltr">the credit for this goes to daniel morissette - i had found a post by him suggesting this a while ago when i ran into the same problem.<br><br>i&#39;d leave it to the development guys to make the call on whether --enable-debug should automatically change the ZEND_DEBUG flag - it would be nice if it did.<br>
<br>ak<br><br><div class="gmail_quote">On Thu, Jul 24, 2008 at 10:53 AM, Robert W. Burgholzer &lt;<a href="mailto:rburghol@vt.edu">rburghol@vt.edu</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
ak,<br>
You rule! &nbsp;That did the trick!<br>
<br>
Is this worthy of a bug-report, or feature request, i.e., a configure switch to<br>
have the debug set on php_mapscript -- or should it automagically do it with<br>
the enable-debug switch on??<br>
<br>
Many thanks!<br>
<font color="#888888"><br>
r.b.<br>
</font><div><div></div><div class="Wj3C7c"><br>
<br>
Quoting alim karim &lt;<a href="mailto:alim.karim@gmail.com">alim.karim@gmail.com</a>&gt;:<br>
<br>
&gt; you can try changing the following to enable a debug build of the mapscript<br>
&gt; module.<br>
&gt;<br>
&gt; in mapscript/php3/php_mapscript.c :<br>
&gt;<br>
&gt; change<br>
&gt;<br>
&gt; #define ZEND_DEBUG 0<br>
&gt;<br>
&gt; to<br>
&gt;<br>
&gt; #define ZEND_DEBUG 1<br>
&gt;<br>
&gt; ak<br>
&gt;<br>
&gt; On Thu, Jul 24, 2008 at 8:57 AM, Robert W. Burgholzer &lt;<a href="mailto:rburghol@vt.edu">rburghol@vt.edu</a>&gt;<br>
&gt; wrote:<br>
&gt;<br>
&gt; &gt; I am getting the following error after recompiling php and mapserv:<br>
&gt; &gt;<br>
&gt; &gt; &nbsp;in Unknown on line 0<br>
&gt; &gt; Unknown(0) : Warning - PHP Startup: MapScript: Unable to initialize module<br>
&gt; &gt; Module compiled with module API=20060613, debug=0, thread-safety=1<br>
&gt; &gt; PHP &nbsp; &nbsp;compiled with module API=20060613, debug=1, thread-safety=1<br>
&gt; &gt; These options need to match<br>
&gt; &gt;<br>
&gt; &gt; I believe that I have enabled the debug option in mapserver, and I am using<br>
&gt; &gt; php<br>
&gt; &gt; as a CGI, so I am unsure as to what the trouble is. &nbsp;I don&#39;t WANT thread<br>
&gt; &gt; safety, I believe, but cannot seem to figure out how to disable it. &nbsp;Below<br>
&gt; &gt; are<br>
&gt; &gt; my compile options for php and mapserver, any help would be great:<br>
&gt; &gt;<br>
&gt; &gt; PHP config statement:<br>
&gt; &gt; ./configure &nbsp;--with-gd --with-mysql=/usr/local/mysql --with-pgsql<br>
&gt; &gt; --with-zlib<br>
&gt; &gt; --with-ttf --prefix=/usr --enable-debug --enable-maintainer-zts<br>
&gt; &gt;<br>
&gt; &gt; Mapserver config:<br>
&gt; &gt; ./configure --with-wfs --with-wmsclient<br>
&gt; &gt; --with-php=/Users/robertwb/src/php-5.2.5<br>
&gt; &gt; --with-postgis=/usr/local/pgsql/bin --with-wfsclient --with-wms<br>
&gt; &gt; --with-postgis<br>
&gt; &gt; --with-gdal --with-ogr --with-geos --with-proj --enable-debug<br>
&gt; &gt;<br>
&gt; &gt; Thanks!<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Robert W. Burgholzer<br>
&gt; &gt; --<br>
&gt; &gt; Finding the occasional straw of truth awash in a great ocean of confusion<br>
&gt; &gt; and<br>
&gt; &gt; bamboozle requires intelligence, vigilance, dedication and courage. &nbsp;But if<br>
&gt; &gt; we<br>
&gt; &gt; don&#39;t practice these tough habits of thought, we cannot hope to solve the<br>
&gt; &gt; truly<br>
&gt; &gt; serious problems that face us -- and we risk becoming a nation of suckers,<br>
&gt; &gt; up<br>
&gt; &gt; for grabs by the next charlatan who comes along.<br>
&gt; &gt; -- Carl Sagan, &quot;The Fine Art of Baloney Detection,&quot; Parade, February 1,<br>
&gt; &gt; 1987<br>
&gt; &gt;<br>
&gt; &gt; Web Hydrology Objects - Online Collaborative Modeling:<br>
&gt; &gt; <a href="http://sourceforge.net/projects/npsource/" target="_blank">http://sourceforge.net/projects/npsource/</a><br>
&gt; &gt; Home Page:<br>
&gt; &gt; <a href="http://soulswimmer.dynalias.net/" target="_blank">http://soulswimmer.dynalias.net/</a><br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; mapserver-users mailing list<br>
&gt; &gt; <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
&gt; &gt; <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
&gt; &gt;<br>
&gt;<br>
<br>
<br>
--<br>
Robert W. Burgholzer<br>
--<br>
Finding the occasional straw of truth awash in a great ocean of confusion and<br>
bamboozle requires intelligence, vigilance, dedication and courage. &nbsp;But if we<br>
don&#39;t practice these tough habits of thought, we cannot hope to solve the truly<br>
serious problems that face us -- and we risk becoming a nation of suckers, up<br>
for grabs by the next charlatan who comes along.<br>
-- Carl Sagan, &quot;The Fine Art of Baloney Detection,&quot; Parade, February 1, 1987<br>
<br>
Web Hydrology Objects - Online Collaborative Modeling:<br>
<a href="http://sourceforge.net/projects/npsource/" target="_blank">http://sourceforge.net/projects/npsource/</a><br>
Home Page:<br>
<a href="http://soulswimmer.dynalias.net/" target="_blank">http://soulswimmer.dynalias.net/</a><br>
</div></div></blockquote></div><br></div>