Ticket #3067 (assigned defect)

Opened 3 years ago

Last modified 2 years ago

parse error on global def, variable variable

Reported by: weyrick Assigned to: tim (accepted)
Priority: high Milestone: 3.0.0 release
Component: Parser/Lexer Version: trunk
Severity: minor Keywords:
Cc:

Description (Last modified by weyrick)

using "global ${$foobar}" throws a parse error, should work
the same as "global $$foobar"
 

Change History

06/02/05 10:17:18 changed by tim

fucking language

<?php

function foo($param_name) {
  global ${$param_name[0]};

  ${$param_name[0]} = "asdf";
}

foo(array("bar"));
echo $bar;

?>

08/22/05 13:01:26 changed by weyrick

  • priority changed from normal to high.
another user request for this

04/15/07 09:18:42 changed by weyrick

  • version set to HEAD.
  • type set to defect.
  • description changed.
  • milestone set to 3.0.0 release.