Opened 19 years ago
Closed 19 years ago
#1184 closed defect (wontfix)
getLayerByName throws a warning
Reported by: | Owned by: | mapserverbugs | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | MapScript-PHP | Version: | 4.4 |
Severity: | normal | Keywords: | |
Cc: |
Description
I didn't get a response on the mailing list so I'm filing it anyway... When I do call the getLayerByName method on a map object, it throws a warning when the layer doesn't exist. The docs suggest, and common sense too, that it returns FALSE when the layer doesn't exist, ot returns the layer when it does. I tested the issue on Windows/Linux with 4.2, 4.4.1 and 4.5 (cvs from 1 week ago). snippit: -------------------------- //returns the layer object ok. $oLayer = $oMap->getLayerByName("validlayername"); //retuns FALSE and echos a warning $oLayer = $oMap->getLayerByName("notvalidlayer"); -------------------------- Warning: getLayerByName failed for : notvalidlayer in ...
Change History (2)
comment:2 by , 19 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Let's close this as WONTFIX for now since the "@" operator should do what you need.
Note:
See TracTickets
for help on using tickets.