qr_img.php & PHP5.3でエラー
qr_img.phpをPHP5.3で動かしたら壊れた画像が出力された。
ログを見てみると
PHP Deprecated: Function ereg() is deprecated in 〜
とあった。どうも5.3からeregは非推奨らしい。
とりあえず、qr_img.phpのL.127とL.128のエラーを抑制して回避
if (@ereg("[^0-9]",$qrcode_data_string)){ if (@ereg("[^0-9A-Z \$\*\%\+\-\.\/\:]",$qrcode_data_string)) {