title: Php is adding error/notice log to ajax request response
body: <p>I have this ajax request:</p>
  
  <pre><code>$.ajax({
      type: 'POST',
      url: 'contactUsInsertBoat.php',
      data: {
          name: $insertBoatForm.find( 'input[name=name]' ).val(),
          phone: $insertBoatForm.find( 'input[name=phone]' ).val(),
          email: $insertBoatForm.find( 'input[name=email]' ).val(),
      },
      success:function(data){
          // successful request;
          var json_obj=JSON.parse(data);
          var $insertBoatContent = $( '#insert-boat-content' );
          $insertBoatContent.addClass("center");
          if (json_obj["response"] == true) {
              $insertBoatContent.html( "&lt;br/&gt;&lt;h4&gt;Richiesta inviata con successo&lt;/h4&gt;" );
          } else {
              $insertBoatContent.html( "&lt;br/&gt;&lt;h4&gt;Richiesta non inviata&lt;/h4&gt;" );
          }
      },
      error:function(){
          // failed request; give feedback to user
          $('#ajax-panel').html('&lt;p class="error"&gt;&lt;strong&gt;Oops!&lt;/strong&gt; Try that again in a few moments.&lt;/p&gt;');
      }
  });
  </code></pre>
  
  <p>In <code>contactUsInsertBoat.php</code> I do this:</p>
  
  <pre><code>include 'functions.php';
  require_once 'BusinessLogic/Manager.php';
  
  use BusinessLogic\Manager;
  
  sec_session_start();
  
  if(isset($_POST['name'])){
      Manager::contactInsertBoats($_POST['name'],$_POST['email'],$_POST['phone']);
      $arrResult = array ('response'=&gt;true);
      echo json_encode($arrResult);
  }else{
      $arrResult = array ('response'=&gt;false);
      echo json_encode($arrResult);
  }
  </code></pre>
  
  <p>But after that I do this firebug console writes:</p>
  
  <pre><code>SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
  
  
  var json_obj=JSON.parse(data);
  </code></pre>
  
  <p>and the content of JSON is:</p>
  
  <pre><code>&lt;br /&gt;
  &lt;b&gt;Strict Standards&lt;/b&gt;:  Non-static method BusinessLogic\Manager::sendMail() should not be called statically in &lt;b&gt;/var/www/public/BusinessLogic/Manager.php&lt;/b&gt; on line &lt;b&gt;1957&lt;/b&gt;&lt;br /&gt;
  {"response":true}
  </code></pre>
  
  <p>Why is it adding the strict standards log to JSON object?</p>