note 110800 rejected from function.strlen by aharvey

From: Date: Mon, 10 Dec 2012 12:37:15 +0000
Subject: note 110800 rejected from function.strlen by aharvey
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-192440@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- Hi, I've noticed that strlen() will literally duplicate the amount of ram used up by the string wich length you want to know. example: $k = str_repeat("0",2147467264); sleep(10); #now go check your ram usage, should be by ~2.1Gbytes var_dump(strlen($k)); sleep(10); #now its up to ~4Gbytes! any ideas how to bypass this?

« previous php.notes (#192440) next »