João Guilherme João Guilherme - 1 year ago 156
PHP Question

How to solve the use of deprecated function ereg() of PHP 5.3.0 in Drupal 6.13

Anyone knows how to solve the error below ?

Deprecated: Function ereg() is deprecated in C:\wamp\www\includes\ on line 895

It is happening after installing Drupal 6.13 on wamp server 2.0i with PHP 5.3.0

Answer Source

Drop your error reporting level below E_DEPRECATED.

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 ereg_* 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).

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download