title: PHP Uploadprogress extension function always returning null, with no upload data
body: <p>I am using php 5.3.2 with uploadprogress extension to get a progressbar during upload using zend framework. Even the demo provided with zend is not working. code in zend example - </p>
  
  <pre><code>if (isset($_GET['uploadId'])) {
  set_include_path(realpath(dirname(__FILE__) . '/../../../library')
                   . PATH_SEPARATOR . get_include_path());
  
  require_once 'Zend/ProgressBar.php';
  require_once 'Zend/ProgressBar/Adapter/JsPull.php';
  require_once 'Zend/Session/Namespace.php';
  
  $data          = uploadprogress_get_info($_GET['uploadId']);
  $bytesTotal    = ($data === null ? 0 : $data['bytes_total']);
  $bytesUploaded = ($data === null ? 0 : $data['bytes_uploaded']);
  
  $adapter     = new Zend_ProgressBar_Adapter_JsPull();
  $progressBar = new Zend_ProgressBar($adapter, 0, $bytesTotal, 'uploadProgress');
  
  if ($bytesTotal === $bytesUploaded) {
      $progressBar-&gt;finish();
  } else {
      $progressBar-&gt;update($bytesUploaded);
  }
  </code></pre>
  
  <p>}</p>
  
  <p>uploadprogress_get_info always returns null. I thought something is wrong with my code so i downloaded the working sample available at <a href="http://labs.liip.ch/uploadprogresssimple/index.php" rel="nofollow noreferrer">http://labs.liip.ch/uploadprogresssimple/index.php</a> but even in that case in uploadprogress_get_info always return null.</p>
  
  <p>My uploadprogress config values </p>
  
  <p>uploadprogress support enabled</p>
  
  <p>Version 1.0.1</p>
  
  <p>uploadprogress.file.contents_template /tmp/upload_contents_%s</p>
  
  <p>uploadprogress.file.filename_template /tmp/upt_%s.txt</p>
  
  <p>uploadprogress.get_contents 1</p>
  
  <p>While googling around i found uploadprogress extension has some issue with <a href="http://blog.liip.ch/archive/2009/01/22/uploadprogress-0-9-2-released.html#comments" rel="nofollow noreferrer">Suhosin Patch &lt; 0.9.26</a> but i am using Suhosin Patch 0.9.9.1</p>