~E_NOTICE, why not ?
| From: | Pupeno | Date: | Tue, 07 Jan 2003 23:34:13 +0000 |
| Subject: | ~E_NOTICE, why not ? | ||
| Groups: | php.general php.smarty.general | ||
| Request: | Send a blank email to php-general+get-130653@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I'm using error reporting E_ALL that helps me debugging, but Smarty generates
some E_NOTICEs because of not defined variables, so, I want to disable
E_NOTICE before displaying.
I'm doing this:
$oer = error_reporting(E_ALL & ~E_NOTICE);
$tpl->display("index.html");
error_reporting($oer);
but it still reports notices, any idea ?
Thanks.
- --
Pupeno: pupeno@pupeno.com
http://www.pupeno.com
- ---
Help the hungry children of Argentina,
please go to (and make it your homepage):
http://www.porloschicos.com/servlet/PorLosChicos?comando=donar
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE+G2P3Lr8z5XzmSDQRAl8LAJ9jzLHmNuarcsG6M7JKjwKM313w1gCg2Dq1
79u/+bnOLvaNWCTxxdNVZXo=
=qM1i
-----END PGP SIGNATURE-----