title: Why is the last parameter of a function is not getting its value?
body: <p>I spent lot time to figure out this issue on production environment. On QA, UAT and DEV environment this is working fine. It seems something is related to server. Below are the details which I did.</p>
  
  <p>I added on more field to an existing function with default value and tested with both NULL and '' as default value. </p>
  
  <pre><code>    public function test($a, $b, $c = '')
      public function test($a, $b, $c = NULL)
  </code></pre>
  
  <p>When I am calling this function, the last argument is not getting its value. When I print the arguments in the log file, I am getting the default value for last parameter i.e. NULL instead of actual value. I am using Zend framework 1. </p>
  
  <p>Below is the code to to write the arguments to log file. I added below the line in the start of the function.</p>
  
  <pre><code>     $arg_list = func_get_args();
       Sg_Log_Manager::info(print_r($arg_list , true));
  </code></pre>
  
  <p>Can anyone help me out?</p>