LoginSignup
6
7

More than 5 years have passed since last update.

PHPのnoticeerrorとか吐き出させる。

Last updated at Posted at 2014-05-11

PHPのエラーの吐き具合を高めるために
デバック用のソースの一番上にでも

<?php

error_reporting(E_ALL | E_STRICT);
ini_set('display_errors', 'On');

?>

と、書き込んでおくと普段は無視されるような警告も表示されるようになる。
ノーアラートを目指すなら一つの目安になるので必要。

追記:

error_reporting(-1);

コメントにも有りますが、このような方法で
前述のものと同じ働きをさせることが出来そうです。

6
7
4

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
7