[mapserver-users] php_mapscript compatibility trouble

alim karim alim.karim at gmail.com
Thu Jul 24 13:58:52 EDT 2008


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.

i'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.

ak

On Thu, Jul 24, 2008 at 10:53 AM, Robert W. Burgholzer <rburghol at vt.edu>
wrote:

> ak,
> You rule!  That did the trick!
>
> Is this worthy of a bug-report, or feature request, i.e., a configure
> switch to
> have the debug set on php_mapscript -- or should it automagically do it
> with
> the enable-debug switch on??
>
> Many thanks!
>
> r.b.
>
>
> Quoting alim karim <alim.karim at gmail.com>:
>
> > you can try changing the following to enable a debug build of the
> mapscript
> > module.
> >
> > in mapscript/php3/php_mapscript.c :
> >
> > change
> >
> > #define ZEND_DEBUG 0
> >
> > to
> >
> > #define ZEND_DEBUG 1
> >
> > ak
> >
> > On Thu, Jul 24, 2008 at 8:57 AM, Robert W. Burgholzer <rburghol at vt.edu>
> > wrote:
> >
> > > I am getting the following error after recompiling php and mapserv:
> > >
> > >  in Unknown on line 0
> > > Unknown(0) : Warning - PHP Startup: MapScript: Unable to initialize
> module
> > > Module compiled with module API=20060613, debug=0, thread-safety=1
> > > PHP    compiled with module API=20060613, debug=1, thread-safety=1
> > > These options need to match
> > >
> > > I believe that I have enabled the debug option in mapserver, and I am
> using
> > > php
> > > as a CGI, so I am unsure as to what the trouble is.  I don't WANT
> thread
> > > safety, I believe, but cannot seem to figure out how to disable it.
>  Below
> > > are
> > > my compile options for php and mapserver, any help would be great:
> > >
> > > PHP config statement:
> > > ./configure  --with-gd --with-mysql=/usr/local/mysql --with-pgsql
> > > --with-zlib
> > > --with-ttf --prefix=/usr --enable-debug --enable-maintainer-zts
> > >
> > > Mapserver config:
> > > ./configure --with-wfs --with-wmsclient
> > > --with-php=/Users/robertwb/src/php-5.2.5
> > > --with-postgis=/usr/local/pgsql/bin --with-wfsclient --with-wms
> > > --with-postgis
> > > --with-gdal --with-ogr --with-geos --with-proj --enable-debug
> > >
> > > Thanks!
> > >
> > > --
> > > Robert W. Burgholzer
> > > --
> > > Finding the occasional straw of truth awash in a great ocean of
> confusion
> > > and
> > > bamboozle requires intelligence, vigilance, dedication and courage.
>  But if
> > > we
> > > don't practice these tough habits of thought, we cannot hope to solve
> the
> > > truly
> > > serious problems that face us -- and we risk becoming a nation of
> suckers,
> > > up
> > > for grabs by the next charlatan who comes along.
> > > -- Carl Sagan, "The Fine Art of Baloney Detection," Parade, February 1,
> > > 1987
> > >
> > > Web Hydrology Objects - Online Collaborative Modeling:
> > > http://sourceforge.net/projects/npsource/
> > > Home Page:
> > > http://soulswimmer.dynalias.net/
> > > _______________________________________________
> > > mapserver-users mailing list
> > > mapserver-users at lists.osgeo.org
> > > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> > >
> >
>
>
> --
> Robert W. Burgholzer
> --
> Finding the occasional straw of truth awash in a great ocean of confusion
> and
> bamboozle requires intelligence, vigilance, dedication and courage.  But if
> we
> don't practice these tough habits of thought, we cannot hope to solve the
> truly
> serious problems that face us -- and we risk becoming a nation of suckers,
> up
> for grabs by the next charlatan who comes along.
> -- Carl Sagan, "The Fine Art of Baloney Detection," Parade, February 1,
> 1987
>
> Web Hydrology Objects - Online Collaborative Modeling:
> http://sourceforge.net/projects/npsource/
> Home Page:
> http://soulswimmer.dynalias.net/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080724/8bec579c/attachment.html


More information about the mapserver-users mailing list