I have:
<?php
try
{
throw new Exception('Debes iniciar sesión para esto.', 1); // This is a null exception.
throw new Exception('Debes iniciar sesion para esto.', 1); // This is not a null exception.
}
catch (Exception $ex1)
{
echo 'Message: ' . $ex1->getMessage();
}
When I throw the first exception it results null!! and I can't get the message when handling it! but for some reason if I remove the accent it throws the message correctly.
What could it be? a bug? (if you don't believe me, try it yourself)