php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13074 Comment and Class definition
Submitted: 2001-08-31 05:24 UTC Modified: 2001-10-02 19:25 UTC
From: bunkin at dialup dot ptt dot ru Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.6 OS: FreeBSD 4.2-RELEASE
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bunkin at dialup dot ptt dot ru
New email:
PHP Version: OS:

 

 [2001-08-31 05:24 UTC] bunkin at dialup dot ptt dot 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. 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-31 05:41 UTC] 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-10-02 19:25 UTC] sniper@php.net
No feedback, considered fixed.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 21:01:31 2025 UTC