ID: 39524 Updated by: [EMAIL PROTECTED] Reported By: depish at gmail dot com -Status: Open +Status: Feedback -Bug Type: *Compile Issues +Bug Type: Unknown/Other Function Operating System: Win XP PHP Version: 5.2.0 New Comment:
Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. Previous Comments: ------------------------------------------------------------------------ [2006-11-15 13:51:55] depish at gmail dot com Description: ------------ Fatal error: Class declarations may not be nested in C:\wamp\www\lowerfees3\classes\lf_page.class.php on line 1489 Reproduce code: --------------- line 1489: class Error{ public $errNo; public $errMsg; public $errDesc; function __construct($msg=null,$desc=null,$no=null){ $this->errNo = $no; $this->errMsg = $msg; $this->errDesc = $desc; } function ToString(){ $msg = ''; if (null != $this->errNo) $msg .= $this->errNo.": "; if (null != $this->errMsg) $msg .= $this->errMsg; if (null != $this->errDesc) $msg .= "\\n".$this->errDesc; return $msg; } } Expected result: ---------------- no error working fine to prior version Actual result: -------------- Fatal error: Class declarations may not be nested in C:\wamp\www\lowerfees3\classes\lf_page.class.php on line 1489 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39524&edit=1