Reported by @Shkarin and extracted from https://github.com/php-coder/mystamps/pull/547#issuecomment-295443129: 