i add this code:
error_reporting(0);
in top of function to disable warning message.