Prev: PHP SOAP Using SAML
Next: mysql cache query as xml
From: Jeff Weinberger on 6 Jul 2009 17:16 Hi: I am hoping someone can help me figure this out.... I've just upgraded my PHP installation to 5.3.0. Now I am receiving thousands of log messages of the form "PHP Deprecated: ...". I know I have a number of scripts that use now-deprecated functions, etc. and I now know what those are, thanks to all the messages. However, this is now growing to (literally) gigabytes of log entries, so I'd like to stop the messages until I have the time to re-write all the offending scripts. I have tried the following error.reporting lines in php.ini: error_reporting = E_ALL & ~E_DEPRECATED & E_ERROR & E_WARNING & E_PARSE & E_NOTICE & E_CORE_ERROR & E_USER_ERROR & E_USER_WARNING & E_USER_NOTICE & E_COMPILE_ERROR & E_COMPILE_WARNING error_reporting = ~E_DEPRECATED & E_ALL & E_ERROR & E_WARNING & E_PARSE & E_NOTICE & E_CORE_ERROR & E_USER_ERROR & E_USER_WARNING & E_USER_NOTICE & E_COMPILE_ERROR & E_COMPILE_WARNING error_reporting = E_ALL & E_ERROR & E_WARNING & E_PARSE & E_NOTICE & E_CORE_ERROR & E_USER_ERROR & E_USER_WARNING & E_USER_NOTICE & E_COMPILE_ERROR & E_COMPILE_WARNING & ~E_DEPRECATED error_reporting = E_ERROR & E_CORE_ERROR & E_USER_ERROR & E_COMPILE_ERROR & E_COMPILE_WARNING & ~E_DEPRECATED error_reporting = ~E_DEPRECATED & E_ERROR & E_CORE_ERROR & E_USER_ERROR & E_COMPILE_ERROR & E_COMPILE_WARNING (as you can tell, I prefer verbose logs, but not that verbose...). None of these combinations have stopped the "PHP Deprecated: ..." messages. System info: Mac OS/X 10.5.7 Client version, PHP 5.3.0 running as a CGI under Apache 2.2.11 and as a CLI. Please let me know if there's any other info that might help. php_info() reports error.reporting as "0" Any help or guidance is appreciated!! Thanks, --Jeff No one ever achieved greatness by playing it safe. -Harry Gray
From: Paul M Foster on 6 Jul 2009 22:47 On Mon, Jul 06, 2009 at 02:16:09PM -0700, Jeff Weinberger wrote: > Hi: > > I am hoping someone can help me figure this out.... > > I've just upgraded my PHP installation to 5.3.0. Now I am receiving > thousands of log messages of the form "PHP Deprecated: ...". > > I know I have a number of scripts that use now-deprecated functions, > etc. and I now know what those are, thanks to all the messages. > > However, this is now growing to (literally) gigabytes of log entries, > so I'd like to stop the messages until I have the time to re-write all > the offending scripts. > > I have tried the following error.reporting lines in php.ini: > > error_reporting = E_ALL & ~E_DEPRECATED & E_ERROR & E_WARNING & > E_PARSE & E_NOTICE & E_CORE_ERROR & E_USER_ERROR & E_USER_WARNING & > E_USER_NOTICE & E_COMPILE_ERROR & E_COMPILE_WARNING > > error_reporting = ~E_DEPRECATED & E_ALL & E_ERROR & E_WARNING & > E_PARSE & E_NOTICE & E_CORE_ERROR & E_USER_ERROR & E_USER_WARNING & > E_USER_NOTICE & E_COMPILE_ERROR & E_COMPILE_WARNING > > error_reporting = E_ALL & E_ERROR & E_WARNING & E_PARSE & E_NOTICE & > E_CORE_ERROR & E_USER_ERROR & E_USER_WARNING & E_USER_NOTICE & > E_COMPILE_ERROR & E_COMPILE_WARNING & ~E_DEPRECATED > > error_reporting = E_ERROR & E_CORE_ERROR & E_USER_ERROR & > E_COMPILE_ERROR & E_COMPILE_WARNING & ~E_DEPRECATED > > error_reporting = ~E_DEPRECATED & E_ERROR & E_CORE_ERROR & > E_USER_ERROR & E_COMPILE_ERROR & E_COMPILE_WARNING > > (as you can tell, I prefer verbose logs, but not that verbose...). > > None of these combinations have stopped the "PHP Deprecated: ..." > messages. > > System info: Mac OS/X 10.5.7 Client version, PHP 5.3.0 running as a > CGI under Apache 2.2.11 and as a CLI. Please let me know if there's > any other info that might help. > > php_info() reports error.reporting as "0" > > Any help or guidance is appreciated!! Try error_reporting(E_ALL ^ E_DEPRECATED); See http://us2.php.net/manual/en/function.error-reporting.php for more info and examples. Paul -- Paul M. Foster
From: Jeff Weinberger on 7 Jul 2009 01:23 On Jul 6, 2009, at 7:47 PM, Paul M Foster wrote: > On Mon, Jul 06, 2009 at 02:16:09PM -0700, Jeff Weinberger wrote: > >> Hi: >> >> I am hoping someone can help me figure this out.... >> >> I've just upgraded my PHP installation to 5.3.0. Now I am receiving >> thousands of log messages of the form "PHP Deprecated: ...". >> >> I know I have a number of scripts that use now-deprecated functions, >> etc. and I now know what those are, thanks to all the messages. >> >> However, this is now growing to (literally) gigabytes of log entries, >> so I'd like to stop the messages until I have the time to re-write >> all >> the offending scripts. >> >> I have tried the following error.reporting lines in php.ini: >> >> error_reporting = E_ALL & ~E_DEPRECATED & E_ERROR & E_WARNING & >> E_PARSE & E_NOTICE & E_CORE_ERROR & E_USER_ERROR & E_USER_WARNING & >> E_USER_NOTICE & E_COMPILE_ERROR & E_COMPILE_WARNING >> >> error_reporting = ~E_DEPRECATED & E_ALL & E_ERROR & E_WARNING & >> E_PARSE & E_NOTICE & E_CORE_ERROR & E_USER_ERROR & E_USER_WARNING & >> E_USER_NOTICE & E_COMPILE_ERROR & E_COMPILE_WARNING >> >> error_reporting = E_ALL & E_ERROR & E_WARNING & E_PARSE & E_NOTICE & >> E_CORE_ERROR & E_USER_ERROR & E_USER_WARNING & E_USER_NOTICE & >> E_COMPILE_ERROR & E_COMPILE_WARNING & ~E_DEPRECATED >> >> error_reporting = E_ERROR & E_CORE_ERROR & E_USER_ERROR & >> E_COMPILE_ERROR & E_COMPILE_WARNING & ~E_DEPRECATED >> >> error_reporting = ~E_DEPRECATED & E_ERROR & E_CORE_ERROR & >> E_USER_ERROR & E_COMPILE_ERROR & E_COMPILE_WARNING >> >> (as you can tell, I prefer verbose logs, but not that verbose...). >> >> None of these combinations have stopped the "PHP Deprecated: ..." >> messages. >> >> System info: Mac OS/X 10.5.7 Client version, PHP 5.3.0 running as a >> CGI under Apache 2.2.11 and as a CLI. Please let me know if there's >> any other info that might help. >> >> php_info() reports error.reporting as "0" >> >> Any help or guidance is appreciated!! > > Try > > error_reporting(E_ALL ^ E_DEPRECATED); > > See http://us2.php.net/manual/en/function.error-reporting.php for more > info and examples. > > Paul > > -- > Paul M. Foster > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > Paul: Thanks for your suggestion - it would work nicely, except that that is a runtime function that is called within a script. I am trying to get the php.ini setting correct to avoid the Deprecated messages. I tried error_reporting=E_ALL & ~E_DEPRECATED (which I think is the php.ini analogy to your suggestion) to no avail - it failed also. leaving me still confused.... --Jeff The achievements of an organization are the results of the combined effort of each individual. -Vincent Thomas "Vince" Lombardi
From: Tom Worster on 7 Jul 2009 07:53 On 7/7/09 1:23 AM, "Jeff Weinberger" <jeff(a)JeffWeinberger.com> wrote: > On Jul 6, 2009, at 7:47 PM, Paul M Foster wrote: > >> On Mon, Jul 06, 2009 at 02:16:09PM -0700, Jeff Weinberger wrote: >> >>> Hi: >>> >>> I am hoping someone can help me figure this out.... >>> >>> I've just upgraded my PHP installation to 5.3.0. Now I am receiving >>> thousands of log messages of the form "PHP Deprecated: ...". >>> >>> I know I have a number of scripts that use now-deprecated functions, >>> etc. and I now know what those are, thanks to all the messages. >>> >>> However, this is now growing to (literally) gigabytes of log entries, >>> so I'd like to stop the messages until I have the time to re-write >>> all >>> the offending scripts. >>> >>> I have tried the following error.reporting lines in php.ini: >>> >>> error_reporting = E_ALL & ~E_DEPRECATED & E_ERROR & E_WARNING & >>> E_PARSE & E_NOTICE & E_CORE_ERROR & E_USER_ERROR & E_USER_WARNING & >>> E_USER_NOTICE & E_COMPILE_ERROR & E_COMPILE_WARNING >>> >>> error_reporting = ~E_DEPRECATED & E_ALL & E_ERROR & E_WARNING & >>> E_PARSE & E_NOTICE & E_CORE_ERROR & E_USER_ERROR & E_USER_WARNING & >>> E_USER_NOTICE & E_COMPILE_ERROR & E_COMPILE_WARNING >>> >>> error_reporting = E_ALL & E_ERROR & E_WARNING & E_PARSE & E_NOTICE & >>> E_CORE_ERROR & E_USER_ERROR & E_USER_WARNING & E_USER_NOTICE & >>> E_COMPILE_ERROR & E_COMPILE_WARNING & ~E_DEPRECATED >>> >>> error_reporting = E_ERROR & E_CORE_ERROR & E_USER_ERROR & >>> E_COMPILE_ERROR & E_COMPILE_WARNING & ~E_DEPRECATED >>> >>> error_reporting = ~E_DEPRECATED & E_ERROR & E_CORE_ERROR & >>> E_USER_ERROR & E_COMPILE_ERROR & E_COMPILE_WARNING >>> >>> (as you can tell, I prefer verbose logs, but not that verbose...). >>> >>> None of these combinations have stopped the "PHP Deprecated: ..." >>> messages. >>> >>> System info: Mac OS/X 10.5.7 Client version, PHP 5.3.0 running as a >>> CGI under Apache 2.2.11 and as a CLI. Please let me know if there's >>> any other info that might help. >>> >>> php_info() reports error.reporting as "0" >>> >>> Any help or guidance is appreciated!! >> >> Try >> >> error_reporting(E_ALL ^ E_DEPRECATED); >> >> See http://us2.php.net/manual/en/function.error-reporting.php for more >> info and examples. >> >> Paul >> >> -- >> Paul M. Foster >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> > > Paul: > > Thanks for your suggestion - it would work nicely, except that that is > a runtime function that is called within a script. > > I am trying to get the php.ini setting correct to avoid the Deprecated > messages. > > I tried error_reporting=E_ALL & ~E_DEPRECATED (which I think is the > php.ini analogy to your suggestion) to no avail - it failed also. > > leaving me still confused.... how about running this to find the int value to put into php.ini: <?php error_reporting(E_ALL ^ E_DEPRECATED); echo error_reporting(); ?> i don't have 5.3 so i haven't tried.
From: Richard Quadling on 7 Jul 2009 08:50
2009/7/6 Jeff Weinberger <jeff(a)jeffweinberger.com>: > Hi: > > I am hoping someone can help me figure this out.... > > I've just upgraded my PHP installation to 5.3.0. Now I am receiving > thousands of log messages of the form "PHP Deprecated: ...". > > I know I have a number of scripts that use now-deprecated functions, etc. > and I now know what those are, thanks to all the messages. > > However, this is now growing to (literally) gigabytes of log entries, so I'd > like to stop the messages until I have the time to re-write all the > offending scripts. > > I have tried the following error.reporting lines in php.ini: > > error_reporting = E_ALL & ~E_DEPRECATED & E_ERROR & E_WARNING & E_PARSE & > E_NOTICE & E_CORE_ERROR & E_USER_ERROR & E_USER_WARNING & E_USER_NOTICE & > E_COMPILE_ERROR & E_COMPILE_WARNING > > error_reporting = ~E_DEPRECATED & E_ALL & E_ERROR & E_WARNING & E_PARSE & > E_NOTICE & E_CORE_ERROR & E_USER_ERROR & E_USER_WARNING & E_USER_NOTICE & > E_COMPILE_ERROR & E_COMPILE_WARNING > > error_reporting =  E_ALL & E_ERROR & E_WARNING & E_PARSE & E_NOTICE & > E_CORE_ERROR & E_USER_ERROR & E_USER_WARNING & E_USER_NOTICE & > E_COMPILE_ERROR & E_COMPILE_WARNING & ~E_DEPRECATED > > error_reporting = E_ERROR & E_CORE_ERROR & E_USER_ERROR & E_COMPILE_ERROR & > E_COMPILE_WARNING & ~E_DEPRECATED > > error_reporting = ~E_DEPRECATED & E_ERROR & E_CORE_ERROR & E_USER_ERROR & > E_COMPILE_ERROR & E_COMPILE_WARNING > > (as you can tell, I prefer verbose logs, but not that verbose...). > > None of these combinations have stopped the  "PHP Deprecated: ..." messages. > > System info: Mac OS/X 10.5.7 Client version, PHP 5.3.0 running as a CGI > under Apache 2.2.11 and as a CLI. Please let me know if there's any other > info that might help. > > php_info() reports error.reporting as "0" > > Any help or guidance is appreciated!! > > Thanks, > > --Jeff > > > > No one ever achieved greatness by playing it safe. -Harry Gray > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Try ... error_reporting = 22527 -- ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on the shoulders of some very clever giants!" I need a car : http://snipurl.com/l4pih ZOPA : http://uk.zopa.com/member/RQuadling |