Как решить использование функции устаревшей ereg () PHP 5.3.0 в Drupal 6.13

int number = 1000000000;
string whatYouWant = number.ToString("#,##0");
//You get: 1,000,000,000
6
задан fifi finance 21 December 2017 в 11:14
поделиться

3 ответа

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

11
ответ дан 8 December 2019 в 02:08
поделиться

Looks like the problem is with PHP 5.3.0. You could try downgrading to 5.2.9 as suggested by this drupal link: http://drupal.org/node/514334

-2
ответ дан 8 December 2019 в 02:08
поделиться

Вы можете отредактировать файл common.inc, чтобы игнорировать устаревшие флаги ошибок. Смотрите мой пост: http://funkinetics.org/klink/function-ereg-is-deprecated-error-in-drupal-6x-with-php-53/

0
ответ дан 8 December 2019 в 02:08
поделиться
Другие вопросы по тегам:

Похожие вопросы: