I am looking for a specification or an exact description of how the PHP serialization () function works exactly. All I could find for this topic was this comment in the manual .
Is there somewhere a more detailed description of how php implements this?
To really know how PHP handles serialized strings, you would have to dig out the source code, as suggested by Pekka 웃 in the comments.
Try starting with: http://lxr.php.net/search?q=PHP_FUNCTION+serialize&project=PHP_5_4 , which provides a convenient way to search for sources.
This link comes from http://nikic.imtqy.com/2012/03/16/Understanding-PHPs-internal-function-definitions.html , which explains how to find specific function definitions in the php source.
Good luck!
I wanted to delve into this many years ago. Warning: this blog post code is out of date. I think the spec is still accurate, but ignores the contents around it;)
http://evertpot.com/133/ Go to the "Serialized Data Format" section.
Sadly, PHP does not provide serialization specifications.
You can study the source code https://github.com/php/php-src/blob/master/ext/standard/php_var.h , https://github.com/php/php-src/blob/master/ext /standard/var_unserializer.c . But this is hard to understand.
You may try to find implications in another language. Javascript
Source: https://habr.com/ru/post/944442/More articles:https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/944437/mvvm-windows-phone-8-adding-a-collection-of-pushpins-to-a-map&usg=ALkJrhhqZj597HAJFH6o--8pyOpsgE5JDwCreating a web service with complex types - javaI want to add popover / overlay / hotspot to google map street view in android - androidHow to keep server running on EC2 after ssh finishes - ruby-on-railsThe CallExpression.Method method always returns the root base class of MethodInfo - c #Creating an activity appears only once when the application starts - androidHow to find out if a string is a serialized object / array or just a string? - phpH2: accessing a table in the root schema from a foreign key constraint - javaReplace single quotes with an apostrophe in a string (Ruby) - ruby | fooobar.comhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/944447/arraylist-of-classes-arraylistclass-but-how-to-force-those-classes-to-extend-some-super-class&usg=ALkJrhg71RybhAglAdW_CoG5qh3uZSRaNAAll Articles