isset () in php 5.3 seems to behave unexpectedly. I have a class called DB that encapsulates a bunch of string properties using getters and setters.
$ dbdetails-> getDatabasename () evaluates the string ("mydb")
This raises a 500 error:
if(!isset($dbdetails->getDatabasename())){
}
That works great
$databasename = $dbdetails->getDatabasename();
if(!isset($databasename)){
}
I could not see any log output because apache sent back 500 even if the ini param parameter is set (sic) to On. I know this is precisely related to isset call. Any idea what might be wrong, or did I find a PHP error?
source
share