title: set_error_handler code error is 1024 in every case
body: <p>I am working on the following error handler project.</p>
  
  <pre><code>function test($code, $message, $fichier, $ligne){
  
      switch($code){
  
          case E_USER_NOTICE :
  
              print_r('notice');
  
              break;
          case E_USER_WARNING :
  
              print_r('warning');
  
              break;
          case E_USER_ERROR :
  
              print_r('error');
  
              break;
  
      }
  
  
      echo '&lt;pre&gt;',print_r($code,true),'&lt;/pre&gt;';
      echo '&lt;pre&gt;',print_r($message,true),'&lt;/pre&gt;';
  }
  
  set_error_handler('test');
  
  trigger_error(E_USER_WARNING);
  </code></pre>
  
  <p>The problem is that for every error i try to trigger i get a <code>1024</code> error code and it print 'notice'.</p>
  
  <p>However the message print the good code error (here <code>512</code>). But i would like to get the good code and not with the message.</p>
  
  <p>Thanks for your replies</p>