[Mapserver-DE] Function registration failed - duplicate name in phpinfo_mapscript
Michael Schulz
mschulz at webgis.de
Mon Okt 10 14:37:01 CEST 2005
Hallo,
man kann in einem Skript (oder grundlegend in PHP, wenn man die dll
immer einbindet- ohne dl()) nur eine mapscript-dll laden, daher der
Fehler "duplicate name".
Wenn im phpinfo_mapscript_44.php sowas steht wie dl("mapscript_44.dll")
einfach mal damit umklammern:
if (!extension_loaded("MapScript")) {
dl ...
}
Grüße, Michael
Michael Hofenwald schrieb:
> Hallo Liste,
>
> habe ein Problem mit meiner Mapserver-Konfiguration. Unter http://localhost
> - Features:
> # php_mapscript_44.dll (phpinfo) und # php_mapscript_46.dll (phpinfo) werden
> folgende Fehlermeldungen ausgegeben:
>
> Warning: Function registration failed - duplicate name - ms_getversion in
> C:\ms4w\Apache\htdocs\phpinfo_mapscript_44.php on line 2
>
> Warning: Function registration failed - duplicate name - ms_newmapobj in
> C:\ms4w\Apache\htdocs\phpinfo_mapscript_44.php on line 2
>
> Warning: Function registration failed - duplicate name - ms_newlayerobj in
> C:\ms4w\Apache\htdocs\phpinfo_mapscript_44.php on line 2
>
> Warning: Function registration failed - duplicate name - ms_newclassobj in
> C:\ms4w\Apache\htdocs\phpinfo_mapscript_44.php on line 2
>
> Warning: Function registration failed - duplicate name - ms_newpointobj in
> C:\ms4w\Apache\htdocs\phpinfo_mapscript_44.php on line 2
>
> Warning: Function registration failed - duplicate name - ms_newlineobj in
> C:\ms4w\Apache\htdocs\phpinfo_mapscript_44.php on line 2
>
> Warning: Function registration failed - duplicate name - ms_newshapeobj in
> C:\ms4w\Apache\htdocs\phpinfo_mapscript_44.php on line 2
>
> Warning: Function registration failed - duplicate name - ms_newshapefileobj
> in C:\ms4w\Apache\htdocs\phpinfo_mapscript_44.php on line 2
>
> Warning: Function registration failed - duplicate name - ms_newrectobj in
> C:\ms4w\Apache\htdocs\phpinfo_mapscript_44.php on line 2
>
> Warning: Function registration failed - duplicate name - ms_getcwd in
> C:\ms4w\Apache\htdocs\phpinfo_mapscript_44.php on line 2
>
> Warning: Function registration failed - duplicate name - ms_getpid in
> C:\ms4w\Apache\htdocs\phpinfo_mapscript_44.php on line 2
>
> Warning: Function registration failed - duplicate name - ms_getscale in
> C:\ms4w\Apache\htdocs\phpinfo_mapscript_44.php on line 2
>
> Warning: Function registration failed - duplicate name - ms_newprojectionobj
> in C:\ms4w\Apache\htdocs\phpinfo_mapscript_44.php on line 2
>
> Warning: Function registration failed - duplicate name - ms_tokenizemap in
> C:\ms4w\Apache\htdocs\phpinfo_mapscript_44.php on line 2
>
> Warning: Function registration failed - duplicate name - ms_newstyleobj in
> C:\ms4w\Apache\htdocs\phpinfo_mapscript_44.php on line 2
>
> Warning: Function registration failed - duplicate name - ms_newgridobj in
> C:\ms4w\Apache\htdocs\phpinfo_mapscript_44.php on line 2
>
> Warning: Function registration failed - duplicate name - ms_geterrorobj in
> C:\ms4w\Apache\htdocs\phpinfo_mapscript_44.php on line 2
>
> Warning: Function registration failed - duplicate name - ms_reseterrorlist
> in C:\ms4w\Apache\htdocs\phpinfo_mapscript_44.php on line 2
>
> Warning: Function registration failed - duplicate name - ms_newsymbolobj in
> C:\ms4w\Apache\htdocs\phpinfo_mapscript_44.php on line 2
>
> Warning: MapScript: Unable to register functions, unable to load in Unknown
> on line 0
>
> unter "PHP 4.3.11" stehen keine Fehlermeldungen, sonst aber derselbe Krams.
>
> in Hoffnung auf Hilfe bedanke ich mich schon mal.
> Gruß
> Michael
>
--
-----------------------------------------------------------
Michael Schulz mschulz at webgis.de
in medias res Gesellschaft für Informationstechnologie mbH
In den Weihermatten 66 Tel +49 (0)761 556959-5
79108 Freiburg Fax +49 (0)761 556959-6
www.webgis.de / www.zopecms.de
-----------------------------------------------------------
NEU ++ UMN MapServer Hosting ++ http://www.webgis.de ++ NEU
-----------------------------------------------------------
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)