Bug #13074 Updated: Comment and Class definition

From: Date: Tue, 02 Oct 2001 23:25:15 +0000
Subject: Bug #13074 Updated: Comment and Class definition
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-67168@lists.php.net to get a copy of this message
ID: 13074
Updated by: sniper
Reported By: bunkin@dialup.ptt.ru
Old Status: Feedback
Status: Closed
Bug Type: Scripting Engine problem
Operating System: FreeBSD 4.2-RELEASE
PHP Version: 4.0.6
New Comment:

No feedback, considered fixed.


Previous Comments:
------------------------------------------------------------------------

[2001-08-31 05:41:52] mfischer@php.net

I cannot reproduce this with latest CVS not with 4.0.6 .
Please try the latest snapshot:  http://snaps.php.net/

------------------------------------------------------------------------

[2001-08-31 05:24:18] bunkin@dialup.ptt.ru

1.php:

/*
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;
  }
}
*/

2.php:

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

3.php:

include("1.php");
include("2.php");

--------------------

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, really).

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


------------------------------------------------------------------------



Edit this bug report at http://bugs.php.net/?id=13074&edit=1



Thread (3 messages)

« previous php.dev (#67168) next »