- Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.20
- Fatal error: Cannot redeclare MyNamespace\myHandeler() (previously declared in /in/cDdlO:7) in /in/cDdlO on line 14
Process exited with code 255.
<?php
namespace MyNamespace;
register_shutdown_function("myHandeler"); // this throws an error because it can't find function
function myHandeler()
{
// Some Code.
}
namespace MyNamespace;
register_shutdown_function("MyNamespace\myHandeler"); // this throws no error.
function myHandeler()
{
// Some Code.
}