title: Searching for a comprehensive list with all PHP error messages. Bugtracker
body: <p>I'm searching for a list will all possible PHP error messages. Google couldn't help me out this time.</p>
  
  <p><strong>Example:</strong></p>
  
  <pre><code>Fatal error: Call to undefined function ... in ... on line ...
  Warning: require_once(...) [function.require-once]: failed to open stream: No such file or directory in ... on line ...
  Warning: Illegal offset type in ... on line ...
  </code></pre>
  
  <p>and much more of such erros...</p>
  
  <p>According to the php.net <a href="http://php.net/manual/en/tokens.php" rel="nofollow noreferrer">http://php.net/manual/en/tokens.php</a> PHP is using tokens to generate error messages. But i still don't understand how to use them to generate an error message like</p>
  
  <pre><code>Fatal error: Call to undefined function T_SOME_TOKEN in T_SOME_TOKEN on line 666
  </code></pre>
  
  <p>Where should i search for such an error generator? I assume that it is hidden  somewhere in PHP's source code, but i have no idea where to start.</p>
  
  <p>The purpose is to build an PHP error parser which would monitor server error messages (if they are enabled) and check for PHP script updates:</p>
  
  <pre><code>Script "foo.php" which returns multiple errors
  
  Scan 1 (time t1):
      PHP Error on line 1000
      PHP Error on line 1200
  
  Scan 2 (time t2):
      PHP Error on line 1010
      PHP Error on line 1210
  </code></pre>
  
  <p>1010 - 1000 = 10 lines of code were added (somewhere between lines 0 and 1010). By using this approach and knowledge of which bug was fixed at which time it is possible to make kind of <strong>"PHP error based black box reverse engineering"</strong> of a given PHP script (if there are enough other reproducible PHP bugs in such script) (e.g. buggy game engine).</p>