[mapserver-users] getAllLayerNames crashes PHP MapScript?

kreshna_iceheart at yahoo.com kreshna_iceheart at yahoo.com
Wed Jun 17 00:31:00 PDT 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



      



More information about the MapServer-users mailing list