Author: Derick Rethans Date: 2007-01-15 16:56:05 +0100 (Mon, 15 Jan 2007) New Revision: 4509
Log: - Warn users about not having their error reporting set, instead of silently setting it for them. Modified: trunk/UnitTest/src/runtests.php Modified: trunk/UnitTest/src/runtests.php =================================================================== --- trunk/UnitTest/src/runtests.php 2007-01-15 12:55:19 UTC (rev 4508) +++ trunk/UnitTest/src/runtests.php 2007-01-15 15:56:05 UTC (rev 4509) @@ -1,6 +1,11 @@ <?php // All errors must be reported -error_reporting( E_ALL | E_STRICT ); +$currentErrorLevel = error_reporting(); +if ( $currentErrorLevel != ( E_ALL | E_STRICT ) ) +{ + echo "Your error reporting setting is not E_ALL | E_STRICT, please change\nthis in your php.ini.\n"; + die(); +} ini_set( 'include_path', getcwd(). PATH_SEPARATOR . dirname( __FILE__ ) . '/../..' . PATH_SEPARATOR . ini_get( 'include_path' ) ); -- svn-components mailing list svn-components@lists.ez.no http://lists.ez.no/mailman/listinfo/svn-components