I am running PHP on the Google App Engine. using Quercus.
Because of the space, which contains a space.
$key = '___noise___'.sprintf('% 3d', count($this->noise)+100);
exsample
$this->noise = 23
$key = '___noise___ 123' includes spaces.
So,Not take the correct value
$key = '__noise___'.$text[$pos+11].$text[$pos+12].$text[$pos+13]; became '___noise___ 12'
sprintf('% 3d' -> sprintf('%3d'
Diff:
Closing because the author doesn't exist anymore and the description is not enough to understand the problem (the current implementation works).
sprintf('% 3d');
vs.sprintf('%3d');
makes no difference if the provided number is smaller than 100. I suppose what is requested here can be solved bysprintf('%03d');
which pads all numbers with zeros to the left.Since the current release uses
sprintf('% 5d');
this will becomesprintf('%05d');