In PHP, when an error occurs, usually the line of the script where the same occurred is informed:
Undefined index 'a' in line 5
But there are times when error 0 is returned at line 0.
Example:
Fatal error: Call to a member function items () on a non-object in File.php on line 0
By the time I work with PHP, I know very well that the script count starts from 1
and not 0
Example:
<?= __LINE__ ?> // Retorna 1
What is the reason PHP sometimes returns Erro in Line 0
? Is it a bug? Or is this logical explanation?