mo3awia wrote:there is a 'NIL' in php and editors don't have a problem with it
and i said it works fine at mac , windows and on a online server not just local server
First of all, there is no NIL unless you define it:
- Code: Select all
define('NIL', null);
Are you comparing the same script and the same php configuration (and exact version) on all environments?
What code are we talking about? In a Framework this might be defined because it is derived from another programming language where nil is used instead of null?
----------------------------------------------------
EDIT: Scratch that. Testscript:
- Code: Select all
<?php
var_dump(NIL);
?>
Windows (PHP 5.5.15): int(0)
Arch (PHP 5.6.9): int(0)
Ubuntu (PHP 5.5.9): string(3) "NIL"
I will investigate that.