Во всех примерах супервизора Erlang, которые я видел, обычно есть "главный" супервизор, который контролирует все дерево (или, по крайней мере, является корневым узлом в дереве супервизора). Что, если "
Функция eregi () устарела. Как заменить eregi (). Я пробую использовать preg_match, но потом перестаю работать.
Я нам помогу:
http://takien.com/513/how-to-fix-function-eregi-is-deprecated-in-php-5- 3-0.php
КОД ДО:
if ( ! eregi("convert$", $this->library_path))
{
if ( ! eregi("/$", $this->library_path)) $this->library_path .= "/";
$this->library_path .= 'convert';
}
if (eregi("gd2$", $protocol))
{
$protocol = 'image_process_gd';
}
КОД ЗАТЕМ:
if ( ! preg_match("convert$/i", $this->library_path))
{
if ( ! preg_match("/$/i", $this->library_path)) $this->library_path .= "/";
$this->library_path .= 'convert';
}
if (preg_match("gd2$/i", $protocol))
{
$protocol = 'image_process_gd';
}