Inicio de sesión Registrarme!
Publicado: 28.01.2010 - 0 comentario (s) [ Comentarios ] - 0 trackback (s) [ Trackback ]
Category: Internet

PHP 5.3

 

introduced two new error reporting levels, E_DEPRECATED and E_USER_DEPRECATED and, for the first time in PHP's history, they've started to walk away from older parts of their API. THe erge_* function will still work, but this warning is intended to let you know that "hey, these function will be going away soon, probably in the next major revision).

 

http://devthought.com/tumble/2009/06/fix-ereg-is-deprecated-errors-in-php-53/

 

_____________________

 

 

If you prefer to keep PHP 5.3, you can always suppress the errors. In Drupal's includes/common.inc, find line 590. It should be listed as:

    if ($errno & (E_ALL ^ E_NOTICE)) {

Replace this line with:

    if ($errno & (E_ALL &  ~E_NOTICE & ~E_DEPRECATED)) {

This will now always suppress the Deprecated error messages. If you have the developer tools module, you'll need to make the same change to devel/devel.module line 460.

Note that every time you update Drupal or the Devel module you'll have to manually make this change until they finally patch them to deal properly with php 5.3.

 

__________________

 

problem sloved by replacing " if ($errno & (E_ALL ^ E_NOTICE ^ E_DEPRECATED)) " at line line no 580 in common.inc.

Delicious Digg Facebook Fark MySpace