mirror of
https://github.com/php/presentations.git
synced 2026-03-24 23:52:18 +01:00
23 lines
541 B
XML
23 lines
541 B
XML
<slide title="Error Reporting Cont.">
|
|
|
|
<image filename="trap.jpg" align="right" />
|
|
|
|
<blurb fontsize="4em">
|
|
PHP 5.0 also introduces E_STRICT, which is primarily used to indicate functionality
|
|
that has been deprecated in PHP5.
|
|
</blurb>
|
|
|
|
<example title="PHP 5.0 Error Reporting"><![CDATA[# Inside PHP.ini
|
|
error_reporting = E_ALL | E_STRICT
|
|
|
|
# Inside httpd.conf or .htacess
|
|
php_value error_reporting 4095
|
|
|
|
# Inside a script
|
|
<?php
|
|
ini_set("error_reporting", E_ALL | E_STRICT);
|
|
/* or */
|
|
error_reporting(E_ALL | E_STRICT);
|
|
?>]]></example>
|
|
|
|
</slide> |