#61 Broken concatenation optimizer (with PHP5 Beta 2?)

closed-fixed
nobody
None
9
2003-11-05
2003-11-02
Admin Korkman
No

When self-concatenating array elements

$a[0] = $a[1]." never seen again";

the optimizer empties $a[0]. The following script will
output nothing with active optimizer, and "Hello World"
with inactive optimizer:

<?

$a = array();

$a[0] = "Hello";
$a[1] = $a[0]." World";

echo $a[1];

?>

Discussion

  • Admin Korkman
    Admin Korkman
    2003-11-02

    • priority: 5 --> 9
     
  • Dmitry Stogov
    Dmitry Stogov
    2003-11-03

    Logged In: YES
    user_id=124551

    The BUG is fixed in development version of MMCache. Wait for
    release 2.4.6 or try to get CVS version (mmcache.c
    revision:1.197, anonymous sourceforge CVS is not up to date)

     
  • Dmitry Stogov
    Dmitry Stogov
    2003-11-05

    Logged In: YES
    user_id=124551

    The BUG is fixed in Turck MMCache 2.4.6.

     
  • Dmitry Stogov
    Dmitry Stogov
    2003-11-05

    • status: open --> closed-fixed