<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Courier;
panose-1:2 7 4 9 2 2 5 2 4 4;}
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"Préformaté HTML Car";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.PrformatHTMLCar
{mso-style-name:"Préformaté HTML Car";
mso-style-priority:99;
mso-style-link:"Préformaté HTML";
font-family:Consolas;
mso-fareast-language:FR-CA;}
span.EmailStyle23
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:131143545;
mso-list-type:hybrid;
mso-list-template-ids:-1604162000 202113025 202113027 202113029 202113025 202113027 202113029 202113025 202113027 202113029;}
@list l0:level1
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level3
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l0:level4
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level5
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level6
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l0:level7
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level8
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level9
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l1
{mso-list-id:936643367;
mso-list-type:hybrid;
mso-list-template-ids:592455680 202113029 202113027 202113029 202113025 202113027 202113029 202113025 202113027 202113029;}
@list l1:level1
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l1:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l1:level3
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l1:level4
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l1:level5
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l1:level6
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l1:level7
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l1:level8
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l1:level9
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l2
{mso-list-id:1858038939;
mso-list-type:hybrid;
mso-list-template-ids:1970859410 202113025 202113027 202113029 202113025 202113027 202113029 202113025 202113027 202113029;}
@list l2:level1
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l2:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l2:level3
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l2:level4
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l2:level5
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l2:level6
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l2:level7
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l2:level8
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l2:level9
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=FR-CA link=blue vlink=purple style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal><span style='mso-fareast-language:EN-US'>Also in VSCode, you should have the following parameters in the configuration file launch.json <o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal style='line-height:14.25pt;background:#1E1E1E'><span style='font-size:10.5pt;font-family:Consolas;color:#D4D4D4'>{<o:p></o:p></span></p><p class=MsoNormal style='line-height:14.25pt;background:#1E1E1E'><span style='font-size:10.5pt;font-family:Consolas;color:#D4D4D4'> </span><span style='font-size:10.5pt;font-family:Consolas;color:#608B4E'>// Utilisez IntelliSense pour en savoir plus sur les attributs possibles.</span><span style='font-size:10.5pt;font-family:Consolas;color:#D4D4D4'><o:p></o:p></span></p><p class=MsoNormal style='line-height:14.25pt;background:#1E1E1E'><span style='font-size:10.5pt;font-family:Consolas;color:#D4D4D4'> </span><span style='font-size:10.5pt;font-family:Consolas;color:#608B4E'>// Pointez pour afficher la description des attributs existants.</span><span style='font-size:10.5pt;font-family:Consolas;color:#D4D4D4'><o:p></o:p></span></p><p class=MsoNormal style='line-height:14.25pt;background:#1E1E1E'><span style='font-size:10.5pt;font-family:Consolas;color:#D4D4D4'> </span><span style='font-size:10.5pt;font-family:Consolas;color:#608B4E'>// Pour plus d'informations, visitez : <a href="https://go.microsoft.com/fwlink/?linkid=830387">https://go.microsoft.com/fwlink/?linkid=830387</a></span><span style='font-size:10.5pt;font-family:Consolas;color:#D4D4D4'><o:p></o:p></span></p><p class=MsoNormal style='line-height:14.25pt;background:#1E1E1E'><span style='font-size:10.5pt;font-family:Consolas;color:#D4D4D4'> </span><span style='font-size:10.5pt;font-family:Consolas;color:#9CDCFE'>"version"</span><span style='font-size:10.5pt;font-family:Consolas;color:#D4D4D4'>: </span><span style='font-size:10.5pt;font-family:Consolas;color:#CE9178'>"0.2.0"</span><span style='font-size:10.5pt;font-family:Consolas;color:#D4D4D4'>,<o:p></o:p></span></p><p class=MsoNormal style='line-height:14.25pt;background:#1E1E1E'><span style='font-size:10.5pt;font-family:Consolas;color:#D4D4D4'> </span><span style='font-size:10.5pt;font-family:Consolas;color:#9CDCFE'>"configurations"</span><span style='font-size:10.5pt;font-family:Consolas;color:#D4D4D4'>: [<o:p></o:p></span></p><p class=MsoNormal style='line-height:14.25pt;background:#1E1E1E'><span style='font-size:10.5pt;font-family:Consolas;color:#D4D4D4'><o:p> </o:p></span></p><p class=MsoNormal style='line-height:14.25pt;background:#1E1E1E'><span style='font-size:10.5pt;font-family:Consolas;color:#D4D4D4'> {<o:p></o:p></span></p><p class=MsoNormal style='line-height:14.25pt;background:#1E1E1E'><span style='font-size:10.5pt;font-family:Consolas;color:#D4D4D4'> </span><span style='font-size:10.5pt;font-family:Consolas;color:#9CDCFE'>"name"</span><span style='font-size:10.5pt;font-family:Consolas;color:#D4D4D4'>: </span><span style='font-size:10.5pt;font-family:Consolas;color:#CE9178'>"Listen for XDebug"</span><span style='font-size:10.5pt;font-family:Consolas;color:#D4D4D4'>,<o:p></o:p></span></p><p class=MsoNormal style='line-height:14.25pt;background:#1E1E1E'><span style='font-size:10.5pt;font-family:Consolas;color:#D4D4D4'> </span><span style='font-size:10.5pt;font-family:Consolas;color:#9CDCFE'>"type"</span><span style='font-size:10.5pt;font-family:Consolas;color:#D4D4D4'>: </span><span style='font-size:10.5pt;font-family:Consolas;color:#CE9178'>"php"</span><span style='font-size:10.5pt;font-family:Consolas;color:#D4D4D4'>,<o:p></o:p></span></p><p class=MsoNormal style='line-height:14.25pt;background:#1E1E1E'><span style='font-size:10.5pt;font-family:Consolas;color:#D4D4D4'> </span><span style='font-size:10.5pt;font-family:Consolas;color:#9CDCFE'>"request"</span><span style='font-size:10.5pt;font-family:Consolas;color:#D4D4D4'>: </span><span style='font-size:10.5pt;font-family:Consolas;color:#CE9178'>"launch"</span><span style='font-size:10.5pt;font-family:Consolas;color:#D4D4D4'>,<o:p></o:p></span></p><p class=MsoNormal style='line-height:14.25pt;background:#1E1E1E'><span style='font-size:10.5pt;font-family:Consolas;color:#D4D4D4'> </span><span style='font-size:10.5pt;font-family:Consolas;color:#9CDCFE'>"port"</span><span style='font-size:10.5pt;font-family:Consolas;color:#D4D4D4'>: </span><span style='font-size:10.5pt;font-family:Consolas;color:#B5CEA8'>9000</span><span style='font-size:10.5pt;font-family:Consolas;color:#D4D4D4'><o:p></o:p></span></p><p class=MsoNormal style='line-height:14.25pt;background:#1E1E1E'><span style='font-size:10.5pt;font-family:Consolas;color:#D4D4D4'> }<o:p></o:p></span></p><p class=MsoNormal style='line-height:14.25pt;background:#1E1E1E'><span style='font-size:10.5pt;font-family:Consolas;color:#D4D4D4'> ]<o:p></o:p></span></p><p class=MsoNormal style='line-height:14.25pt;background:#1E1E1E'><span style='font-size:10.5pt;font-family:Consolas;color:#D4D4D4'>}<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=FR>De :</span></b><span lang=FR> mapguide-users <mapguide-users-bounces@lists.osgeo.org> <b>De la part de</b> pierre.cardinal@sympatico.ca<br><b>Envoyé :</b> 15 août 2022 19:48<br><b>À :</b> 'MapGuide Users Mail List' <mapguide-users@lists.osgeo.org><br><b>Objet :</b> Re: [mapguide-users] MGOS 4.0 and REST<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'>The DLL for XDEBUG are at <a href="https://xdebug.org/download/historical">https://xdebug.org/download/historical</a><o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=FR>De :</span></b><span lang=FR> mapguide-users <<a href="mailto:mapguide-users-bounces@lists.osgeo.org">mapguide-users-bounces@lists.osgeo.org</a>> <b>De la part de</b> <a href="mailto:pierre.cardinal@sympatico.ca">pierre.cardinal@sympatico.ca</a><br><b>Envoyé :</b> 3 août 2022 21:17<br><b>À :</b> 'MapGuide Users Mail List' <<a href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>><br><b>Objet :</b> Re: [mapguide-users] MGOS 4.0 and REST<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hi Jackie,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Debugging PHP under VSCode with Xdebug 2 :<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><ul style='margin-top:0cm' type=disc><li class=MsoListParagraph style='margin-left:0cm;mso-list:l0 level1 lfo1'>Windows 10 with IIS (regular installation for MapGuide Web Tier)<o:p></o:p></li><li class=MsoListParagraph style='margin-left:0cm;mso-list:l0 level1 lfo1'>PHP 5.6.40<o:p></o:p></li><li class=MsoListParagraph style='margin-left:0cm;mso-list:l0 level1 lfo1'>dll for xdebug 2 : D:\mgos\Web\Php\ext\php_xdebug-2.5.4-5.6-vc11-x86_64.dll <o:p></o:p></li><li class=MsoListParagraph style='margin-left:0cm;mso-list:l0 level1 lfo1'>php.ini config for xdebug 2 : <o:p></o:p></li></ul><p class=MsoNormal style='margin-left:36.0pt'>[XDebug]<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>zend_extension = "D:\mgos\Web\Php\ext\php_xdebug-2.5.4-5.6-vc11-x86_64.dll"<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>xdebug.remote_enable = 1<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>xdebug.remote_autostart = 1<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>xdebug.remote_host=localhost<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>xdebug.remote_port=9000<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>xdebug.remote_handler=dbgp<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'><o:p> </o:p></p><ul style='margin-top:0cm' type=square><li class=MsoListParagraph style='margin-left:0cm;mso-list:l1 level1 lfo2'>installation of the PHP Xdebug extension in VSCode : <o:p></o:p></li></ul><p class=MsoListParagraph>PHP Debug from Robert Lu<o:p></o:p></p><p class=MsoListParagraph><a href="https://marketplace.visualstudio.com/items?itemName=robberphex.php-debug">https://marketplace.visualstudio.com/items?itemName=robberphex.php-debug</a><o:p></o:p></p><p class=MsoListParagraph><o:p> </o:p></p><ul style='margin-top:0cm' type=square><li class=MsoListParagraph style='margin-left:0cm;mso-list:l1 level1 lfo2'>modification json user parameter in VSCode <o:p></o:p></li><li class=MsoListParagraph style='color:#D4D4D4;margin-left:0cm;line-height:14.25pt;mso-list:l1 level1 lfo2;background:#1E1E1E'><span style='font-size:10.5pt;font-family:Consolas'>{<o:p></o:p></span></li><li class=MsoListParagraph style='color:#D4D4D4;margin-left:0cm;line-height:14.25pt;mso-list:l1 level1 lfo2;background:#1E1E1E'><span style='font-size:10.5pt;font-family:Consolas'> </span><span style='font-size:10.5pt;font-family:Consolas;color:#9CDCFE'>"php.validate.executablePath"</span><span style='font-size:10.5pt;font-family:Consolas'>: </span><span style='font-size:10.5pt;font-family:Consolas;color:#CE9178'>"D:/mgos/Web/Php/php.exe"</span><span style='font-size:10.5pt;font-family:Consolas'><o:p></o:p></span></li><li class=MsoListParagraph style='color:#D4D4D4;margin-left:0cm;line-height:14.25pt;mso-list:l1 level1 lfo2;background:#1E1E1E'><span style='font-size:10.5pt;font-family:Consolas'>}<o:p></o:p></span></li></ul><p class=MsoNormal><o:p> </o:p></p><ul style='margin-top:0cm' type=disc><li class=MsoListParagraph style='margin-left:0cm;mso-list:l2 level1 lfo3'>open the file D:\mgos\Web\www\rest\index.php with vscode<o:p></o:p></li><li class=MsoListParagraph style='margin-left:0cm;mso-list:l2 level1 lfo3'>add a breakpoint to a line of index.php<o:p></o:p></li><li class=MsoListParagraph style='margin-left:0cm;mso-list:l2 level1 lfo3'>click on the bug icon on the left of the VSCode window<o:p></o:p></li><li class=MsoListParagraph style='margin-left:0cm;mso-list:l2 level1 lfo3'>click on the green arrow next to « Listen for XDebug » at the top of the VSCode window<o:p></o:p></li></ul><p class=MsoNormal><o:p> </o:p></p><ul style='margin-top:0cm' type=disc><li class=MsoListParagraph style='margin-left:0cm;mso-list:l2 level1 lfo3'>in your browser execute <a href="http://%3cservername%3e/maguide/rest/index.php">http://<servername>/maguide/rest/index.php</a><o:p></o:p></li><li class=MsoListParagraph style='margin-left:0cm;mso-list:l2 level1 lfo3'>in vscode the debugger will stop at the first line with a breakpoint<o:p></o:p></li><li class=MsoListParagraph style='margin-left:0cm;mso-list:l2 level1 lfo3'>now you should be in business <o:p></o:p></li></ul><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>note : The configuration for php.ini is different for Xdebug 3 (PHP 8).<o:p></o:p></p><p class=MsoNormal>Don’t forget the FastCGI delay when debugging.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Some references : <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><a href="https://marketplace.visualstudio.com/items?itemName=xdebug.php-debug">https://marketplace.visualstudio.com/items?itemName=xdebug.php-debug</a><o:p></o:p></p><p class=MsoNormal><a href="https://docs.devsense.com/en/vs/debugging/configuring-xdebug">https://docs.devsense.com/en/vs/debugging/configuring-xdebug</a><o:p></o:p></p><p class=MsoNormal><a href="https://code.visualstudio.com/docs/languages/php">https://code.visualstudio.com/docs/languages/php</a><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hope it helps<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Question from my side<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal> Where is the code for MGOS 4.0.0 preview 3. Is it under SVN <a href="https://trac.osgeo.org/mapguide/browser/trunk/MgDev">https://trac.osgeo.org/mapguide/browser/trunk/MgDev</a> or is it under GitHub <a href="https://github.com/jumpinjackie/mapguide/tree/master/MgDev">mapguide/MgDev at master · jumpinjackie/mapguide · GitHub</a> ? What is the difference between both ?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Regards,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Pierre <o:p></o:p></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=FR>De :</span></b><span lang=FR> mapguide-users <<a href="mailto:mapguide-users-bounces@lists.osgeo.org">mapguide-users-bounces@lists.osgeo.org</a>> <b>De la part de</b> Jackie Ng<br><b>Envoyé :</b> 3 août 2022 13:32<br><b>À :</b> <a href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><br><b>Objet :</b> Re: [mapguide-users] MGOS 4.0 and REST<o:p></o:p></span></p></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>mapguide-rest has not been maintained for years now due to competing priorities in real life and on other projects.<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>I am assuming by MGOS 4.0 you are using the current preview 3 release. If you are using my vanilla SWIG sandbox branch then I can say mapguide-rest will definitely not work right now as that is still targeting PHP 5.6 and the vanilla SWIG branch now bundles PHP 8.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Assuming you are on the preview 3 release that still bundles PHP 5.6, then if you are using the 1.0 RC5 release I can say that release will not work because it has a class that collides with a class of the same name in the MapGuide API (MgGeoJsonWriter). All I can say is try building mapguide-rest from git master (which renames this conflicting class) and see if that works with your preview 3 installation.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Otherwise I would just hold off on trying to use mapguide-rest with MGOS 4.0. The next preview release of MGOS 4.0 when it drops, will ship with PHP 8.1, which means mapguide-rest will *definitely* not work for reasons already stated above. There will need to be dev work (which I currently do not have time for) to migrate mapguide-rest over to PHP 8.1. So all things considered mapguide-rest will not be usable with MGOS 4.0 in the foreseeable future until at least the final release of MGOS 4.0 is out the door. Only then can I reasonably invest some time into migrating over mapguide-rest.<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>As an aside, I am also interested in how you set up your VSCode for PHP debugging. I only got this to work for debugging PHP scripts that are run from the command-line. I never got this to work for PHP code running on a web server.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>- Jackie<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>You wrote:<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div></div></div><blockquote style='margin-left:30.0pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt'><div><div><div><pre style='white-space:pre-wrap'><span style='font-size:10.5pt;font-family:Courier;color:black'>Hi Jackie,<o:p></o:p></span></pre></div></div></div><div><div><div><pre style='white-space:pre-wrap'><span style='font-size:10.5pt;font-family:Courier;color:black'>What can it be ?<o:p></o:p></span></pre></div></div></div><div><div><div><pre style='white-space:pre-wrap'><span style='font-size:10.5pt;font-family:Courier;color:black'>MGOS 4.0 from last release with IIS under Server2012 R2<o:p></o:p></span></pre></div></div></div><div><div><div><pre style='white-space:pre-wrap'><span style='font-size:10.5pt;font-family:Courier;color:black'>MGOS 4.0 from build with IIS under Win10<o:p></o:p></span></pre></div></div></div><div><div><div><pre style='white-space:pre-wrap'><span style='font-size:10.5pt;font-family:Courier;color:black'>When I tried to use mapguide-REST with<o:p></o:p></span></pre></div></div></div><div><div><div><pre style='white-space:pre-wrap'><a href="http://localhost/mapguide/rest/index.php"><span style='font-size:10.5pt;font-family:Courier;color:#005096'>http://localhost/mapguide/rest/index.php</span></a><span style='font-size:10.5pt;font-family:Courier;color:black'>, I have the following message :<o:p></o:p></span></pre></div></div></div><div><div><div><pre style='white-space:pre-wrap'><span style='font-size:10.5pt;font-family:Courier;color:black'>404 Page Not Found<o:p></o:p></span></pre></div></div></div><div><div><div><pre style='white-space:pre-wrap'><span style='font-size:10.5pt;font-family:Courier;color:black'>The page you are looking for could not be found. Check the address bar to<o:p></o:p></span></pre></div></div></div><div><div><div><pre style='white-space:pre-wrap'><span style='font-size:10.5pt;font-family:Courier;color:black'>ensure your URL is spelled correctly. If all else fails, you can visit our<o:p></o:p></span></pre></div></div></div><div><div><div><pre style='white-space:pre-wrap'><span style='font-size:10.5pt;font-family:Courier;color:black'>home page at the link below.<o:p></o:p></span></pre></div></div></div><div><div><div><pre style='white-space:pre-wrap'><span style='font-size:10.5pt;font-family:Courier;color:black'>Visit the Home Page <</span><a href="http://localhost/mapguide/rest/index.php/"><span style='font-size:10.5pt;font-family:Courier;color:#005096'>http://localhost/mapguide/rest/index.php/</span></a><span style='font-size:10.5pt;font-family:Courier;color:black'>> <o:p></o:p></span></pre></div></div></div></blockquote><blockquote style='margin-left:30.0pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt'><div><div><div><pre style='white-space:pre-wrap'><span style='font-size:10.5pt;font-family:Courier;color:black'>And in the VS Code debugger I have the exception Slim\Exception\Stop (line<o:p></o:p></span></pre></div></div></div><div><div><div><pre style='white-space:pre-wrap'><span style='font-size:10.5pt;font-family:Courier;color:black'>1020 in Slim.php)<o:p></o:p></span></pre></div></div></div></blockquote><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><p class=MsoNormal>-- <o:p></o:p></p><div><div><p class=MsoNormal><i><span style='font-size:7.5pt'>Please Note: I no longer create new posts or post replies to any OSGeo mailing list through nabble. As a result, you most likely won't see this message appear on nabble's view of any OSGeo mailing list and may only see this message through mailing list archives or depending on your mailing list subscription settings, through daily message digests or automated notifications from the mailing lists.</span></i><o:p></o:p></p></div></div></div></div></body></html>