title: pass mysqli to child thread for execution and back
body: <p>I have a CLI script that executes mysql queries simultaneously by forking child threads.</p>
  
  <p>I create 4 mysqli objects in the parent and assign each to the child. Here is what I need to do:</p>
  
  <ul>
  <li>As a child, use the parent's <code>mysqli</code> object to execute <code>$mysqli-&gt;autocommit(0)</code>.</li>
  <li>As a child, execute an <code>INSERT</code> statement.</li>
  <li>As a parent, execute <code>$mysqli-&gt;commit()</code> for each of the 4 connections.</li>
  </ul>
  
  <p>Is it possible to keep the same connection open between parent and children to implement commits?</p>