This could be connected to my previous question, and maybe a duplicate to this.
Well, why value declared as NULL in MySQL database is returned as "" (empty string), in this case all my functions which returns some value dependently on result of evaluation, dont' work.
$var = NULL; // false
$var = ""; // true
Also I'm dumping result of evaluating:
var_dump(isset($var));
I'm using PDO DB driver, PHP 5.4.7 and MySQL 5.5.27.
Is that like behaviour expected or is this some bug? NULL is saved in field as MySQL NULL, not string 'NULL'.
$var === NULLwould work better.NULL, do you check this withis_null()or something else?