Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The <a href="https://github.com/igbinary/igbinary" rel="noreferrer"><code>igbinary</code> <sup><strong>PHP extension</strong></sup></a> does offer a new session serialize/deserialize handler that differs from PHP's own implementations, namely <code>php</code> and <code>php_binary</code>.</p> <p>To answer your question: <strong>These handlers do not compare at all, they are totally different.</strong> The differences <em>igbinary</em> introduces are documented within the projects readme.</p> <p>I assume you're asking the question because you found the word <em>binary</em> within the two: ig<i>binary</i> and php_<em>binary</em>. However that's not saying much. Compare the <code>php</code> with the <code>php_binary</code> handler first: </p> <p>The <code>php_binary</code> session serialize/deserialize handler is nearly identical with the default <code>php</code> handler. They differ only how the variable names that are within the session are encoded.</p> <p><code>php_binary</code> will prefix all session variable names with the binary length of the name. While with <code>php</code> each variable name has a suffix of the <code>|</code> character (<code>\x7C</code>, decimal <code>124</code>). From what I know, the serialization of the variable's values does not differ at all.</p> <p>So the serialization of values is identical between the <code>php</code> and <code>php_binary</code> handler.</p> <p>So next to the little difference in pre-/suffix of session variable names, the question actually asks about how does <code>igbinary</code> compare with php serialization (which is used in the session data). Those differences are outlined in the <a href="https://github.com/igbinary/igbinary#readme" rel="noreferrer"><code>igbinary</code> readme</a>. It fairly well describes what's done and why.</p> <p>If you like to use <code>igbinary</code> serialization as well for serialize/unserialize, the extension offers two replacement functions:</p> <p><code>igbinary_serialize</code> and <code>igbinary_unserialize</code> - used like their php cousins.</p> <p>If you are concerned about some specifics of the differences, please ask.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload