Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6154981
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:21:23+00:00 2026-05-23T20:21:23+00:00

When I do phpinfo() or php -i from the CLI, I get the following

  • 0

When I do phpinfo() or php -i from the CLI, I get the following output:

session

Registered save handlers => files user sqlite memcached
Registered serializer handlers => php php_binary wddx

I was not aware that PHP serialization supported a binary format, and there does not appear to be anything in the documentation about it.

I was going to use igbinary for session serialization to a memcached server, so I’m wondering how php_binary compares.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T20:21:25+00:00Added an answer on May 23, 2026 at 8:21 pm

    The igbinary PHP extension does offer a new session serialize/deserialize handler that differs from PHP’s own implementations, namely php and php_binary.

    To answer your question: These handlers do not compare at all, they are totally different. The differences igbinary introduces are documented within the projects readme.

    I assume you’re asking the question because you found the word binary within the two: igbinary and php_binary. However that’s not saying much. Compare the php with the php_binary handler first:

    The php_binary session serialize/deserialize handler is nearly identical with the default php handler. They differ only how the variable names that are within the session are encoded.

    php_binary will prefix all session variable names with the binary length of the name. While with php each variable name has a suffix of the | character (\x7C, decimal 124). From what I know, the serialization of the variable’s values does not differ at all.

    So the serialization of values is identical between the php and php_binary handler.

    So next to the little difference in pre-/suffix of session variable names, the question actually asks about how does igbinary compare with php serialization (which is used in the session data). Those differences are outlined in the igbinary readme. It fairly well describes what’s done and why.

    If you like to use igbinary serialization as well for serialize/unserialize, the extension offers two replacement functions:

    igbinary_serialize and igbinary_unserialize – used like their php cousins.

    If you are concerned about some specifics of the differences, please ask.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Some pages are showing the phpinfo() output (in HTML so not php -i )
I've pasted the example from php.net for using memcached in php and I'm getting:
When checking php.ini, from both phpinfo and php -i on the command line, my
How can I get the binary path of php from PHP? I saw it
My SQLite is version 3.4.0: image However my phpinfo's PDO support for SQLitev3 is
I'm using PHP Version 5.1.6 and trying to escape a query string from my
I have found that: When I type the following on terminal: php -i |
My app is working from the web side of things. I'd like to get
I would like to execute a PHP script from a C program and store
I cannot install PHP-CURL on IIS. I think I have tried everything. My phpinfo()

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.