Opened 13 years ago
Closed 13 years ago
#3788 closed defect (fixed)
Uncaught exception 'MapScriptException' with message 'Property 'inmapfile' does not exist in this object
Reported by: | scorant | Owned by: | aboudreault |
---|---|---|---|
Priority: | normal | Milestone: | 6.0 release |
Component: | MapScript-PHP | Version: | 6.0 |
Severity: | normal | Keywords: | |
Cc: |
Description
This fragment of code report: Uncaught exception 'MapScriptException' with message 'Property 'inmapfile' does not exist in this object.
$symbolId = ms_newSymbolObj($oMap, "symbol0"); $symbol = $oMap->getsymbolobjectbyid($symbolId); $symbol->set("inmapfile", MS_TRUE);
For other properties the same mistake. Perhaps the problem is the missing else in file symbol.c:
IF_SET_STRING("name", php_symbol->symbol->name, value) else IF_SET_LONG("type", php_symbol->symbol->type, value) else IF_SET_LONG("inmapfile", php_symbol->symbol->inmapfile, value) else IF_SET_DOUBLE("sizex", php_symbol->symbol->sizex, value) else IF_SET_DOUBLE("sizey", php_symbol->symbol->sizey, value) else IF_SET_LONG("filled", php_symbol->symbol->filled, value) else IF_SET_LONG("transparent", php_symbol->symbol->transparent, value) else IF_SET_LONG("transparentcolor", php_symbol->symbol->transparentcolor, value) else IF_SET_STRING("character", php_symbol->symbol->character, value) else IF_SET_LONG("antialias", php_symbol->symbol->antialias, value) else IF_SET_STRING("font", php_symbol->symbol->font, value) else IF_SET_LONG("position", php_symbol->symbol->position, value) if ( (STRING_EQUAL("numpoints", property)) || (STRING_EQUAL("patternlength", property)) || (STRING_EQUAL("imagepath", property))) { mapscript_throw_exception("Property '%s' is read-only and cannot be set." TSRMLS_CC, property); } else { mapscript_throw_exception("Property '%s' does not exist in this object." TSRMLS_CC, property); }
Note:
See TracTickets
for help on using tickets.
Fixed in r11387.