You are here: Re: Getting Rid of Var Deprecated Messages « All PHP « IT news, forums, messages
Re: Getting Rid of Var Deprecated Messages

Posted by Johannes Wienke on 03/09/06 19:17

Am 09.03.2006 18:08 schrieb afrinspray:
> I've defined my own error handler as well, but it doesn't seem to stop
> these messages.
> <strong>File:</strong> phpmailer/class.smtp.php (line 30)<br>
> <strong>Error String:</strong> var: Deprecated. Please use the
> public/private/protected modifiers<br>
>
> Is this a different situation than deprecated functions? Extracted from
> php.net:
>
>>From http://us3.php.net/manual/en/ref.errorfunc.php:
> Note: In PHP 5 a new error level E_STRICT is available. As E_STRICT is
> not included within E_ALL you have to explicitly enable this kind of
> error level. Enabling E_STRICT during development has some benefits.
> STRICT messages will help you to use the latest and greatest suggested
> method of coding, for example warn you about using deprecated
> functions.

Then use error_reporting() to switch to a lower level.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация