There is a way to define a namespaced constant that is a special, built-in constant, using define function and setting the third parameter case_insensitive to false:
<?php
namespace foo;
define(__NAMESPACE__ . '\NULL', 10); var_dump(NULL); var_dump(null); ?>
No need to specify the namespace in your call to define(), like it happens usually
<?php
namespace foo;
define(INI_ALL, 'bar'); define(__NAMESPACE__ . '\INI_ALL', 'bar'); var_dump(INI_ALL); define('NULL', 10); var_dump(NULL); var_dump(null); ?>
If the parameter case_insensitive is set to true
<?php
namespace foo;
define (__NAMESPACE__ . '\NULL', 10, true); ?>