It's a fine time to leave me loose wheel (ie. the Linux group name) ... but we're going to let the Warning ... constant(): Couldn't find constant 1 ... that resulted from ...
echo "namespace\MYCONST = '" . constant($d) . "' <br>";
// at line 58
... through, okay?!