Ticket #4183 (closed defect: fixed)

Opened 16 months ago

Last modified 15 months ago

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

Changed 15 months ago by iap

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

Changed 15 months ago by iap

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

Changed 15 months ago by aboudreault

  • status changed from new to closed
  • resolution set to fixed

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

Note: See TracTickets for help on using tickets.