From:             [EMAIL PROTECTED]
Operating system: FreeBSD 4.2-RELEASE
PHP version:      4.0.6
PHP Bug Type:     Scripting Engine problem
Bug description:  Comment and Class definition


class dirMenu {
  var $a1;
  var $a2;
  var $a3;
  var $a4;
  function dirMenu($x1="text1",$x2="text2",$x3="text3",$x4="text4") {
    $this->a1 = $x1;
    $this->a2 = $x2;
    $this->a3 = $x3;
    $this->a4 = $x5;


$myvar = new dirMenu("xxx","yyy","zzz","qqq");




Trying to execute 3.php you get an error:
Unterminated comment in 1.php
Seems like comments do not really comment class definitions containing
errors (like dirMenu where I try to set a4 to $x5 which is not an actual
parameter of the function, while I don't understand why it is so critical,

Maybe this example won't work (I modified something to make it more
common), contact me then, I'll make another one. 

Edit bug report at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to