Home php What are binary-secure functions in php?

What are binary-secure functions in php?

Author

Date

Category

And what is the binary danger of other functions?
For example: http://php.net/manual/ru/function.fwrite.phpFWRITE – Binary-secure entry to file


Answer 1, Authority 100%

This means that the function is suitable for processing not only simple text, but also binary data. Nothing is lost or distorted.

Sometimes it is necessary to work with binary data. For example, something to generate volumetric, and the result must be squeezed in the GZIP function GZENCODE . This feature will return the binary data string. Or data encryption functions often give exactly the binary representation – simply because it takes less memory, and in something text, if necessary, you can convert you already.

Functions not marked as binary secure, can distort the value or incorrectly process (for example, in the NUL symbol area), because Designed to work with the text. And binary-safe – will work correctly, which bytes were told to write down – those will be recorded.

Previous articleDifference MVP from MVC
Next articleMIN / MAX PYTHON

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions