🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.php
Article #231160

error_reporting a testowanie (newbie)

#231160
From: rozgloszenia
Date: Mon, 05 Oct 2015 09:56
14 lines
1530 bytes
Uczę się PHP5. Nie pracowałem jeszcze jako programista PHP.

Framework CodeIgniter zawiera taki kod:
		case 'development':
			error_reporting(E_ALL);
		break;
	
		case 'testing':
		case 'production':
			error_reporting(0);
		break;

Ustawienia dla development i production są oczywiste, ale nie rozumiem dlaczego na testing mamy 0. Przecież podczas testów chcielibyśmy wyłapać jak najwięcej błędów.
Byłbym wdzięczny za wytłumaczenie.
Technical Details
Message-ID: <3794c367-1c5a-4fb6-915a-cbfd42ad2ffc@googlegroups.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed.pionier.net.pl!news.glorb.com!kq10no16894261igb.0!news-out.google.com!n2ni21108igy.0!nntp.google.com!kq10no16894254igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Received: by 10.68.206.106 with SMTP id ln10mr25148896pbc.5.1444038977043;        Mon, 05 Oct 2015 02:56:17 -0700 (PDT)
X-Received: by 10.50.30.102 with SMTP id r6mr103549igh.3.1444038976918; Mon, 05 Oct 2015 02:56:16 -0700 (PDT)
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed.pionier.net.pl!news.glorb.com!kq10no16894261igb.0!news-out.google.com!n2ni21108igy.0!nntp.google.com!kq10no16894254igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups: pl.comp.lang.php
Date: Mon, 5 Oct 2015 02:56:16 -0700 (PDT)
Complaints-To: groups-abuse@google.com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=83.24.141.70; posting-account=Fd8BNwoAAACl8PCi6-fI0bkHGOgt6LMa
NNTP-Posting-Host: 83.24.141.70
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3794c367-1c5a-4fb6-915a-cbfd42ad2ffc@googlegroups.com>
Subject: error_reporting a testowanie (newbie)
From: rozgloszenia@gmail.com
Injection-Date: Mon, 05 Oct 2015 09:56:16 +0000
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit