imprint
Recently I discovered, that you cannot use exit and die as class methodes. For example
<?php
class test{
public function exit(){
}
}
?>
You well get a parser error. Well exit and die are php functions, but waht about time()?
<?php
class test2{
public function time(){
}
}
?>
Has no parser error.
exit and die are not functions, they are langauge constructs. As such, they are reserved words. Check the man pages and you'll see a note about it