functioncheckEmailwithDNS($email, $check_dns = false){ switch (true) { case !filter_var($email, FILTER_VALIDATE_EMAIL): case !preg_match("/^([a-zA-Z0-9])+([a-zA-Z0-9\._-])*@([a-zA-Z0-9_-])+([a-zA-Z0-9\._-]+)+$/", $email): case !preg_match('/@([\w.-]++)\z/', $email, $m): returnfalse; case !$check_dns: case checkdnsrr($m[1], 'MX'): case checkdnsrr($m[1], 'A'): case checkdnsrr($m[1], 'AAAA'): returntrue; default: returnfalse; } }
if (checkEmailDNS($email, true)) { echo'(^-^) OK Email アドレスフォーマットとして妥当'; } else { echo'(>_<) NG'; }
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug Do not run Composer as root/super user! See https://getcomposer.org/root for details
xdeug が enabled になっているぞと怒られている。。
xdebug 設定箇所を探す
1 2 3 4 5 6 7
$ php -i | grep xdebug
/etc/php.d/xdebug.ini, xdebug xdebug support => enabled ... ...