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 iap, 12 years ago

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);

comment:2 by iap, 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 aboudreault, 12 years ago

Resolution: fixed
Status: newclosed

Fixed and committed in r13152 and backported in branch 6.0 in r13153.

Note: See TracTickets for help on using tickets.