Comment on PHP Hacking aka trying to push PHP internals forwardsComments−jrockway15ySo, are strings in PHP cstrings, or are they a length/address pair?−roel_v15yPascal-style, so size/address. Technically, strings don't need to be null-terminated, but many libraries expect they are so many are 'both' in a way.−pbiggar15ylength/address pair.−jrockway15yI see. Why is strlen such a hit then?−pbiggar15yfunction call overheard. isset is a builtin.
Comments
So, are strings in PHP cstrings, or are they a length/address pair?
Pascal-style, so size/address. Technically, strings don't need to be null-terminated, but many libraries expect they are so many are 'both' in a way.
length/address pair.
I see. Why is strlen such a hit then?
function call overheard. isset is a builtin.