#40 Crashes

closed
nobody
None
5
2003-09-22
2003-09-16
Anonymous
No

Trying a stress test of mmcache on my current project, I get good
results (with current CVS version 2003-09-16, after
include/include_once crashes were fixed), but I still have a stream of
crashes on preg_* functions, for example,
MMCACHE: PHP crashed on opline 4 of preg_match() at ...
pointing to
function get_init_lang()
{
return preg_match('/\\.com$/',$this->host)?'en':'ru';
}
where
$this->host==$HTTP_SERVER_VARS['HTTP_HOST']=='127.0.0.1'
and in many other places where preg_match, preg_match_all and
preg_replace are used.

Is it mmcache or PHP problem?

php-4.1.2-7.3.6, RedHat 7.3

Konstantin A. Pelepelin
checat at pochtamt.ru

Discussion

  • Dmitry Stogov
    Dmitry Stogov
    2003-09-16

    Logged In: YES
    user_id=124551

    I have tested the following code with PHP-4.1.2 without
    problems. Please test it. Does it works.

    <?php
    class test {

    function test() {
    $this->host='127.0.0.1';
    }

    function get_init_lang() {
    return preg_match('/\.com$/',$this->host)?'en':'ru';
    }

    }

    $x = new test();
    echo $x->get_init_lang();
    ?>

     
  • Logged In: NO

    Well... Exactly this page was retrieved 300000 times without a single error.
    Sorry that I haven't tested it myself.
    Then, it is something that is triggered only in complicated project. What a
    pity.

     
  • Dmitry Stogov
    Dmitry Stogov
    2003-09-22

    • status: open --> closed
     
  • Dmitry Stogov
    Dmitry Stogov
    2003-09-22

    Logged In: YES
    user_id=124551

    The BUG is not repeatable.