PHP CLI running out of memory
<p>I'm trying to reserialize a 1gb sql dump using the fix-serialization.php file from <a href="https://github.com/Blogestudio/Fix-Serialization/blob/master/fix-serialization.php" rel="nofollow">https://github.com/Blogestudio/Fix-Serialization/blob/master/fix-serialization.php</a></p>

<p>with this command:</p>

<pre><code>php -d memory_limit=-1 fix-serialization.php dump.sql 
</code></pre>

<p>But I get the following error</p>

<pre><code>PHP Fatal error:  Out of memory (allocated 2328100864) (tried to allocate 18446744071742389167 bytes) 
</code></pre>

<p>I get the same error with when I try:</p>

<pre><code>php -d memory_limit=2000M fix-serialization.php dump.sql 
</code></pre>

<p>Obviously my computer does not have 18446744071 GB of ram. I'm getting this error on both a MBP and my Ubuntu machine and I've tried running this script on php5.6 and 7</p>