Ticket #170 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Optimizer and constants

Reported by: bart Assigned to: hans
Priority: major Milestone: 0.9.5
Component: Optimizer Version: 0.9.5
Keywords: Cc: franck.schneider@boursorama.fr

Description

With 0.9.4 or 0.9.5-rc1 (svn of 2006-Sep-08) on php 5.0.4,

The following code works ok (it displays "base1") when optimize is off. But it doesn't display anything when optimize is on.

<?
define("ESS", "33001");

$GLOBALS[ESS] = array (
        0 => 'base1',
        1 => 'base2',
);

function test($var)
{
        echo $GLOBALS[$var][0];
}

test(ESS);
?>

Change History

10/19/06 15:13:10 changed by hans

  • status changed from new to closed.
  • resolution set to fixed.

This should be fixed in changeset [278]

Thanks for reporting.