FWD: how to build php/mapscript dll

Daniel Morissette morissette at dmsolutions.ca
Mon Jan 8 11:14:28 EST 2001


> chenrg at gtong.net wrote:
> 
> dear sir,
> i've used Mapserver V3.0.11 and the newer for several months. I
> modified
> gdft/dfttf.c to support GB2132 Chinese code and rebuilt mapserv.exe.
> it works
> well. Now i tried php/mapscripts dll, it works if using the win32
> binary
> php3_mapscript.dll (built using php-3.0.14). i have to rebuild the dll
> to
> support chinese GB code, but i can't find php-3.0.14 source. so i
> tried
> php-3.0.16, php-3.0.17, php-3.0.18, php-4.0.1pl2, php-4.04 to build
> the
> mapscript dll, but the dll can not be loaded by php program. The size
> of the
> dll i built (using php-3.0.16/17/18) is 1,134,661 bytes, the dll
> binary
> (using php-3.0.14, which can be loaded successfully by php) size is
> 1,130,564
> bytes. i don't know the differnces between php-3.0.14 and php-3.0.16.

The php-3.0.16 source should do... we used it before without any
problem.

You write that your DLL refuses to load.  Do you get any error message?
Any warning in the apache error_log file?  Does it make PHP crash?

One important thing if you've modified the GDFT stuff is to make sure
that your PHP is not compiled with TTF support because then you could
have a conflict between MapServer's GDFT files and PHP's GDFT.

> Are
> there some people can help me how to build php/mapscript.dll?  where
> can i get
> the php-3.0.14 source? how can i use php-4.0.4 for php/mapscript?
> many thanks

I could get you a copy of the php-3.0.14 source, but as I wrote above
the 3.0.16 source should be OK.  About php-4.0.4, it is even trickier to
compile on Windows than PHP3... so I suggest that you stick with PHP3
for now.

Please send me any error message you get and we'll see what we can do. 
(Probably a good idea to Email me directly to avoid bugging the list
with boring windows build details!)
-- 
------------------------------------------------------------
 Daniel Morissette                morissette at dmsolutions.ca
                 http://www.dmsolutions.ca/
------------------------------------------------------------
  Don't put for tomorrow what you can do today, because if 
      you enjoy it today you can do it again tomorrow.



More information about the mapserver-users mailing list