Opened 12 years ago
Closed 12 years ago
#4183 closed defect (fixed)
MS_CJC_* constants are not available in PHP MapScript
Reported by: | iap | Owned by: | aboudreault |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | MapScript-PHP | Version: | 6.0 |
Severity: | normal | Keywords: | cjc |
Cc: |
Description
MS_CJC_* constants are not available in PHP MapScript, which means I am unable to set "linecap" and "linejoin" values.
How to reproduce:
$ php -r "var_dump(MS_ON);"; int(1) $ php -r "var_dump(MS_CJC_BEVEL);"; PHP Notice: Use of undefined constant MS_CJC_BEVEL - assumed 'MS_CJC_BEVEL' in Command line code on line 1 string(12) "MS_CJC_BEVEL"
Change History (3)
comment:1 by , 12 years ago
comment:2 by , 12 years ago
//MS_CJC define('MS_CJC_BEVEL', 1); define('MS_CJC_BUTT', 2); define('MS_CJC_MITER', 3); define('MS_CJC_ROUND', 4); define('MS_CJC_SQUARE', 5); define('MS_CJC_TRIANGLE', 6);
comment:3 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
A temporary solution if you need this constants:
MS_CJC define('MS_CJC_BEVEL', 1); define('MS_CJC_BUTT', 2); define('MS_CJC_MITER', 3); define('MS_CJC_ROUND', 4); define('MS_CJC_SQUARE', 5); define('MS_CJC_TRIANGLE', 6);