[ms4w-users] getAllLayerNames crashes MapServer?

kreshna_iceheart at yahoo.com kreshna_iceheart at yahoo.com
Thu Jun 18 20:46:34 EST 2009


I have the following codes in my web map application:

$GLOBALS["layer_names"] = $GLOBALS["map"]->getAllLayerNames();


When I ran the web map application through browser, Windows gave me the following error message:

CGI / FastCGI has encountered a problem and needs to close.  We are sorry for the inconvenience.


Also, the browser showed the following error message:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin at local.domain and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


First I thought it was because I used global variables, but I changed the variables into non-global variables, and the error was still there.

I'm using ms4w with MapServer version 5.0.2. The PHP version is 5.2.5 (cli) (built: Nov 8 2007 23:18:51), with Zend Engine v2.2.0. What could be wrong?

Thanks,
-Kresh

PS: the following is the result of phpinfo_mapscript.php

System  Windows NT TOSHIBA-FA8C99F 5.1 build 2600  
Build Date  Nov 8 2007 23:18:08  
Configure Command  cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared"  
Server API  CGI/FastCGI  
Virtual Directory Support  enabled  
Configuration File (php.ini) Path  C:\WINDOWS  
Loaded Configuration File  D:\ms4w\Apache\cgi-bin\php.ini  
PHP API  20041225  
PHP Extension  20060613  
Zend Extension  220060519  
Debug Build  no  
Thread Safety  enabled  
Zend Memory Manager  enabled  
IPv6 Support  enabled  
Registered PHP Streams  php, file, data, http, ftp, compress.zlib  
Registered Stream Socket Transports  tcp, udp  
Registered Stream Filters  convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, zlib.*  

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies





      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ms4w-users/attachments/20090618/32d3e5c4/attachment.htm 


More information about the ms4w-users mailing list