All Questions
Tagged with php-internals string
4
questions
4
votes
0
answers
320
views
What userland strings get automatically interned by PHP?
I was trying to get a better understanding of PHP's internal mechanisms of string interning - more specifically:
What are the rules PHP uses to determine whether (or not) the string created in ...
10
votes
3
answers
599
views
What are the functions PHP which are said not to be "binary safe"? To which libraries these "non-binary safe" functions hand off the strings? And why?
I'm using Windows 10 Home Single Language Edition which is a 64-bit Operating System on my machine.
I've installed the most latest version of XAMPP which has installed PHP 7.2.7 on my machine.
I'm ...
6
votes
1
answer
680
views
Why doesn't PHP use internal smart string for strings?
PHP have an internal data-structure called smart string (smart_str?), where they store both length and buffer size. That is, more memory than the length of the string is allocated to improve ...
4
votes
3
answers
5k
views
PHP string length [duplicate]
PHP coding standards say:
... PHP holds the length property of each string, and that it
shouldn't be calculated with strlen(). Write your functions in a such
a way so that they'll take ...