title: PHP - Is there a way to ignore fatal errors in php.ini/ini_settings only without modifying the code?
body: <p>I inherited some PHP source code, and I have to maintain it. It has been built from scratch using no framework, just the former developer's own creation.</p>
  
  <p>Now, I ask this:</p>
  
  <p><strong>Is there a way to ignore fatal errors in php.ini/ini_settings only without modifying the code?</strong></p>
  
  <p>Scenario:</p>
  
  <p>SomeClass.php:</p>
  
  <pre><code>&lt;?php class SomeClass {
  ...)?&gt;
  </code></pre>
  
  <p>index.php:</p>
  
  <pre><code>include("SomeClass.php");
  ...
  include("SomeClass.php");
  </code></pre>
  
  <p>In my development box, this throws a Fatal Error exception (because SomeClass has been declared twice), which is the obvious and expected behavior. </p>
  
  <p>Here is the kicker: This source is hosted somewhere, <strong>and it works.</strong> I just don't ANY access to that server.</p>
  
  <p>So I see here two scenarios:</p>
  
  <p>1.) There is a way to silence this Fatal Error via 2 includes by an ini setting. This I have to know.</p>
  
  <p>2.) The former developer did NOT give me the exact, updated source code that is currently up and running. I then have to insist that he give me the latest source code, but I can only do this if I am 100% sure that there is no way #1 can happen.</p>
  
  <p>What do you guys think?</p>